]> git.vpit.fr Git - perl/modules/re-engine-Plugin.git/commitdiff
Modernize Makefile.PL
authorVincent Pit <vince@profvince.com>
Sat, 22 Aug 2009 23:21:01 +0000 (01:21 +0200)
committerVincent Pit <vince@profvince.com>
Sat, 22 Aug 2009 23:21:01 +0000 (01:21 +0200)
Makefile.PL

index a18580c8e1a59f3d0e06ca533d557b597d3b1a3d..4b1af5f753ef9853e2dbf00197ff112446ba1fe3 100644 (file)
@@ -1,13 +1,44 @@
 use 5.009005;
 use ExtUtils::MakeMaker;
 
+my $dist = 're-engine-Plugin';
+
+my %META = (
+ configure_requires => {
+  'ExtUtils::MakeMaker' => 0,
+ },
+ build_requires => {
+  'ExtUtils::MakeMaker' => 0,
+  'Test::More'          => 0,
+ },
+ resources => {
+  bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist",
+  homepage   => "http://search.cpan.org/dist/$dist/",
+  license    => 'http://dev.perl.org/licenses/',
+  repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git",
+ },
+);
+
 WriteMakefile(
-    NAME                 => 're::engine::Plugin',
-    AUTHOR        => 'Ævar Arnfjörð Bjarmason <avar@cpan.org>',
+    NAME          => 're::engine::Plugin',
+    AUTHOR        => 'Vincent Pit <perl@profvince.com>',
+    LICENSE       => 'perl',
     ABSTRACT_FROM => 'Plugin.pod',
     VERSION_FROM  => 'Plugin.pm',
-    LICENSE       => 'perl',
-    test          => {
+    PL_FILES         => {},
+    PREREQ_PM        => {
+        'XSLoader' => 0,
+    },
+    MIN_PERL_VERSION => 5.008,
+    META_MERGE       => \%META,
+    dist             => {
+        PREOP    => 'pod2text Plugin.pod > $(DISTVNAME)/README',
+        COMPRESS => 'gzip -9f', SUFFIX => 'gz'
+    },
+    clean            => {
+        FILES => "$dist-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt"
+    },
+    test             => {
         TESTS => 't/*.t t/*/*.t t/*/*/*.t',
     },
 );