From 4bdb4d7478fc7bf28f957e2083fc37da1a44a6e1 Mon Sep 17 00:00:00 2001 From: dakkar Date: Sat, 23 May 2009 16:30:04 +0200 Subject: scheletro --- Build.PL | 25 +++++++++++++++++++++++++ MANIFEST | 9 +++++++++ META.yml | 23 +++++++++++++++++++++++ README | 20 ++++++++++++++++++++ lib/LDFM/MainController.pm | 10 ++++++++++ scripts/ldfm | 8 ++++++++ t/00-load.t | 7 +++++++ t/00-pod-coverage.t | 5 +++++ t/00-pod.t | 5 +++++ t/00-prereqs.t | 4 ++++ 10 files changed, 116 insertions(+) create mode 100644 Build.PL create mode 100644 MANIFEST create mode 100644 META.yml create mode 100644 README create mode 100644 lib/LDFM/MainController.pm create mode 100644 scripts/ldfm create mode 100644 t/00-load.t create mode 100644 t/00-pod-coverage.t create mode 100644 t/00-pod.t create mode 100644 t/00-prereqs.t diff --git a/Build.PL b/Build.PL new file mode 100644 index 0000000..03675a6 --- /dev/null +++ b/Build.PL @@ -0,0 +1,25 @@ + +use strict; +use warnings; +use Module::Build; + +my $builder = Module::Build->new( + dist_name => 'LDFM', + license => 'perl', + dist_name => 'LD-FM', + dist_version_from => 'lib/LDFM/MainController.pm', + requires => { + 'perl' => '5.8.3', + 'Gtk2' => '1.1.0', + 'Gtk2::GladeXML::Simple' => 0, + 'Readonly' => 0, + }, + build_requires => { + 'Test::More' => 0, + }, + script_files => [ 'scripts/ldfm' ], + add_to_cleanup => [ 'LDFM-*' ], + create_packlist => 1, +); + +$builder->create_build_script(); diff --git a/MANIFEST b/MANIFEST new file mode 100644 index 0000000..6688460 --- /dev/null +++ b/MANIFEST @@ -0,0 +1,9 @@ +Build.PL +MANIFEST +META.yml # Will be created by "make dist" +README +lib/LDFM/MainController.pm +t/00-load.t +t/00-pod-coverage.t +t/00-pod.t +t/00-prereqs.t diff --git a/META.yml b/META.yml new file mode 100644 index 0000000..55fd1f7 --- /dev/null +++ b/META.yml @@ -0,0 +1,23 @@ +--- +name: LD-FM +version: 0.01 +author: ~ +abstract: ~ +license: perl +requires: + Gtk2: 1.1.0 + Gtk2::Ex::Simple::List: 0 + Gtk2::GladeXML::Simple: 0 + Path::Class: 0 + Readonly: 0 + perl: 5.8.3 +build_requires: + Test::More: 0 +provides: + LDFM::DialogController: + file: lib/LDFM/DialogController.pm + version: 0.01 + LDFM::MainController: + file: lib/LDFM/MainController.pm + version: 0.01 +generated_by: Module::Build version 0.2611 diff --git a/README b/README new file mode 100644 index 0000000..c3b9445 --- /dev/null +++ b/README @@ -0,0 +1,20 @@ +LDFM + +LinuxDay FileManager + +INSTALLATION + +To install this module, run the following commands: + + perl Build.PL + ./Build + ./Build test + ./Build install + +COPYRIGHT AND LICENCE + +Copyright (C) 2005 Gianni Ceccarelli + +This program is free software; you can redistribute it and/or modify it +under the same terms as Perl itself. + diff --git a/lib/LDFM/MainController.pm b/lib/LDFM/MainController.pm new file mode 100644 index 0000000..a9534e0 --- /dev/null +++ b/lib/LDFM/MainController.pm @@ -0,0 +1,10 @@ +package LDFM::MainController; +use utf8; +use warnings; +use strict; +use base 'Gtk2::GladeXML::Simple'; +use Readonly; + +our $VERSION = '0.01'; + +1; diff --git a/scripts/ldfm b/scripts/ldfm new file mode 100644 index 0000000..c611a8b --- /dev/null +++ b/scripts/ldfm @@ -0,0 +1,8 @@ +#!/usr/bin/env perl +use utf8; +use strict; +use warnings; +use Gtk2 '-init'; +use LDFM::MainController; + +print "buh!\n"; diff --git a/t/00-load.t b/t/00-load.t new file mode 100644 index 0000000..cd42d3e --- /dev/null +++ b/t/00-load.t @@ -0,0 +1,7 @@ +use Test::More tests => 1; + +BEGIN { + use_ok('LDFM::MainController'); +} + +diag( "Testing LDFM $LDFM::MainController::VERSION" ); diff --git a/t/00-pod-coverage.t b/t/00-pod-coverage.t new file mode 100644 index 0000000..2531190 --- /dev/null +++ b/t/00-pod-coverage.t @@ -0,0 +1,5 @@ +use Test::More; +eval "use Test::Pod::Coverage 1.04"; +plan skip_all => "Test::Pod::Coverage 1.04 required for testing POD coverage" + if $@; +all_pod_coverage_ok(); diff --git a/t/00-pod.t b/t/00-pod.t new file mode 100644 index 0000000..aa819af --- /dev/null +++ b/t/00-pod.t @@ -0,0 +1,5 @@ +use Test::More; +eval "use Test::Pod 1.14"; +plan skip_all => "Test::Pod 1.14 required for testing POD" + if $@; +all_pod_files_ok(); diff --git a/t/00-prereqs.t b/t/00-prereqs.t new file mode 100644 index 0000000..5d39ddf --- /dev/null +++ b/t/00-prereqs.t @@ -0,0 +1,4 @@ +use Test::More; +eval "use Test::Prereq::Build"; +plan skip_all => "Test::Prereq::Build required to test dependencies" if $@; +prereq_ok(); -- cgit v1.2.3