Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Oct 2002 20:48:42 -0500 (EST)
From:      Alan Eldridge <alane@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        kuriyama@FreeBSD.org
Subject:   ports/44732: www/p5-HTML-Template: p5-File-Spec should only be used if perl < 5.8
Message-ID:  <200210300148.g9U1mgxd005073@wwweasel.geeksrus.net>

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

>Number:         44732
>Category:       ports
>Synopsis:       www/p5-HTML-Template: 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:09 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: www/p5-HTML-Template/Makefile
===================================================================
RCS file: /home/ncvs/ports/www/p5-HTML-Template/Makefile,v
retrieving revision 1.8
diff -u -3 -r1.8 Makefile
--- www/p5-HTML-Template/Makefile	21 Oct 2002 07:21:29 -0000	1.8
+++ www/p5-HTML-Template/Makefile	29 Oct 2002 09:24:33 -0000
@@ -16,16 +16,20 @@
 
 .include <bsd.port.pre.mk>
 
-.if !exists(${PREFIX}/lib/perl5/5.6.1/File/Spec.pm)
-BUILD_DEPENDS=	${PERL_INC}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
-RUN_DEPENDS=	${PERL_INC}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
-.endif
-
 PERL_CONFIGURE=	yes
 
 MAN3=		HTML::Template.3
 MAN3PREFIX=	${PREFIX}/lib/perl5/${PERL_VERSION}
 PERL_INC=	${PREFIX}/lib/perl5/site_perl/${PERL_VER}
+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+=	${PERL_INC}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
+RUN_DEPENDS+=	${PERL_INC}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
+.endif # ${PERL_MAJOR} < 5 || ${PERL_MAJOR} == 5 && ${PERL_MINOR} < 8
 
 post-patch:
 	${PERL} -i -pe 's@%%PERL_INC%%@${PERL_INC}@' ${WRKSRC}/Template.pm
==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.g9U1mgxd005073>