1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

- Stage Support

This commit is contained in:
Martin Wilke 2014-01-26 14:30:44 +00:00
parent ca172e882f
commit 4c567399df
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=341179
6 changed files with 16 additions and 27 deletions

View File

@ -27,7 +27,6 @@ BITTEN_MASTER_DESC= Build bitten master
OPTIONS_DEFAULT= BITTEN_MASTER
NO_STAGE= yes
.include <bsd.port.options.mk>
BUILD_DEPENDS+= easy_install:${PORTSDIR}/devel/py-setuptools

View File

@ -38,7 +38,7 @@ PYDISTUTILS_NOEGGINFO= yes
PYDISTUTILS_PKGVERSION= ${PORTVERSION}.ja2
# This target is only meant to be used by the port maintainer.
NO_STAGE= yes
x-generate-plist:
(${PORTSDIR}/Tools/scripts/plist -d -m ${MTREE_FILE} ${PREFIX} \
| ${SED} -E \
@ -55,18 +55,15 @@ pre-install:
${WRKSRC}/cgi-bin/trac.cgi
post-install:
@${MKDIR} ${EXAMPLESDIR}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
. for d in rpm workflow
@${MKDIR} ${EXAMPLESDIR}/${d}
@${INSTALL_DATA} ${WRKSRC}/contrib/${d}/* ${EXAMPLESDIR}/${d}/
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/${d}
@${INSTALL_DATA} ${WRKSRC}/contrib/${d}/* ${STAGEDIR}${EXAMPLESDIR}/${d}/
@${RM} -rf ${WRKSRC}/contrib/${d}
. endfor
@${INSTALL_DATA} ${WRKSRC}/contrib/* ${EXAMPLESDIR}
@${MKDIR} ${DATADIR}/cgi-bin
@${INSTALL_SCRIPT} ${WRKSRC}/cgi-bin/* ${DATADIR}/cgi-bin
@${ECHO_CMD}
@${CAT} ${PKGMESSAGE}
@${ECHO_CMD}
@${INSTALL_DATA} ${WRKSRC}/contrib/* ${STAGEDIR}${EXAMPLESDIR}
@${MKDIR} ${STAGEDIR}${DATADIR}/cgi-bin
@${INSTALL_SCRIPT} ${WRKSRC}/cgi-bin/* ${STAGEDIR}${DATADIR}/cgi-bin
.include <bsd.port.options.mk>

View File

@ -18,5 +18,4 @@ LICENSE= MIT
USE_PYTHON= yes
USE_PYDISTUTILS= easy_install
NO_STAGE= yes
.include <bsd.port.mk>

View File

@ -25,5 +25,4 @@ PLIST_FILES= %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
USE_PYTHON= yes
USE_PYDISTUTILS= easy_install
NO_STAGE= yes
.include <bsd.port.mk>

View File

@ -36,5 +36,4 @@ WRKSRC= ${WRKDIR}/accountmanagerplugin/trunk
# --- httpd.conf
# SetEnv PYTHON_EGG_CACHE "/tmp/cache"
NO_STAGE= yes
.include <bsd.port.mk>

View File

@ -32,7 +32,6 @@ PYDISTUTILS_NOEGGINFO= yes
USE_RC_SUBR= tracd
SUB_LIST= PYTHON_CMD=${PYTHON_CMD}
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MSILVERCITY}
@ -78,20 +77,17 @@ pre-install:
${WRKSRC}/contrib/cgi-bin/trac.cgi
post-install:
@${MKDIR} ${EXAMPLESDIR}/sample-plugins
@${MKDIR} ${EXAMPLESDIR}/rpm
@${INSTALL_DATA} ${WRKSRC}/contrib/rpm/* ${EXAMPLESDIR}/rpm
@${FIND} ${WRKSRC}/contrib -type f -maxdepth 1 -exec ${INSTALL_DATA} {} ${EXAMPLESDIR}/ \;
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/sample-plugins
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/rpm
@${INSTALL_DATA} ${WRKSRC}/contrib/rpm/* ${STAGEDIR}${EXAMPLESDIR}/rpm
@${FIND} ${WRKSRC}/contrib -type f -maxdepth 1 -exec ${INSTALL_DATA} {} ${STAGEDIR}${EXAMPLESDIR}/ \;
. for d in permissions workflow
@${MKDIR} ${EXAMPLESDIR}/sample-plugins/${d}
@${INSTALL_DATA} ${WRKSRC}/sample-plugins/${d}/* ${EXAMPLESDIR}/sample-plugins/${d}/
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/sample-plugins/${d}
@${INSTALL_DATA} ${WRKSRC}/sample-plugins/${d}/* ${STAGEDIR}${EXAMPLESDIR}/sample-plugins/${d}/
@${RM} -rf ${WRKSRC}/contrib/${d}
. endfor
@${INSTALL_DATA} ${WRKSRC}/sample-plugins/*.py ${EXAMPLESDIR}/sample-plugins/
@${MKDIR} ${DATADIR}/cgi-bin
@${INSTALL_SCRIPT} ${WRKSRC}/contrib/cgi-bin/* ${DATADIR}/cgi-bin
@${ECHO_CMD}
@${CAT} ${PKGMESSAGE}
@${ECHO_CMD}
@${INSTALL_DATA} ${WRKSRC}/sample-plugins/*.py ${STAGEDIR}${EXAMPLESDIR}/sample-plugins/
@${MKDIR} ${STAGEDIR}${DATADIR}/cgi-bin
@${INSTALL_SCRIPT} ${WRKSRC}/contrib/cgi-bin/* ${STAGEDIR}${DATADIR}/cgi-bin
.include <bsd.port.mk>