svn commit: r324410 - in head/multimedia/spotify-websocket-api: . files
Rene Ladan
rene at FreeBSD.org
Thu Aug 8 22:38:26 UTC 2013
Author: rene
Date: Thu Aug 8 22:38:26 2013
New Revision: 324410
URL: http://svnweb.freebsd.org/changeset/ports/324410
Log:
Allow running respotify from other directories than %%PREFIX%%/bin by
setting the search path for the respotify-helper program.
Bump PORTREVISION
Added:
head/multimedia/spotify-websocket-api/files/
head/multimedia/spotify-websocket-api/files/patch-clients__respotify__respotify.py (contents, props changed)
Modified:
head/multimedia/spotify-websocket-api/Makefile
Modified: head/multimedia/spotify-websocket-api/Makefile
==============================================================================
--- head/multimedia/spotify-websocket-api/Makefile Thu Aug 8 18:42:03 2013 (r324409)
+++ head/multimedia/spotify-websocket-api/Makefile Thu Aug 8 22:38:26 2013 (r324410)
@@ -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_PKGNAMEPRE
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
Added: head/multimedia/spotify-websocket-api/files/patch-clients__respotify__respotify.py
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/multimedia/spotify-websocket-api/files/patch-clients__respotify__respotify.py Thu Aug 8 22:38:26 2013 (r324410)
@@ -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()
More information about the svn-ports-all
mailing list