mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Only use File-Spec if perl < 5.8.0.
PR: 44720 Approved by: maintainer
This commit is contained in:
parent
519253993b
commit
18adf914ea
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=69143
1 changed files with 12 additions and 3 deletions
|
@ -15,8 +15,6 @@ PKGNAMEPREFIX= p5-
|
|||
|
||||
MAINTAINER= wjv@FreeBSD.org
|
||||
|
||||
# This dependency is not required for Perl >= 5.6.0
|
||||
BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
|
||||
RUN_DEPENDS= ${BUILD_DEPENDS}
|
||||
|
||||
PERL_CONFIGURE= yes
|
||||
|
@ -24,4 +22,15 @@ PERL_CONFIGURE= yes
|
|||
MAN3= File::Temp.3
|
||||
MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
SITE_PERL?= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}
|
||||
|
||||
PERL_MAJOR=${PERL_VER:C|^([1-9]+).*|\1|}
|
||||
PERL_MINOR=${PERL_VER:C|^[1-9]+\.0*([1-9]+).*|\1|}
|
||||
|
||||
.if ${PERL_MAJOR} < 5 || ${PERL_MAJOR} == 5 && ${PERL_MINOR} < 8
|
||||
BUILD_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
|
||||
.endif # ${PERL_MAJOR} < 5 || ${PERL_MAJOR} == 5 && ${PERL_MINOR} < 8
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
Loading…
Add table
Reference in a new issue