diff options
author | skv <skv@FreeBSD.org> | 2003-07-30 00:14:39 +0800 |
---|---|---|
committer | skv <skv@FreeBSD.org> | 2003-07-30 00:14:39 +0800 |
commit | 676a97ecff82bf499692997099359e9731a60043 (patch) | |
tree | da625f3382269b5ce0c9a50fb66134eee0609804 /www | |
parent | a7c8beefb32eb6d46e9fd3cca7fbcaaf3d2e179b (diff) | |
download | freebsd-ports-gnome-676a97ecff82bf499692997099359e9731a60043.tar.gz freebsd-ports-gnome-676a97ecff82bf499692997099359e9731a60043.tar.zst freebsd-ports-gnome-676a97ecff82bf499692997099359e9731a60043.zip |
Fixes:
1. remove using 'warnings.pm' if perl < 5.6.0
2. change PERLRUN to PERL if perl < 5.8.0
3. fix damned error with pm_name=~/Config/
PR: ports/54771
Diffstat (limited to 'www')
-rw-r--r-- | www/p5-Apache-Test/Makefile | 20 | ||||
-rw-r--r-- | www/p5-Apache-Test/files/500503-Makefile.PL | 14 |
2 files changed, 33 insertions, 1 deletions
diff --git a/www/p5-Apache-Test/Makefile b/www/p5-Apache-Test/Makefile index 48da6f4dd314..fde9b403af8f 100644 --- a/www/p5-Apache-Test/Makefile +++ b/www/p5-Apache-Test/Makefile @@ -27,10 +27,28 @@ PERL_CONFIGURE= yes MAN3= Apache::Test.3 Apache::TestConfig.3 Apache::TestSmoke.3 \ Apache::TestTrace.3 Apache::TestUtil.3 Bundle::ApacheTest.3 +.include <bsd.port.pre.mk> + +.if ${PERL_LEVEL} < 500600 +RUN_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec +.endif + +.if ${PERL_LEVEL} < 500800 +EXTRA_PATCHES= ${PATCHDIR}/500503-Makefile.PL +.endif + post-patch: @${PERL} -pi.bak -e 's/^/#/ if $$.==26;' ${WRKSRC}/Makefile.PL + @${PERL} -pi -e '$$_="" if $$.==11;' ${WRKSRC}/lib/Apache/Test5005compat.pm +.if ${PERL_LEVEL} < 500800 + @${PERL} -pi.bak -e 's/PERLRUN/PERL/;' ${WRKSRC}/install-pl +.endif +.if ${PERL_LEVEL} < 500600 + @${PERL} -pi -e '$$_="" if /^use warnings/' \ + ${WRKSRC}/lib/Apache/*.pm ${WRKSRC}/Makefile.PL ${WRKSRC}/install-pl +.endif post-configure: @${PERL} -pi -e 's/^(POD2MAN_EXE.*)$$/\1 --lax/;' ${WRKSRC}/Makefile -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/www/p5-Apache-Test/files/500503-Makefile.PL b/www/p5-Apache-Test/files/500503-Makefile.PL new file mode 100644 index 000000000000..167fc44ae3e5 --- /dev/null +++ b/www/p5-Apache-Test/files/500503-Makefile.PL @@ -0,0 +1,14 @@ +--- Makefile.PL.orig Tue Jul 29 19:24:18 2003 ++++ Makefile.PL Tue Jul 29 19:25:42 2003 +@@ -73,6 +73,11 @@ + return $string; + } + ++sub MY::manifypods { ++ package MY; my $self=shift; ++ $self->{MAN3PODS}->{'lib/Apache/TestConfig.pm'}='$(INST_MAN3DIR)/Apache::TestConfig.$(MAN3EXT)'; ++ $self->SUPER::manifypods(@_); ++} + + sub add_dep { + my($string, $targ, $add) = @_; |