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:
parent
8fc0572df3
commit
a88f5ec1e4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=340852
@ -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>
|
||||
|
@ -1,3 +0,0 @@
|
||||
%%PYTHON_SITELIBDIR%%/shout.so
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example.py
|
||||
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
|
Loading…
Reference in New Issue
Block a user