Bug 66525 - [PATCH] french/plgrenouille: Fix for pre-5.6 perl
Summary: [PATCH] french/plgrenouille: Fix for pre-5.6 perl
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: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-11 14:00 UTC by Lars Thegler
Modified: 2004-05-21 15:02 UTC (History)
1 user (show)

See Also:


Attachments
plgrenouille-0.70.6.patch (960 bytes, patch)
2004-05-11 14:00 UTC, Lars Thegler
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Thegler 2004-05-11 14:00:42 UTC
Fix for pre-5.6 perl

Port maintainer (cyrille.lefevre@laposte.net) is cc'd.

Generated with FreeBSD Port Tools 0.50
Comment 1 Cyrille Lefevre 2004-05-11 22:24:29 UTC
almost approved, except that I prefer to keep RUN_DEPENDS close.

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/french/plgrenouille/Makefile,v
retrieving revision 1.8
diff -u -I$Id.*$ -I$.+BSD.*$ -r1.8 Makefile
--- Makefile	12 Mar 2004 23:49:14 -0000	1.8
+++ Makefile	11 May 2004 21:23:14 -0000
@@ -16,9 +16,15 @@
 
 LIB_DEPENDS=	netsnmp.6:${PORTSDIR}/net-mgmt/net-snmp
 RUN_DEPENDS=	${SITE_PERL}/Net/FTP.pm:${PORTSDIR}/net/p5-Net \
-		${SITE_PERL}/Net/SNMP.pm:${PORTSDIR}/net-mgmt/p5-Net-SNMP \
 		${SITE_PERL}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes
 
+.include <bsd.port.pre.mk>
+.if ${PERL_LEVEL} < 500600
+RUN_DEPENDS+=	${SITE_PERL}/Net/SNMP.pm:${PORTSDIR}/net-mgmt/p5-Net-SNMP3
+.else
+RUN_DEPENDS+=	${SITE_PERL}/Net/SNMP.pm:${PORTSDIR}/net-mgmt/p5-Net-SNMP
+.endif
+
 .if !defined(BATCH)
 IS_INTERACTIVE=	yes
 .endif
@@ -110,4 +116,4 @@
 configure-package:
 	@${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>

Cyrille Lefevre
-- 
mailto:cyrille.lefevre@laposte.net
Comment 2 Clement Laforet freebsd_committer freebsd_triage 2004-05-21 15:01:40 UTC
State Changed
From-To: open->closed

Committed, thanks!