1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

- Enable stagedir support

- Add LICENSE
- Convert to PYDISTUTILS_AUTOPLIST
- Restrict the supported python versions
This commit is contained in:
Marcus von Appen 2014-01-23 19:57:32 +00:00
parent 8fc0572df3
commit a88f5ec1e4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=340852
2 changed files with 8 additions and 10 deletions

View File

@ -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>

View File

@ -1,3 +0,0 @@
%%PYTHON_SITELIBDIR%%/shout.so
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example.py
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%