From owner-freebsd-ports Tue Oct 29 17:50:51 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E81F37B40D for ; Tue, 29 Oct 2002 17:50:18 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 55C3943E91 for ; Tue, 29 Oct 2002 17:50:10 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g9U1oAx3011485 for ; Tue, 29 Oct 2002 17:50:10 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g9U1oAEt011484; Tue, 29 Oct 2002 17:50:10 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1FA8A37B401; Tue, 29 Oct 2002 17:49:08 -0800 (PST) Received: from wwweasel.geeksrus.net (wwweasel.geeksrus.net [64.8.210.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 782AD43E7B; Tue, 29 Oct 2002 17:49:07 -0800 (PST) (envelope-from alane@wwweasel.geeksrus.net) Received: from wwweasel.geeksrus.net (localhost [127.0.0.1]) by wwweasel.geeksrus.net (8.12.6/8.12.6) with ESMTP id g9U1mhjR005074; Tue, 29 Oct 2002 20:48:43 -0500 (EST) (envelope-from alane@wwweasel.geeksrus.net) Received: (from root@localhost) by wwweasel.geeksrus.net (8.12.6/8.12.6/Submit) id g9U1mgxd005073; Tue, 29 Oct 2002 20:48:42 -0500 (EST) (envelope-from alane) Message-Id: <200210300148.g9U1mgxd005073@wwweasel.geeksrus.net> Date: Tue, 29 Oct 2002 20:48:42 -0500 (EST) From: Alan Eldridge Reply-To: Alan Eldridge To: FreeBSD-gnats-submit@FreeBSD.org Cc: kuriyama@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/44732: www/p5-HTML-Template: p5-File-Spec should only be used if perl < 5.8 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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 -.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