devel/py-bison: support staging and use auto plist

This commit is contained in:
William Grzybowski 2013-12-26 19:29:06 +00:00
parent 03b52b0331
commit 287cb7db37
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=337605

View file

@ -3,7 +3,7 @@
PORTNAME= bison
PORTVERSION= 0.1.8
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= devel python
MASTER_SITES= http://freenet.mcnabhosting.com/python/pybison/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -21,20 +21,14 @@ OPTIONS_DEFINE= DOCS EXAMPLES
USES= bison:both
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_PKGVERSION= 0.1
PYDISTUTILS_AUTOPLIST= yes
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
PORTDOCS= *
PORTEXAMPLES= *
PLIST_FILES= bin/bison2py \
%%PYTHON_SITELIBDIR%%/bison.py \
%%PYTHON_SITELIBDIR%%/bison.pyc \
%%PYTHON_SITELIBDIR%%/bison.pyo \
%%PYTHON_SITELIBDIR%%/bison_.so
NO_STAGE= yes
.include <bsd.port.pre.mk>
.if ${ARCH} == "ia64"
@ -42,13 +36,9 @@ BROKEN= Does not compile on ia64
.endif
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
@(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${DOCSDIR})
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR})
.endif
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.post.mk>