Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Oct 2002 20:48:34 -0500 (EST)
From:      Alan Eldridge <alane@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        skv@FreeBSD.org
Subject:   ports/44726: textproc/p5-RDF-Notation3: p5-File-Spec should only be used if perl < 5.8
Message-ID:  <200210300148.g9U1mYao004703@wwweasel.geeksrus.net>

next in thread | raw e-mail | index | archive | help

>Number:         44726
>Category:       ports
>Synopsis:       textproc/p5-RDF-Notation3: p5-File-Spec should only be used if perl < 5.8
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 29 17:50:05 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Alan Eldridge
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
Geeksrus.NET
>Environment:

System: FreeBSD wwweasel.geeksrus.net 4.7-STABLE FreeBSD 4.7-STABLE #2
Sat Oct 26 12:33:12 EDT 2002
root@wwweasel.geeksrus.net:/usr/obj/usr/src/sys/MY_SHITS_FUCKED_UP  i386

>Description:

p5-File-Spec should only be used if perl < 5.8

>How-To-Repeat:

>Fix:

==8<====8<====8<====8<====8<====8<====8<====8<====8<====8<==
Index: textproc/p5-RDF-Notation3/Makefile
===================================================================
RCS file: /home/ncvs/ports/textproc/p5-RDF-Notation3/Makefile,v
retrieving revision 1.2
diff -u -3 -r1.2 Makefile
--- textproc/p5-RDF-Notation3/Makefile	30 May 2002 16:14:26 -0000	1.2
+++ textproc/p5-RDF-Notation3/Makefile	29 Oct 2002 09:25:12 -0000
@@ -14,8 +14,7 @@
 
 MAINTAINER=	skv@FreeBSD.org
 
-BUILD_DEPENDS=	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec \
-		${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/XML/SAX.pm:${PORTSDIR}/textproc/p5-XML-SAX \
+BUILD_DEPENDS=	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/XML/SAX.pm:${PORTSDIR}/textproc/p5-XML-SAX \
 		${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/RDF/Core.pm:${PORTSDIR}/textproc/p5-RDF-Core \
 		${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/RDFStore.pm:${PORTSDIR}/textproc/p5-RDFStore
 RUN_DEPENDS=	${BUILD_DEPENDS}
@@ -35,4 +34,15 @@
 	@${FIND} ${WRKSRC} -name "*.pm" | xargs ${PERL} -pi -e \
 	'$$package=$$1 if /^package\s+([^\s;]*);/; s!^require 5.005_62;!!; s!^use warnings;!!; s!^our\s+(\$$)(VERSION)\s+=!$$1$${package}::$$2=!;'
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+SITE_PERL?=	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}
+
+PERL_MAJOR=${PERL_VER:C|^([1-9]+).*|\1|}
+PERL_MINOR=${PERL_VER:C|^[1-9]+\.0*([1-9]+).*|\1|}
+
+.if ${PERL_MAJOR} < 5 || ${PERL_MAJOR} == 5 && ${PERL_MINOR} < 8
+BUILD_DEPENDS+=	${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
+.endif # ${PERL_MAJOR} < 5 || ${PERL_MAJOR} == 5 && ${PERL_MINOR} < 8
+
+.include <bsd.port.post.mk>
==8<====8<====8<====8<====8<====8<====8<====8<====8<====8<==

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210300148.g9U1mYao004703>