Skip to content
Browse files

Switch from Makefile.PL to Build.PL

  • Loading branch information...
1 parent ca57af1 commit 85740b500c635a2e05ab8b567e7c7fec4ce69d32 @davorg committed
Showing with 21 additions and 10 deletions.
  1. +21 −0 Build.PL
  2. +0 −10 Makefile.PL
View
21 Build.PL
@@ -0,0 +1,21 @@
+use Module::Build;
+my $build = Module::Build->new(
+ module_name => 'Tie::Hash::Regex',
+ dist_version => '1.01',
+ license => 'perl',
+ requires => {
+ perl => '5.6.0',
+ 'Tie::Hash' => 0,
+ 'Attribute::Handlers' => 0,
+ },
+ build_requires => {
+ 'Test::More' => 0,
+ },
+ build_recommends => {
+ 'Test::Pod' => 0,
+ 'Test::Pod::Coverage' => 0,
+ },
+ create_makefile_pl => 'traditional'
+);
+
+$build->create_build_script;
View
10 Makefile.PL
@@ -1,10 +0,0 @@
-use ExtUtils::MakeMaker;
-# See lib/ExtUtils/MakeMaker.pm for details of how to influence
-# the contents of the Makefile that is written.
-WriteMakefile(
- 'NAME' => 'Tie::Hash::Regex',
- 'VERSION_FROM' => 'Regex.pm', # finds $VERSION
- 'PREREQ_PM' => { Attribute::Handlers => 0.76,
- Test::Simple => 0,
- Test::Pod => 0 }
-);

0 comments on commit 85740b5

Please sign in to comment.
Something went wrong with that request. Please try again.