aboutsummaryrefslogtreecommitdiffstats
path: root/archivers
diff options
context:
space:
mode:
authorkuriyama <kuriyama@FreeBSD.org>2003-01-23 14:26:21 +0800
committerkuriyama <kuriyama@FreeBSD.org>2003-01-23 14:26:21 +0800
commit0c6638d3dd5e543559af813fd2f1d5036b0a4696 (patch)
tree1eccfa04dff4eac7bcc54228b7455a32a6e11e1e /archivers
parent9cd108675ae2e5753cc3bb37ca66d039213725ae (diff)
downloadfreebsd-ports-gnome-0c6638d3dd5e543559af813fd2f1d5036b0a4696.tar.gz
freebsd-ports-gnome-0c6638d3dd5e543559af813fd2f1d5036b0a4696.tar.zst
freebsd-ports-gnome-0c6638d3dd5e543559af813fd2f1d5036b0a4696.zip
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).
Diffstat (limited to 'archivers')
-rw-r--r--archivers/p5-Archive-Zip/Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/archivers/p5-Archive-Zip/Makefile b/archivers/p5-Archive-Zip/Makefile
index 09c02687f026..2f5846ed8714 100644
--- a/archivers/p5-Archive-Zip/Makefile
+++ b/archivers/p5-Archive-Zip/Makefile
@@ -24,8 +24,7 @@ MAN3= Archive::Zip.3 Archive::Zip::Tree.3 Archive::Zip::FAQ.3 Archive::Zip::Mem
.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.8'
-.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