[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
BitTorrent with wxPython (aka is this how I use PATCH_LIST?)
- To: ports_(_at_)_openbsd_(_dot_)_org
- Subject: BitTorrent with wxPython (aka is this how I use PATCH_LIST?)
- From: rich cannings <rich_(_at_)_cannings_(_dot_)_org>
- Date: Thu, 15 Jan 2004 09:57:50 -0700
So, is this how I use PATCH_LIST?
Here is a patch to Dalgleish's wxPython port with BitTorrent. Tested on
386 and macppc.
Personally, I'm on the fence if I will use the wxpython flavor. Jolan's
port forced me to write BitTorrent.sh (attached) which works like the
gui bittorrent and requires alot less packages.
rich
diff BitTorrent.orig/Makefile BitTorrent/Makefile
--- BitTorrent.orig/Makefile Thu Jan 15 09:38:34 2004
+++ BitTorrent/Makefile Thu Jan 15 09:38:41 2004
@@ -17,6 +17,18 @@
MODULES= python
+FLAVORS+= wxpython
+FLAVOR?=
+
+.if ${FLAVOR:L:Mwxpython}
+USE_X11= Yes
+RUN_DEPENDS+= ::x11/wxPython
+PATCH_LIST=
+.else
+PATCH_LIST= patch-setup_py
+.endif
+
+
post-configure:
@perl -pi -e \
's,/usr/bin/env python,/usr/bin/env python${MODPY_VERSION},g' \
diff BitTorrent.orig/pkg/PLIST BitTorrent/pkg/PLIST
--- BitTorrent.orig/pkg/PLIST Thu Jan 15 09:38:34 2004
+++ BitTorrent/pkg/PLIST Thu Jan 15 09:39:05 2004
@@ -1,6 +1,8 @@
@comment $OpenBSD: PLIST,v 1.2 2003/09/27 14:40:32 jolan Exp $
bin/btcompletedir.py
+bin/btcompletedirgui.py
bin/btdownloadcurses.py
+bin/btdownloadgui.py
bin/btdownloadheadless.py
bin/btdownloadlibrary.py
bin/btlaunchmany.py
#!/bin/sh
DOWNLOAD_DIRECTORY=/stuff/incoming
BT=/usr/local/bin/btdownloadcurses.py
XTERM_ARGS="-fg black -bg grey -geometry 60x10 -e "
cd ${DOWNLOAD_DIRECTORY}; xterm ${XTERM_ARGS} ${BT} "$1"
Visit your host, monkey.org