Stage support

This commit is contained in:
Antoine Brodin 2014-03-01 16:35:55 +00:00
parent 9f13f57d5a
commit 7f46afb824
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=346644
2 changed files with 6 additions and 22 deletions

View File

@ -16,15 +16,15 @@ USE_BZIP2= yes
USE_PYTHON= yes
USES= twisted
USE_PYDISTUTILS= yes
PYDISTUTILS_PKGNAME= Tofu
PYDISTUTILS_AUTOPLIST= yes
WRKSRC= ${WRKDIR}/Tofu-${PORTVERSION}
EXAMPLESDIR= ${PREFIX}/share/examples/py-tofu
PORTEXAMPLES= *
OPTIONS_DEFINE= EXAMPLES
NO_STAGE= yes
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/demo/* ${EXAMPLESDIR}
.endif
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/demo/* ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>

View File

@ -1,16 +0,0 @@
%%PYTHON_SITELIBDIR%%/tofu/__init__.py
%%PYTHON_SITELIBDIR%%/tofu/client.py
%%PYTHON_SITELIBDIR%%/tofu/server.py
%%PYTHON_SITELIBDIR%%/tofu/single.py
%%PYTHON_SITELIBDIR%%/tofu/__init__.pyc
%%PYTHON_SITELIBDIR%%/tofu/client.pyc
%%PYTHON_SITELIBDIR%%/tofu/server.pyc
%%PYTHON_SITELIBDIR%%/tofu/single.pyc
%%PYTHON_SITELIBDIR%%/tofu/__init__.pyo
%%PYTHON_SITELIBDIR%%/tofu/client.pyo
%%PYTHON_SITELIBDIR%%/tofu/server.pyo
%%PYTHON_SITELIBDIR%%/tofu/single.pyo
%%PORTDOCS%%%%EXAMPLESDIR%%/demo.py
%%PORTDOCS%%%%EXAMPLESDIR%%/run_demo.py
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
@dirrm %%PYTHON_SITELIBDIR%%/tofu