mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
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
This commit is contained in:
parent
8c30d10666
commit
3237253344
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=85865
@ -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>
|
||||
|
14
www/p5-Apache-Test/files/500503-Makefile.PL
Normal file
14
www/p5-Apache-Test/files/500503-Makefile.PL
Normal file
@ -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) = @_;
|
Loading…
Reference in New Issue
Block a user