mirror of
https://git.freebsd.org/ports.git
synced 2025-06-03 20:06:29 -04:00
Only use File::Spec if below perl 5.6.1.
PR: 44775
This commit is contained in:
parent
6ab4e36838
commit
d971cd249b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=70883
1 changed files with 19 additions and 3 deletions
|
@ -14,8 +14,7 @@ PKGNAMEPREFIX= p5-
|
|||
|
||||
MAINTAINER= dom@happygiraffe.net
|
||||
|
||||
BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec \
|
||||
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/XML/Parser.pm:${PORTSDIR}/textproc/p5-XML-Parser \
|
||||
BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/XML/Parser.pm:${PORTSDIR}/textproc/p5-XML-Parser \
|
||||
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/LWP/UserAgent.pm:${PORTSDIR}/www/p5-libwww
|
||||
RUN_DEPENDS= ${BUILD_DEPENDS}
|
||||
|
||||
|
@ -28,4 +27,21 @@ MAN3= Apache::RPC::Server.3 \
|
|||
RPC::XML::Client.3 \
|
||||
RPC::XML::Parser.3
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.pre.mk>
|
||||
perl_major= ${PERL_VERSION:C|^([1-9]+).*|\1|}
|
||||
_perl_minor= 00${PERL_VERSION:C|^([1-9]+)\.([0-9]+).*|\2|}
|
||||
perl_minor= ${_perl_minor:C|^.*(...)|\1|}
|
||||
.if ${perl_minor} >= 100
|
||||
perl_minor= ${PERL_VERSION:C|^([1-9]+)\.([0-9][0-9][0-9]).*|\2|}
|
||||
perl_patch= ${PERL_VERSION:C|^.*(..)|\1|}
|
||||
.else # ${perl_minor} < 100
|
||||
_perl_patch= 0${PERL_VERSION:C|^([1-9]+)\.([0-9]+)\.*|0|}
|
||||
perl_patch= ${_perl_patch:C|^.*(..)|\1|}
|
||||
.endif # ${perl_minor} < 100
|
||||
PERL_LEVEL= ${perl_major}${perl_minor}${perl_patch}
|
||||
|
||||
.if ${PERL_LEVEL} < 500601
|
||||
BUILD_DEPENDS+= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
|
||||
.endif # ${PERL_LEVEL} < 500601
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
Loading…
Add table
Reference in a new issue