mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
Simplify decection of File::Spec to avoid INDEX generation breakage.
You shoud check to be installed latest perl5 port (5.x) or latest File::Spec module (4.x). Reviewed by: kris
This commit is contained in:
parent
2700a2b513
commit
5dc1571a28
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=73837
@ -24,9 +24,7 @@ post-patch:
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
||||
# ${PERL} defined after bsd.port.post.mk. So place this after .include line.
|
||||
USE_FILESPEC!= ${PERL} -MFile::Spec -e 'print $$File::Spec::VERSION<0.82'
|
||||
.if (${USE_FILESPEC} == 1)
|
||||
.if ${OSVERSION} < 500000 && !exists(${SITE_PERL}/File/Spec.pm)
|
||||
BUILD_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
|
||||
RUN_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
|
||||
.endif
|
||||
|
Loading…
Reference in New Issue
Block a user