summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormva <mva@FreeBSD.org>2014-01-23 19:57:32 +0000
committermva <mva@FreeBSD.org>2014-01-23 19:57:32 +0000
commit82b514da5935a9c4a3d6a5c1d7d30b06a8494991 (patch)
tree16aa4866aa9da4a8e7ec9eaea7d11fefe64b1453
parent6b8c58efd6b1aa89901ff2c22d3cc05eabd3bd58 (diff)
downloadFreeBSD-ports-82b514da5935a9c4a3d6a5c1d7d30b06a8494991.zip
FreeBSD-ports-82b514da5935a9c4a3d6a5c1d7d30b06a8494991.tar.gz
- Enable stagedir support
- Add LICENSE - Convert to PYDISTUTILS_AUTOPLIST - Restrict the supported python versions
-rw-r--r--audio/py-shout/Makefile15
-rw-r--r--audio/py-shout/pkg-plist3
2 files changed, 8 insertions, 10 deletions
diff --git a/audio/py-shout/Makefile b/audio/py-shout/Makefile
index 995f421..31482c7 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 6b26539..0000000
--- a/audio/py-shout/pkg-plist
+++ /dev/null
@@ -1,3 +0,0 @@
-%%PYTHON_SITELIBDIR%%/shout.so
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example.py
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
OpenPOWER on IntegriCloud