From f33dcded0d3920e91886c6446a77ba864024a008 Mon Sep 17 00:00:00 2001 From: rene Date: Mon, 16 Dec 2013 18:06:06 +0000 Subject: - Convert to PYDISTUTILS=yes - Stagify - Mark as architecture-independent. - Use option helpers - Bump PORTREVISION to remove runtime dependency on py-setuptools --- multimedia/spotify-websocket-api/Makefile | 29 +++++++++++++---------------- multimedia/spotify-websocket-api/pkg-plist | 1 - 2 files changed, 13 insertions(+), 17 deletions(-) (limited to 'multimedia/spotify-websocket-api') diff --git a/multimedia/spotify-websocket-api/Makefile b/multimedia/spotify-websocket-api/Makefile index 52380b032169..9fd703efedfd 100644 --- a/multimedia/spotify-websocket-api/Makefile +++ b/multimedia/spotify-websocket-api/Makefile @@ -3,13 +3,15 @@ PORTNAME= SpotifyWebsocketAPI PORTVERSION= 0.2 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= multimedia python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= rene@FreeBSD.org COMMENT= Websocket API and client for Spotify +NO_ARCH= yes + USE_GITHUB= yes GH_COMMIT= 08ee326 GH_ACCOUNT= Hexxeh @@ -17,7 +19,8 @@ GH_PROJECT= spotify-websocket-api GH_TAGNAME= ${GH_COMMIT} USE_PYTHON= yes # tested with 2.7 -USE_PYDISTUTILS= easy_install +USE_PYDISTUTILS= yes +PYDISTUTILS_AUTOPLIST= yes OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options OPTIONS_DEFINE= EXAMPLES @@ -27,9 +30,6 @@ PORTEXAMPLES= blocking.py nonblocking.py decode_mercury.py play.py \ CLIENTFILES= respotify.py respotify-helper.py -NO_STAGE= yes -.include - 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 \ @@ -41,9 +41,7 @@ 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 +EXAMPLES_USE= GSTREAMER=python post-patch: ${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|" \ @@ -51,16 +49,15 @@ post-patch: 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} + @${INSTALL_SCRIPT} ${WRKSRC}/clients/respotify/${f} ${STAGEDIR}${PREFIX}/bin + @${PYTHON_CMD} -O -mcompileall ${STAGEDIR}${PREFIX}/bin/${f} + @${PYTHON_CMD} -mcompileall ${STAGEDIR}${PREFIX}/bin/${f} .endfor - @${LN} -s ${PREFIX}/bin/respotify.py ${PREFIX}/bin/respotify -.if ${PORT_OPTIONS:MEXAMPLES} - @${MKDIR} ${EXAMPLESDIR} + @${LN} -s ${PREFIX}/bin/respotify.py ${STAGEDIR}${PREFIX}/bin/respotify + + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} .for f in ${PORTEXAMPLES} - @${INSTALL_SCRIPT} ${WRKSRC}/examples/${f} ${EXAMPLESDIR} + @${INSTALL_SCRIPT} ${WRKSRC}/examples/${f} ${STAGEDIR}${EXAMPLESDIR} .endfor -.endif .include diff --git a/multimedia/spotify-websocket-api/pkg-plist b/multimedia/spotify-websocket-api/pkg-plist index cf9354a20a7c..5c460cbb72cc 100644 --- a/multimedia/spotify-websocket-api/pkg-plist +++ b/multimedia/spotify-websocket-api/pkg-plist @@ -5,4 +5,3 @@ bin/respotify-helper.pyo bin/respotify.py bin/respotify.pyc bin/respotify.pyo -%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%% -- cgit