reinstate cpan/IO-Compress/Makefile.PL
authorDavid Mitchell <davem@iabyn.com>
Wed, 3 Dec 2014 15:49:15 +0000 (15:49 +0000)
committerDavid Mitchell <davem@iabyn.com>
Wed, 3 Dec 2014 17:01:49 +0000 (17:01 +0000)
This was removed a year ago, but it causes problems with
ABSTACT and ABSTACT_FROM; since there isn't an IO/Compress.pm
file. make_ext.pl special-cases Makefile.PL to get the abstract
from IO/Compress/Base.pm; but MakeMaker looks for, and fails to
find, 'IO::Compress - ...' in the pod for that file,and prints an error.

Rather than more special-casing, it's easier to just restore the
distribution's Makefile.PL, which already contains the correct
'ABSTRACT => ...' entry.

MANIFEST
cpan/IO-Compress/Makefile.PL [new file with mode: 0644]
make_ext.pl

index 14228ba..4775d8e 100644 (file)
--- a/MANIFEST
+++ b/MANIFEST
@@ -1231,6 +1231,7 @@ cpan/IO-Compress/lib/IO/Uncompress/Gunzip.pm              IO::Compress
 cpan/IO-Compress/lib/IO/Uncompress/Inflate.pm          IO::Compress
 cpan/IO-Compress/lib/IO/Uncompress/RawInflate.pm       IO::Compress
 cpan/IO-Compress/lib/IO/Uncompress/Unzip.pm            IO::Compress
+cpan/IO-Compress/Makefile.PL                           IO::Compress
 cpan/IO-Compress/private/MakeUtil.pm                   IO::Compress
 cpan/IO-Compress/t/000prereq.t                         IO::Compress
 cpan/IO-Compress/t/001bzip2.t                          IO::Compress
diff --git a/cpan/IO-Compress/Makefile.PL b/cpan/IO-Compress/Makefile.PL
new file mode 100644 (file)
index 0000000..9b90c37
--- /dev/null
@@ -0,0 +1,64 @@
+#! perl -w
+
+use strict ;
+require 5.006 ;
+
+$::VERSION = '2.066' ;
+
+use private::MakeUtil;
+use ExtUtils::MakeMaker 5.16 ;
+
+UpDowngrade(getPerlFiles('MANIFEST'))
+    unless $ENV{PERL_CORE};
+
+WriteMakefile( 
+    NAME         => 'IO::Compress',
+    VERSION_FROM => 'lib/IO/Compress/Base.pm',
+    'dist'       => { COMPRESS     => 'gzip', 
+                      TARFLAGS     => '-chvf',
+                      SUFFIX       => 'gz',
+                      DIST_DEFAULT => 'MyTrebleCheck tardist',
+                    },
+
+    (
+      $ENV{SKIP_FOR_CORE}
+        ? ()
+           : (PREREQ_PM   => { 'Compress::Raw::Bzip2' => $::VERSION,
+                                   'Compress::Raw::Zlib'   => $::VERSION,
+                                   'Scalar::Util'  => 0,
+                                   $] >= 5.005 && $] < 5.006   
+                                ? ('File::BSDGlob' => 0) 
+                                : () }
+             )
+    ),
+       
+    (
+    $] >= 5.005
+        ? (ABSTRACT => 'IO Interface to compressed data files/buffers',
+            AUTHOR  => 'Paul Marquess <pmqs@cpan.org>')
+        : ()
+    ),
+
+    INSTALLDIRS => ($] >= 5.009 && $] < 5.011 ? 'perl' : 'site'),
+
+    EXE_FILES => ['bin/zipdetails'],
+    
+    (
+    $] >= 5.009 && $] <= 5.011001 && ! $ENV{PERL_CORE}
+        ? (INSTALLPRIVLIB    => '$(INSTALLARCHLIB)')
+        : ()
+    ),
+
+    META_MERGE => {
+        no_index => {
+            directory => [ 't', 'private' ],
+        },
+    },    
+
+    ((ExtUtils::MakeMaker->VERSION() gt '6.30') ?
+        ('LICENSE'  => 'perl')         : ()),    
+
+) ;
+
+# end of file Makefile.PL
+
index e900874..a237cb6 100644 (file)
@@ -368,7 +368,6 @@ sub build_extension {
                my $leafname = "$leaf.pm";
                my $pathname = join '/', @dirs, $leafname;
                my @locations = ($leafname, $pathname, "lib/$pathname");
-               unshift @locations, 'lib/IO/Compress/Base.pm' if $mname eq 'IO::Compress';
                foreach (@locations) {
                    if (-f $_) {
                        $fromname = $_;