1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-20 08:27:15 +00:00

Allow running respotify from other directories than %%PREFIX%%/bin by

setting the search path for the respotify-helper program.

Bump PORTREVISION
This commit is contained in:
Rene Ladan 2013-08-08 22:38:26 +00:00
parent 48f9528b90
commit 09207ebe8e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=324410
2 changed files with 16 additions and 0 deletions

View File

@ -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

View File

@ -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()