]> git.vpit.fr Git - perl/modules/Acme-CPANAuthors-You-re_using.git/blobdiff - Makefile.PL
Update VPIT::TestHelpers to 15e8aee3
[perl/modules/Acme-CPANAuthors-You-re_using.git] / Makefile.PL
index e0922253e3ef0020b8dfc2af26ec7ab3c38f14dd..724e82b9c9f9377d4f3eb29723d8970c45a0d38b 100644 (file)
@@ -4,42 +4,56 @@ use ExtUtils::MakeMaker;
 
 my $dist = 'Acme-CPANAuthors-You-re_using';
 
+(my $name = $dist) =~ s{-}{::}g;
+
+(my $file = $dist) =~ s{-}{/}g;
+$file = "lib/$file.pm";
+
+my %PREREQ_PM = (
+ 'Acme::CPANAuthors' => '0.16',
+ 'File::Find'        => 0,
+ 'Module::Metadata'  => '1.000017',
+);
+
+my %BUILD_REQUIRES = (
+  'ExtUtils::MakeMaker' => 0,
+  'Test::More'          => 0,
+  'lib'                 => 0,
+  %PREREQ_PM,
+);
+
 my %META = (
  configure_requires => {
   'ExtUtils::MakeMaker' => 0,
  },
  build_requires => {
-  'Acme::CPANAuthors'   => 0,
-  'ExtUtils::MakeMaker' => 0,
-  'Test::More'          => 0,
+  %BUILD_REQUIRES,
  },
+ dynamic_config => 0,
  resources => {
-  bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist",
+  bugtracker => "http://rt.cpan.org/Dist/Display.html?Name=$dist",
   homepage   => "http://search.cpan.org/dist/$dist/",
   license    => 'http://dev.perl.org/licenses/',
-  repository => "http://git.profvince.com/?p=perl/modules/$dist.git",
+  repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git",
  },
 );
 
 WriteMakefile(
-    NAME             => 'Acme::CPANAuthors::You::re_using',
-    AUTHOR           => 'Vincent Pit <perl@profvince.com>',
-    LICENSE          => 'perl',
-    VERSION_FROM     => 'lib/Acme/CPANAuthors/You/re_using.pm',
-    ABSTRACT_FROM    => 'lib/Acme/CPANAuthors/You/re_using.pm',
-    PL_FILES         => {},
-    PREREQ_PM        => {
-        'Acme::CPANAuthors'   => 0,
-        'Carp'                => 0,
-        'ExtUtils::Installed' => 0,
-    },
-    MIN_PERL_VERSION => 5.006,
-    META_MERGE       => \%META,
-    dist             => {
-        PREOP    => 'pod2text lib/Acme/CPANAuthors/You/re_using.pm > $(DISTVNAME)/README',
-        COMPRESS => 'gzip -9f', SUFFIX => 'gz'
-    },
-    clean            => {
-        FILES => "$dist-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt"
-    },
+ NAME             => $name,
+ AUTHOR           => 'Vincent Pit <perl@profvince.com>',
+ LICENSE          => 'perl',
+ VERSION_FROM     => $file,
+ ABSTRACT_FROM    => $file,
+ PL_FILES         => {},
+ BUILD_REQUIRES   => \%BUILD_REQUIRES,
+ PREREQ_PM        => \%PREREQ_PM,
+ MIN_PERL_VERSION => '5.006',
+ META_MERGE       => \%META,
+ dist             => {
+  PREOP    => "pod2text -u $file > \$(DISTVNAME)/README",
+  COMPRESS => 'gzip -9f', SUFFIX => 'gz'
+ },
+ clean            => {
+  FILES => "$dist-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt"
+ },
 );