build crap
Stevan Little [Tue, 31 Jan 2006 18:15:12 +0000 (18:15 +0000)]
Build.PL [new file with mode: 0644]
Makefile.PL [deleted file]
lib/Class/MOP/Attribute.pm

diff --git a/Build.PL b/Build.PL
new file mode 100644 (file)
index 0000000..cbed1a0
--- /dev/null
+++ b/Build.PL
@@ -0,0 +1,31 @@
+use Module::Build;
+
+use 5.6.0;
+
+use strict;
+use warnings;
+
+my $build = Module::Build->new(
+    module_name => 'Class::MOP',
+    license => 'perl',
+    requires => {
+        'perl'            => '5.6.0',
+        'Scalar::Util'    => '1.17',
+        'Carp'            => '0',
+        'B'               => '0',
+        'Sub::Name'       => '0',
+    },
+    optional => {
+    },
+    build_requires => {
+        'Test::More'      => '0.47',
+        'Test::Exception' => '0',        
+    },
+    create_makefile_pl => 'traditional',
+    recursive_test_files => 1,
+    add_to_cleanup => [
+        'META.yml', '*.bak', '*.gz', 'Makefile.PL',
+    ],
+);
+
+$build->create_build_script;
diff --git a/Makefile.PL b/Makefile.PL
deleted file mode 100644 (file)
index 402ba0a..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,
-        'Test::Exception' => 0,
-        'Scalar::Util'    => 0,
-        'Carp'            => 0,
-        'B'               => 0,
-        'Sub::Name'       => 0,        
-    }
-);
index 9a57bac..ac09358 100644 (file)
@@ -206,7 +206,23 @@ chaos, by introducing a more consistent approach.
 
 =over 4
 
-=item B<new ($name, %accessor_description, $class_initialization_arg, $default_value)>
+=item B<new ($name, %options)>
+
+=over 4
+
+=item I<accessor>
+
+=item I<reader>
+
+=item I<writer>
+
+=item I<predicate>
+
+=item I<init_arg>
+
+=item I<default>
+
+=back
 
 =back