Date: Mon, 17 May 2004 14:01:08 +0200 (CEST) From: Erwin Lansing <erwin@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/66736: Conditionalize dependency on p5-DBI(-137) for mail/yadda Message-ID: <200405171201.i4HC18oT051884@bamse.staff.tdk.net> Resent-Message-ID: <200405171220.i4HCKCaf060906@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 66736 >Category: ports >Synopsis: Conditionalize dependency on p5-DBI(-137) for mail/yadda >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Mon May 17 05:20:12 PDT 2004 >Closed-Date: >Last-Modified: >Originator: Erwin Lansing >Release: FreeBSD 4.9-RELEASE-p3 i386 >Organization: <organization of PR autho lines)> >Environment: System: FreeBSD bamse.staff.tdk.net 4.9-RELEASE-p3 FreeBSD 4.9-RELEASE-p3 #4: Wed Mar 3 11:05:11 CET 2004 root@bamse.staff.tdk.net:/usr/obj/usr/src/sys/BAMSE i386 >Description: Perl < 5.6 needs databases/p5-DBI-137, not p5-DBI. The following patch conditionalizes this dependency depending on the installed perl version. >How-To-Repeat: >Fix: --- hest begins here --- Index: Makefile =================================================================== RCS file: /home/pcvs/ports/mail/yadda/Makefile,v retrieving revision 1.2 diff -u -r1.2 Makefile --- Makefile 12 Apr 2004 23:06:44 -0000 1.2 +++ Makefile 17 May 2004 12:02:04 -0000 @@ -14,8 +14,7 @@ MAINTAINER= jesper@noehr.org COMMENT= Yet Another Damn Delivery Agent -RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI \ - ${SITE_PERL}/Mail/Audit.pm:${PORTSDIR}/mail/p5-Mail-Audit +RUN_DEPENDS= ${SITE_PERL}/Mail/Audit.pm:${PORTSDIR}/mail/p5-Mail-Audit USE_PERL5_RUN= yes @@ -26,4 +25,12 @@ do-install: ${INSTALL_SCRIPT} ${WRKDIR}/yadda ${PREFIX}/sbin -.include <bsd.port.mk> +.include <bsd.port.pre.mk> + +.if ${PERL_LEVEL} < 500600 +RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI-137 +.else +RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI +.endif + +.include <bsd.port.post.mk> --- hest ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200405171201.i4HC18oT051884>