Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Mar 2013 14:45:15 -0700 (PDT)
From:      William Grzybowski <william88@gmail.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/177210: [PATCH] devel/ipython: make pyzmq optional
Message-ID:  <514b7f6b.a13bec0a.1578.294f@mx.google.com>
Resent-Message-ID: <201303212150.r2LLo0WN075740@freefall.freebsd.org>

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

>Number:         177210
>Category:       ports
>Synopsis:       [PATCH] devel/ipython: make pyzmq optional
>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:   Thu Mar 21 21:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     William Grzybowski
>Release:        FreeBSD 9.1-RELEASE amd64
>Organization:
>Environment:
>Description:

	pyzmq is not a required dependency, make it optional, on by default

>How-To-Repeat:
>Fix:

	See attached patch


--- ipython.patch begins here ---
Index: Makefile
===================================================================
--- Makefile	(revision 314859)
+++ Makefile	(working copy)
@@ -14,7 +14,6 @@
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}sqlite3>=2:${PORTSDIR}/databases/py-sqlite3
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pexpect>=2:${PORTSDIR}/misc/py-pexpect \
 		${PYTHON_PKGNAMEPREFIX}sqlite3>=2:${PORTSDIR}/databases/py-sqlite3 \
-		${PYTHON_PKGNAMEPREFIX}pyzmq>=2.1.4:${PORTSDIR}/devel/py-pyzmq
 
 USE_PYTHON=	yes
 USE_PYDISTUTILS=yes
@@ -22,10 +21,11 @@
 MAN1=		ipcluster.1 ipcontroller.1 ipengine.1 iplogger.1 \
 		ipython.1 irunner.1 pycolor.1
 
-OPTIONS_DEFINE=	X11 HTML_NOTEBOOK
-OPTIONS_DEFAULT=X11
+OPTIONS_DEFINE=	X11 HTML_NOTEBOOK ZMQ
+OPTIONS_DEFAULT=X11 ZMQ
 
 HTML_NOTEBOOK_DESC=	HTML notebook support
+ZMQ_DESC=		ZMQ support (parallel computing, qt console and notebook)
 
 .include <bsd.port.options.mk>
 
@@ -39,6 +39,10 @@
 RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}tornado>=2.0:${PORTSDIR}/www/py-tornado
 .endif
 
+.if ${PORT_OPTIONS:MZMQ}
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}pyzmq>=2.1.4:${PORTSDIR}/devel/py-pyzmq
+.endif
+
 post-patch:
 .if ! ${PORT_OPTIONS:MEXAMPLES}
 	${REINPLACE_CMD} -e "s# + example_files##g" ${WRKSRC}/setupbase.py
--- ipython.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?514b7f6b.a13bec0a.1578.294f>