PerlAlien / File-Listing

Module to parse directoy listings
1 stars 3 forks source link

Document BUILD_REQUIRES, PREREQ_PM [rt.cpan.org #85100] #2

Closed plicease closed 4 years ago

plicease commented 4 years ago

https://rt.cpan.org/Ticket/Display.html?id=85100

6.04's Makefile.PL does not enumerate its dependencies in Makefile.PL, making packaging more difficult for the system integrator, who cannot simply (and automatically) inspect the "make dist"d META.yml to figure out what is needed.

Patch:

diff -up File-Listing-6.04/Makefile.PL.orig File-Listing-6.04/Makefile.PL
--- File-Listing-6.04/Makefile.PL.orig  2012-02-15 15:32:26.000000000 -0600
+++ File-Listing-6.04/Makefile.PL   2013-05-03 16:50:20.937047453 -0500
@@ -11,8 +11,15 @@ WriteMakefile(
     LICENSE => "perl",
     MIN_PERL_VERSION => 5.006002,
     PREREQ_PM => {
+   'Carp' => 0,
    'HTTP::Date' => 6,
     },
+    ( eval { ExtUtils::MakeMaker->VERSION(6.5501) } ? (
+   BUILD_REQUIRES => { 'ExtUtils::MakeMaker' => 0,
+                       'Test::More'          => 0 },
+   )
+      : ()
+    ),
     META_MERGE => {
    resources => {
             repository => 'http://github.com/gisle/libwww-perl/tree/File-Listing/master',