aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authorrene <rene@FreeBSD.org>2013-08-09 06:38:26 +0800
committerrene <rene@FreeBSD.org>2013-08-09 06:38:26 +0800
commit4859ee67aa9d52744e71ca8d2487f8ce69124022 (patch)
tree57a12ae332c75c7bd37a4c0d37ff10a28381489d /multimedia
parent26f5ffe80b5adecd6e84820d050a2244d5bda4ca (diff)
downloadfreebsd-ports-gnome-4859ee67aa9d52744e71ca8d2487f8ce69124022.tar.gz
freebsd-ports-gnome-4859ee67aa9d52744e71ca8d2487f8ce69124022.tar.zst
freebsd-ports-gnome-4859ee67aa9d52744e71ca8d2487f8ce69124022.zip
Allow running respotify from other directories than %%PREFIX%%/bin by
setting the search path for the respotify-helper program. Bump PORTREVISION
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/spotify-websocket-api/Makefile5
-rw-r--r--multimedia/spotify-websocket-api/files/patch-clients__respotify__respotify.py11
2 files changed, 16 insertions, 0 deletions
diff --git a/multimedia/spotify-websocket-api/Makefile b/multimedia/spotify-websocket-api/Makefile
index 215f4bd8a5b1..c1bc5f5064c3 100644
--- a/multimedia/spotify-websocket-api/Makefile
+++ b/multimedia/spotify-websocket-api/Makefile
@@ -3,6 +3,7 @@
PORTNAME= SpotifyWebsocketAPI
PORTVERSION= 0.2
+PORTREVISION= 1
CATEGORIES= multimedia python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -42,6 +43,10 @@ EXAMPLES_RUN_DEPENDS=${PYTHON_PKGNAMEPREFIX}curl>=0:${PORTSDIR}/ftp/py-curl \
USE_GSTREAMER= python
.endif
+post-patch:
+ ${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|" \
+ ${WRKSRC}/clients/respotify/respotify.py
+
post-install:
.for f in ${CLIENTFILES}
@${INSTALL_SCRIPT} ${WRKSRC}/clients/respotify/${f} ${PREFIX}/bin
diff --git a/multimedia/spotify-websocket-api/files/patch-clients__respotify__respotify.py b/multimedia/spotify-websocket-api/files/patch-clients__respotify__respotify.py
new file mode 100644
index 000000000000..8209df77a053
--- /dev/null
+++ b/multimedia/spotify-websocket-api/files/patch-clients__respotify__respotify.py
@@ -0,0 +1,11 @@
+--- clients/respotify/respotify.py.orig 2013-08-08 20:18:57.000000000 +0200
++++ clients/respotify/respotify.py 2013-08-09 00:15:15.000000000 +0200
+@@ -278,7 +278,7 @@
+ if spotify.logged_in():
+ os.system("kill `pgrep -f respotify-helper` &> /dev/null")
+ uri_resolver = subprocess.Popen([sys.executable, "respotify-helper.py",
+- args.username, args.password])
++ args.username, args.password], env={"PATH": "%%PREFIX%%/bin"})
+ with client:
+ client.connect(host="localhost", port="6600")
+ Thread(target=heartbeat_handler).start()