]> git.imager.perl.org - imager.git/commitdiff
- minor changes for older perl/ExtUtils::MM
authorTony Cook <tony@develop=help.com>
Fri, 13 Jan 2006 04:38:57 +0000 (04:38 +0000)
committerTony Cook <tony@develop=help.com>
Fri, 13 Jan 2006 04:38:57 +0000 (04:38 +0000)
Changes
Makefile.PL
t/t66paste.t
t/t92samples.t

diff --git a/Changes b/Changes
index c45afda6d5c9a918e411a8d4595bb283f235f52a..72f86625c172092ed6cb2830e1bb661da829d52b 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1296,6 +1296,7 @@ Revision history for Perl extension Imager.
 - constify the Imager API
 - document Imager::Filter::Mandelbrot
 - convert dynfilt/flines.c to Imager::Filter::Flines
+- minor changes for older perl/ExtUtils::MM
 
 =================================================================
 
index e1334f0fab0b8ccc08f9b06a4f4a8c7b997e5e4b..e2b62372f74a006cd9d57020d18e96a68db83852 100644 (file)
@@ -163,6 +163,8 @@ exit;
 
 
 sub MY::postamble {
+    my $self = shift;
+    my $perl = $self->{PERLRUN} ? '$(PERLRUN)' : '$(PERL)';
 '
 dyntest.$(MYEXTLIB) : dynfilt/Makefile
        cd dynfilt && $(MAKE) $(PASTHRU)
@@ -174,11 +176,11 @@ imconfig.h : Makefile.PL
        $(ECHO) "imconfig.h out-of-date with respect to $?"
        $(PERLRUN) Makefile.PL
        $(ECHO) "==> Your Makefile has been rebuilt - re-run your make command <=="
+'.qq!
+lib/Imager/APIRef.pm : \$(C_FILES) apidocs.perl
+       $perl apidocs.perl lib/Imager/APIRef.pm
 
-lib/Imager/APIRef.pm : $(C_FILES) apidocs.perl
-       $(PERLRUN) apidocs.perl lib/Imager/APIRef.pm
-
-';
+!;
 
 }
 
index b55692f01cc83244ba7849e99fd8b961ef293cbe..7a369d933c9b50ab4aaa61125cb676cc58a3f6c6 100644 (file)
@@ -1,5 +1,6 @@
 #!perl -w
 use strict;
+use lib 't';
 use Test::More tests => 15;
 
 BEGIN { use_ok("Imager") }
index 7ca1598b493ea9897687cfb34e22c91199df1eac..c377be3b67f65a71b72a02c2b1702ebf27ea99a2 100644 (file)
@@ -1,5 +1,6 @@
 #!perl -w
 # packaging test - make sure we included the samples in the MANIFEST <sigh>
+use lib 't';
 use Test::More;
 use ExtUtils::Manifest qw(maniread);