ports/177360: [patch] net-im/twirssi: Allow installation with development irssi port
Glen Barber
gjb at FreeBSD.org
Sun Mar 24 23:50:00 UTC 2013
>Number: 177360
>Category: ports
>Synopsis: [patch] net-im/twirssi: Allow installation with development irssi port
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun Mar 24 23:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Glen Barber
>Release: FreeBSD 10.0-CURRENT r248659
>Organization:
>Environment:
FreeBSD nucleus 10.0-CURRENT FreeBSD 10.0-CURRENT #111 r248659: Sat Mar 23 16:49:27 EDT 2013 root at nucleus:/usr/obj/usr/src/sys/NUCLEUS amd64
>Description:
net-im/twirssi forces irc/irssi port, while it also works well with irc/irssi-devel port. Add OPTIONS entries to allow selection of development branch of irssi.
>How-To-Repeat:
>Fix:
Patch attached.
Patch attached with submission follows:
Index: net-im/twirssi/Makefile
===================================================================
--- net-im/twirssi/Makefile (revision 315180)
+++ net-im/twirssi/Makefile (working copy)
@@ -10,11 +10,26 @@
MAINTAINER= garga at FreeBSD.org
COMMENT= Twitter script to irssi
-RUN_DEPENDS= irssi:${PORTSDIR}/irc/irssi \
- p5-Net-Twitter>=0:${PORTSDIR}/net/p5-Net-Twitter \
+RUN_DEPENDS= p5-Net-Twitter>=0:${PORTSDIR}/net/p5-Net-Twitter \
p5-WWW-Shorten>=0:${PORTSDIR}/www/p5-WWW-Shorten \
p5-WWW-Shorten-Bitly>=0:${PORTSDIR}/www/p5-WWW-Shorten-Bitly
+OPTIONS_SINGLE= IRSSIVER
+OPTIONS_SINGLE_IRSSIVER=PROD DEVEL
+OPTIONS_DEFAULT=PROD
+PROD_DESC= Use production irc/irssi port
+DEVEL_DESC= Use development irc/irssi-devel port
+
+.include <bsd.port.pre.mk>
+
+.if ${PORT_OPTIONS:MPROD}
+RUN_DEPENDS+= irssi:${PORTSDIR}/irc/irssi
+.endif
+
+.if ${PORT_OPTIONS:MPROD}
+RUN_DEPENDS+= irssi:${PORTSDIR}/irc/irssi-devel
+.endif
+
SUB_FILES= pkg-message
NO_BUILD= yes
@@ -31,4 +46,4 @@
@${INSTALL_SCRIPT} -v ${WRKSRC}/${PORTNAME}.pl ${DATADIR}
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list