Date: Thu, 8 Aug 2013 18:24:45 +0000 (UTC) From: Rene Ladan <rene@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r324408 - in head/multimedia: . spotify-websocket-api Message-ID: <201308081824.r78IOjhd091830@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rene Date: Thu Aug 8 18:24:44 2013 New Revision: 324408 URL: http://svnweb.freebsd.org/changeset/ports/324408 Log: 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/ Added: head/multimedia/spotify-websocket-api/ head/multimedia/spotify-websocket-api/Makefile (contents, props changed) head/multimedia/spotify-websocket-api/distinfo (contents, props changed) head/multimedia/spotify-websocket-api/pkg-descr (contents, props changed) head/multimedia/spotify-websocket-api/pkg-plist (contents, props changed) Modified: head/multimedia/Makefile Modified: head/multimedia/Makefile ============================================================================== --- head/multimedia/Makefile Thu Aug 8 18:10:37 2013 (r324407) +++ head/multimedia/Makefile Thu Aug 8 18:24:44 2013 (r324408) @@ -322,6 +322,7 @@ SUBDIR += smtube SUBDIR += spigot SUBDIR += spook + SUBDIR += spotify-websocket-api SUBDIR += streamanalyze SUBDIR += subtitlecomposer-kde4 SUBDIR += subtitleeditor Added: head/multimedia/spotify-websocket-api/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/spotify-websocket-api/Makefile Thu Aug 8 18:24:44 2013 (r324408) @@ -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> Added: head/multimedia/spotify-websocket-api/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/spotify-websocket-api/distinfo Thu Aug 8 18:24:44 2013 (r324408) @@ -0,0 +1,2 @@ +SHA256 (SpotifyWebsocketAPI-0.2.tar.gz) = e426c9ee54b261022d0af8adc83954d4522bc74bc743bc33b5f5cd6c895de955 +SIZE (SpotifyWebsocketAPI-0.2.tar.gz) = 46773 Added: head/multimedia/spotify-websocket-api/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/spotify-websocket-api/pkg-descr Thu Aug 8 18:24:44 2013 (r324408) @@ -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/ Added: head/multimedia/spotify-websocket-api/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/spotify-websocket-api/pkg-plist Thu Aug 8 18:24:44 2013 (r324408) @@ -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%%
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308081824.r78IOjhd091830>