Permalink
Browse files

switch to Module::Build

  • Loading branch information...
1 parent d747603 commit a4e7eb5039205ccf9d423028e009eea5eca1e662 @ap committed Aug 13, 2007
Showing with 60 additions and 30 deletions.
  1. +18 −0 Build.PL
  2. +4 −2 MANIFEST
  3. +23 −11 META.yml
  4. +15 −17 Makefile.PL
View
@@ -0,0 +1,18 @@
+use strict;
+use warnings;
+use Module::Build;
+
+my $builder = Module::Build->new(
+ module_name => 'Class::Observable',
+ license => 'perl',
+ dist_author => 'Aristotle Pagaltzis <pagaltzis@gmx.de>',
+ requires => { 'Class::ISA' => 0.32 },
+ build_requires => {
+ 'Test::More' => 0,
+ 'File::Spec::Functions' => 0,
+ },
+ add_to_cleanup => [ 'Class-Observable-*' ],
+ create_makefile_pl => 'traditional',
+);
+
+$builder->create_build_script();
View
@@ -1,3 +1,4 @@
+Build.PL
Changes
lib/Class/Observable.pm
lib/Class/Observable/Watchlist.pm
@@ -6,8 +7,9 @@ MANIFEST
META.yml Module meta-data (added by MakeMaker)
README
t/00.load.t
-t/class_observable.t
-t/inherited.t
+t/01.inheritance.t
+t/02.copying.t
+t/03.party.t
t/lib/DeeJay.pm
t/lib/Song.pm
t/cpants.t
View
@@ -1,12 +1,24 @@
-#XXXXXXX This is a prototype!!! It will change in the future!!! XXXXX#
-name: Class-Observable
-version: 1.04
-version_from: lib/Class/Observable.pm
-installdirs: site
+---
+name: Class-Observable
+version: 1.04
+author:
+ - 'Aristotle Pagaltzis <pagaltzis@gmx.de>'
+abstract: Allow other classes and objects to respond to events in yours
+license: perl
+resources:
+ license: http://dev.perl.org/licenses/
requires:
- Class::ISA: 0.32
- Scalar::Util: 1
- Test::More: 0.4
-
-distribution_type: module
-generated_by: ExtUtils::MakeMaker version 6.12
+ Class::ISA: 0.32
+build_requires:
+ File::Spec::Functions: 0
+ Test::More: 0
+provides:
+ Class::Observable:
+ file: lib/Class/Observable.pm
+ version: 1.04
+ Class::Observable::Watchlist:
+ file: lib/Class/Observable/Watchlist.pm
+generated_by: Module::Build version 0.2805
+meta-spec:
+ url: http://module-build.sourceforge.net/META-spec-v1.2.html
+ version: 1.2
View
@@ -1,18 +1,16 @@
+# Note: this file was auto-generated by Module::Build::Compat version 0.03
use ExtUtils::MakeMaker;
-
-my %opts = (
- 'NAME' => 'Class::Observable',
- 'VERSION_FROM' => 'lib/Class/Observable.pm',
- 'PREREQ_PM' => {
- Class::ISA => 0.32,
- Scalar::Util => 1.00,
- Test::More => 0.40,
- }
-);
-
-if ( $ExtUtils::MakeMaker::VERSION >= 5.43 ) {
- $opts{AUTHOR} = 'Chris Winters <chris@cwinters.com';
- $opts{ABSTRACT} = 'Allow any number of items to respond to changes in your class/object'
-}
-
-WriteMakefile( %opts );
+WriteMakefile
+(
+ 'PL_FILES' => {},
+ 'INSTALLDIRS' => 'site',
+ 'NAME' => 'Class::Observable',
+ 'EXE_FILES' => [],
+ 'VERSION_FROM' => 'lib/Class/Observable.pm',
+ 'PREREQ_PM' => {
+ 'Test::More' => 0,
+ 'Class::ISA' => '0.32',
+ 'File::Spec::Functions' => 0
+ }
+ )
+;

0 comments on commit a4e7eb5

Please sign in to comment.