p5-File-Spec should only be used if perl < 5.8 Fix: ==8<====8<====8<====8<====8<====8<====8<====8<====8<====8<==
Responsible Changed From-To: freebsd-ports->skv Over to maintainer http://www.freebsd.org/cgi/query-pr.cgi?pr=44725
Please use this patch. It is more precise. The long code stanza will be incorporated into bsd.port.mk at some point soon, so it is only a temporary wart. ==8<====8<====8<====8<====8<====8<====8<====8<====8<====8<== Index: textproc/p5-PodParser/Makefile =================================================================== RCS file: /home/ncvs/ports/textproc/p5-PodParser/Makefile,v retrieving revision 1.3 diff -u -3 -r1.3 Makefile --- textproc/p5-PodParser/Makefile 12 Sep 2002 17:22:03 -0000 1.3 +++ textproc/p5-PodParser/Makefile 5 Nov 2002 06:29:16 -0000 @@ -14,7 +14,6 @@ MAINTAINER= skv@FreeBSD.org -BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec RUN_DEPENDS= ${BUILD_DEPENDS} PERL_CONFIGURE= yes @@ -29,4 +28,24 @@ post-patch: @${FIND} ${WRKSRC} -name \*.orig -exec ${RM} {} \; -.include <bsd.port.mk> +.include <bsd.port.pre.mk> + +SITE_PERL?= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER} + +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+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec +.endif # ${PERL_LEVEL} < 500601 + +.include <bsd.port.post.mk> ==8<====8<====8<====8<====8<====8<====8<====8<====8<====8<== -- Alan Eldridge Unix/C(++) IT Pro for 20 yrs, seeking new employment. (http://wwweasel.geeksrus.net/~alane/resume.txt) KDE, KDE-FreeBSD Teams (http://www.kde.org, http://freebsd.kde.org/)
State Changed From-To: open->closed fixed. maintainer timeout. http://www.freebsd.org/cgi/query-pr.cgi?pr=44725