Bug 44719 - devel/p5-File-Spec: p5-File-Spec should only be used if perl < 5.8
Summary: devel/p5-File-Spec: 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: dburr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-30 01:50 UTC by Alan Eldridge
Modified: 2003-02-09 01:57 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (1.68 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:02 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:24:57 UTC
Responsible Changed
From-To: freebsd-ports->dburr

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

Comment 2 Alan Eldridge 2002-11-05 06:25:43 UTC
Sorry, the patch should read like this:

==8<====8<====8<====8<====8<====8<====8<====8<====8<====8<==
Index: devel/p5-File-Spec/Makefile
===================================================================
RCS file: /home/ncvs/ports/devel/p5-File-Spec/Makefile,v
retrieving revision 1.7
diff -u -3 -r1.7 Makefile
--- devel/p5-File-Spec/Makefile	25 Apr 2002 15:37:29 -0000	1.7
+++ devel/p5-File-Spec/Makefile	5 Nov 2002 06:22:07 -0000
@@ -25,4 +25,22 @@
 		File::Spec::Win32.3
 MAN3PREFIX=	${PREFIX}/lib/perl5/${PERL_VERSION}
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+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} > 500600
+FORBIDDEN=	This port is for perl 5.6.0 and under only.
+.endif # ${PERL_LEVEL} > 500600
+
+.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 Edwin Groothuis freebsd_committer freebsd_triage 2003-02-09 01:57:06 UTC
State Changed
From-To: open->closed

Commited, thanks!