Converted to Build.PL
Rob Kinyon [Fri, 3 Feb 2006 15:17:41 +0000 (15:17 +0000)]
Build.PL [new file with mode: 0644]
MANIFEST
Makefile.PL [deleted file]
lib/Class/MOP/Attribute.pm

diff --git a/Build.PL b/Build.PL
new file mode 100644 (file)
index 0000000..ba72ec8
--- /dev/null
+++ b/Build.PL
@@ -0,0 +1,28 @@
+use Module::Build;
+
+use strict;
+
+my $build = Module::Build->new(
+    module_name => 'Class::MOP',
+    license => 'perl',
+    requires => {
+        'Scalar::Util' => '1.17',
+        'Sub::Name'    => '0.02',
+        'Carp'         => '0.01',
+        'B'            => '0',
+    },
+    optional => {
+    },
+    build_requires => {
+        'Test::More'      => '0.47',
+        'Test::Exception' => '0.21',
+    },
+    create_makefile_pl => 'traditional',
+    recursive_test_files => 1,
+    add_to_cleanup => [
+        'META.yml', '*.bak', '*.gz', 'Makefile.PL',
+    ],
+);
+
+$build->create_build_script;
+
index dee893d..35e0a89 100644 (file)
--- a/MANIFEST
+++ b/MANIFEST
@@ -1,7 +1,9 @@
+Build.PL
 Changes
 Makefile.PL
 MANIFEST
 README
+META.yml
 examples/InsideOutClass.pm
 examples/InstanceCountingClass.pm
 examples/Perl6Attribute.pm
diff --git a/Makefile.PL b/Makefile.PL
deleted file mode 100644 (file)
index daeed08..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-use ExtUtils::MakeMaker;
-WriteMakefile(
-    NAME         => 'Class::MOP',
-    VERSION_FROM => 'lib/Class/MOP.pm', 
-    PREREQ_PM    => {
-        'Test::More'      => '0.47',
-        'Test::Exception' => '0.21',    
-        'Scalar::Util'    => '1.17',
-        'Sub::Name'       => '0.02',
-        'Carp'            => '0.01',
-        'B'               => '0',
-    }
-);
index 299342c..d26344c 100644 (file)
@@ -418,4 +418,4 @@ L<http://www.iinteractive.com>
 This library is free software; you can redistribute it and/or modify
 it under the same terms as Perl itself. 
 
-=cut
\ No newline at end of file
+=cut