ports/63686: [MAINTAINER] net/py23-shadow-BitTorrent: add WITH_PSYCO knob
Stefan Walter
sw at gegenunendlich.de
Wed Mar 3 11:40:11 UTC 2004
>Number: 63686
>Category: ports
>Synopsis: [MAINTAINER] net/py23-shadow-BitTorrent: add WITH_PSYCO knob
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Wed Mar 03 03:40:10 PST 2004
>Closed-Date:
>Last-Modified:
>Originator: Stefan Walter
>Release: FreeBSD 5.2-CURRENT i386
>Organization:
Infinity Approximation Task Force
>Environment:
System: FreeBSD kyuzo.dunkelkammer.void 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Sat Feb 14 20:59:15 CET 2004
>Description:
Add a knob to enable the optimizing Python compiler.
Generated with FreeBSD Port Tools 0.50
>How-To-Repeat:
>Fix:
--- py23-shadow-BitTorrent-5.8.10.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/net/py-shadow-bittorrent.old/Makefile /usr/ports/net/py-shadow-bittorrent/Makefile
--- /usr/ports/net/py-shadow-bittorrent.old/Makefile Wed Mar 3 12:07:15 2004
+++ /usr/ports/net/py-shadow-bittorrent/Makefile Wed Mar 3 12:28:20 2004
@@ -17,7 +17,8 @@
CONFLICTS= py??-BitTorrent-*
USE_PYTHON= yes
-USE_PYDISTUTILS= yes
+USE_PYDISTUTILS=yes
+USE_REINPLACE= yes
WRKSRC= ${WRKDIR}/bittorrent-CVS-shadowsclient
@@ -33,9 +34,19 @@
PLIST_SUB+= GUI='@comment '
.endif
+.ifdef(WITH_PSYCO)
+RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/psyco/_psyco.so:${PORTSDIR}/devel/py-psyco
+post-patch:
+ @${REINPLACE_CMD} -e "s/^psyco = 0/psyco = 1/g" \
+ ${WRKSRC}/BitTorrent/PSYCO.py
+.endif
+
pre-everything::
.ifndef(WITHOUT_GUI)
@${ECHO_MSG} '===> Define WITHOUT_GUI to disable GUI installation'
+.endif
+.ifndef(WITH_PSYCO)
+ @${ECHO_MSG} '===> Define WITH_PSYCO to enable the optimizing Python compiler'
.endif
post-install:
--- py23-shadow-BitTorrent-5.8.10.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list