Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Mar 2013 23:45:11 GMT
From:      Glen Barber <gjb@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/177360: [patch] net-im/twirssi: Allow installation with development irssi port
Message-ID:  <201303242345.r2ONjBUc047217@red.freebsd.org>
Resent-Message-ID: <201303242350.r2ONo0ZA069278@freefall.freebsd.org>

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

>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@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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303242345.r2ONjBUc047217>