Bug 44725 - textproc/p5-PodParser: p5-File-Spec should only be used if perl < 5.8
Summary: textproc/p5-PodParser: p5-File-Spec should only be used if perl < 5.8
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: skv
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-30 01:50 UTC by Alan Eldridge
Modified: 2002-11-23 17:30 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (1.13 KB, patch)
2002-10-30 01:50 UTC, Alan Eldridge
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Eldridge freebsd_committer freebsd_triage 2002-10-30 01:50:05 UTC
p5-File-Spec should only be used if perl < 5.8

Fix: ==8<====8<====8<====8<====8<====8<====8<====8<====8<====8<==
Comment 1 Alan Eldridge freebsd_committer freebsd_triage 2002-10-30 07:37:35 UTC
Responsible Changed
From-To: freebsd-ports->skv

Over to maintainer
http://www.freebsd.org/cgi/query-pr.cgi?pr=44725 

Comment 2 Alan Eldridge 2002-11-05 06:36:43 UTC
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/)
Comment 3 Alan Eldridge freebsd_committer freebsd_triage 2002-11-23 17:30:15 UTC
State Changed
From-To: open->closed

fixed. maintainer timeout.
http://www.freebsd.org/cgi/query-pr.cgi?pr=44725