diff options
author | Rene Ladan <rene@FreeBSD.org> | 2013-08-08 18:24:44 +0000 |
---|---|---|
committer | Rene Ladan <rene@FreeBSD.org> | 2013-08-08 18:24:44 +0000 |
commit | 1004b19b87434832a42045b63a6c0d71d11048c4 (patch) | |
tree | 44fff6a68b99fbde61b65073a6aa84f4e72f5d3b /multimedia | |
parent | 887a0f5c5aece92b2d7e946da506427b50cf129e (diff) | |
download | ports-1004b19b87434832a42045b63a6c0d71d11048c4.tar.gz ports-1004b19b87434832a42045b63a6c0d71d11048c4.zip |
Notes
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/Makefile | 1 | ||||
-rw-r--r-- | multimedia/spotify-websocket-api/Makefile | 59 | ||||
-rw-r--r-- | multimedia/spotify-websocket-api/distinfo | 2 | ||||
-rw-r--r-- | multimedia/spotify-websocket-api/pkg-descr | 7 | ||||
-rw-r--r-- | multimedia/spotify-websocket-api/pkg-plist | 8 |
5 files changed, 77 insertions, 0 deletions
diff --git a/multimedia/Makefile b/multimedia/Makefile index e46095e09240..6691f7aa79f0 100644 --- a/multimedia/Makefile +++ b/multimedia/Makefile @@ -322,6 +322,7 @@ SUBDIR += smtube SUBDIR += spigot SUBDIR += spook + SUBDIR += spotify-websocket-api SUBDIR += streamanalyze SUBDIR += subtitlecomposer-kde4 SUBDIR += subtitleeditor diff --git a/multimedia/spotify-websocket-api/Makefile b/multimedia/spotify-websocket-api/Makefile new file mode 100644 index 000000000000..215f4bd8a5b1 --- /dev/null +++ b/multimedia/spotify-websocket-api/Makefile @@ -0,0 +1,59 @@ +# Created by: rene@FreeBSD.org +# $FreeBSD$ + +PORTNAME= SpotifyWebsocketAPI +PORTVERSION= 0.2 +CATEGORIES= multimedia python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= rene@FreeBSD.org +COMMENT= Websocket API and client for Spotify + +USE_GITHUB= yes +GH_COMMIT= 08ee326 +GH_ACCOUNT= Hexxeh +GH_PROJECT= spotify-websocket-api +GH_TAGNAME= ${GH_COMMIT} + +USE_PYTHON= yes # tested with 2.7 +USE_PYDISTUTILS= easy_install + +OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options +OPTIONS_DEFINE= EXAMPLES + +PORTEXAMPLES= blocking.py nonblocking.py decode_mercury.py play.py \ + serve.py ctype.py gstreamer.py + +CLIENTFILES= respotify.py respotify-helper.py + +.include <bsd.port.options.mk> + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>=1.1.0:${PORTSDIR}/www/py-requests \ + ${PYTHON_PKGNAMEPREFIX}ws4py>=0.2.4:${PORTSDIR}/www/py-ws4py \ + ${PYTHON_PKGNAMEPREFIX}protobuf>=2.4.1:${PORTSDIR}/devel/py-protobuf \ + ${PYTHON_PKGNAMEPREFIX}lxml>=3.1:${PORTSDIR}/devel/py-lxml \ + ${PYTHON_PKGNAMEPREFIX}mpd2>=0:${PORTSDIR}/audio/py-mpd2 + +EXAMPLES_LIB_DEPENDS=libao.so:${PORTSDIR}/audio/libao \ + libmpg123.so:${PORTSDIR}/audio/mpg123 +EXAMPLES_RUN_DEPENDS=${PYTHON_PKGNAMEPREFIX}curl>=0:${PORTSDIR}/ftp/py-curl \ + ${PYTHON_PKGNAMEPREFIX}gobject>=0:${PORTSDIR}/devel/py-gobject +.if ${PORT_OPTIONS:MEXAMPLES} +USE_GSTREAMER= python +.endif + +post-install: +.for f in ${CLIENTFILES} + @${INSTALL_SCRIPT} ${WRKSRC}/clients/respotify/${f} ${PREFIX}/bin + @${PYTHON_CMD} -O -mcompileall ${PREFIX}/bin/${f} + @${PYTHON_CMD} -mcompileall ${PREFIX}/bin/${f} +.endfor + @${LN} -s ${PREFIX}/bin/respotify.py ${PREFIX}/bin/respotify +.if ${PORT_OPTIONS:MEXAMPLES} + @${MKDIR} ${EXAMPLESDIR} +.for f in ${PORTEXAMPLES} + @${INSTALL_SCRIPT} ${WRKSRC}/examples/${f} ${EXAMPLESDIR} +.endfor +.endif + +.include <bsd.port.mk> diff --git a/multimedia/spotify-websocket-api/distinfo b/multimedia/spotify-websocket-api/distinfo new file mode 100644 index 000000000000..6b9728e82bca --- /dev/null +++ b/multimedia/spotify-websocket-api/distinfo @@ -0,0 +1,2 @@ +SHA256 (SpotifyWebsocketAPI-0.2.tar.gz) = e426c9ee54b261022d0af8adc83954d4522bc74bc743bc33b5f5cd6c895de955 +SIZE (SpotifyWebsocketAPI-0.2.tar.gz) = 46773 diff --git a/multimedia/spotify-websocket-api/pkg-descr b/multimedia/spotify-websocket-api/pkg-descr new file mode 100644 index 000000000000..5da885e43b28 --- /dev/null +++ b/multimedia/spotify-websocket-api/pkg-descr @@ -0,0 +1,7 @@ +A library, client, and some examples written in Python to access the +Spotify web API. Note that this is still premature and missing some +functions. + +A Premium account is required to use this port. + +WWW: https://github.com/Hexxeh/spotify-websocket-api/ diff --git a/multimedia/spotify-websocket-api/pkg-plist b/multimedia/spotify-websocket-api/pkg-plist new file mode 100644 index 000000000000..cf9354a20a7c --- /dev/null +++ b/multimedia/spotify-websocket-api/pkg-plist @@ -0,0 +1,8 @@ +bin/respotify +bin/respotify-helper.py +bin/respotify-helper.pyc +bin/respotify-helper.pyo +bin/respotify.py +bin/respotify.pyc +bin/respotify.pyo +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%% |