diff options
author | mva <mva@FreeBSD.org> | 2014-01-24 03:57:32 +0800 |
---|---|---|
committer | mva <mva@FreeBSD.org> | 2014-01-24 03:57:32 +0800 |
commit | 82b514da5935a9c4a3d6a5c1d7d30b06a8494991 (patch) | |
tree | 16aa4866aa9da4a8e7ec9eaea7d11fefe64b1453 /audio/py-shout | |
parent | 6b8c58efd6b1aa89901ff2c22d3cc05eabd3bd58 (diff) | |
download | freebsd-ports-gnome-82b514da5935a9c4a3d6a5c1d7d30b06a8494991.tar.gz freebsd-ports-gnome-82b514da5935a9c4a3d6a5c1d7d30b06a8494991.tar.zst freebsd-ports-gnome-82b514da5935a9c4a3d6a5c1d7d30b06a8494991.zip |
- Enable stagedir support
- Add LICENSE
- Convert to PYDISTUTILS_AUTOPLIST
- Restrict the supported python versions
Diffstat (limited to 'audio/py-shout')
-rw-r--r-- | audio/py-shout/Makefile | 15 | ||||
-rw-r--r-- | audio/py-shout/pkg-plist | 3 |
2 files changed, 8 insertions, 10 deletions
diff --git a/audio/py-shout/Makefile b/audio/py-shout/Makefile index 995f4211df96..31482c7d9d7e 100644 --- a/audio/py-shout/Makefile +++ b/audio/py-shout/Makefile @@ -11,20 +11,21 @@ DISTNAME= ${PORTNAME}-python-${PORTVERSION} MAINTAINER= python@FreeBSD.org COMMENT= Python bindings for libshout2 +LICENSE= LGPL20 + LIB_DEPENDS= libshout.so:${PORTSDIR}/audio/libshout2 EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME} USES= pkgconfig -NO_STAGE= yes -USE_PYTHON= yes +USE_PYTHON= 2 USE_PYDISTUTILS= yes -PYDISTUTILS_PKGNAME= ${PORTNAME}-python +PYDISTUTILS_AUTOPLIST= yes + +PORTEXAMPLES= example.py -.if !defined(NOPORTEXAMPLES) post-install: - @${MKDIR} ${EXAMPLESDIR} - ${CP} ${WRKSRC}/example.py ${EXAMPLESDIR} -.endif + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${CP} ${WRKSRC}/example.py ${STAGEDIR}${EXAMPLESDIR} .include <bsd.port.mk> diff --git a/audio/py-shout/pkg-plist b/audio/py-shout/pkg-plist deleted file mode 100644 index 6b26539d419e..000000000000 --- a/audio/py-shout/pkg-plist +++ /dev/null @@ -1,3 +0,0 @@ -%%PYTHON_SITELIBDIR%%/shout.so -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example.py -%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% |