Convert to staging.

While here, defang a var!= assignment and move it into the do-whatever: targets.
This commit is contained in:
Matthias Andree 2013-12-13 23:15:53 +00:00
parent 7f46736192
commit 9909c1df7d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=336380

View file

@ -19,21 +19,20 @@ PORTDOCS= *
USE_PYTHON= yes
NO_BUILD= yes
NO_STAGE= yes
.include <bsd.port.pre.mk>
src!= ${MAKE} -C ${PORTSDIR}/net/cvsup-without-gui -V WRKSRC
get_src= ${MAKE} -C ${PORTSDIR}/net/cvsup-without-gui -V WRKSRC
do-extract:
${MKDIR} ${WRKSRC}
${SED} 's:^#!/usr/local/bin/python:#!${PYTHON_CMD}:' <${src}/contrib/cvsupchk/cvsupchk >${WRKSRC}/cvsupchk
${SED} 's:^#!/usr/local/bin/python:#!${PYTHON_CMD}:' <$$(${get_src})/contrib/cvsupchk/cvsupchk >${WRKSRC}/cvsupchk
do-install:
${MKDIR} ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/cvsupchk ${PREFIX}/bin/
${MKDIR} ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/cvsupchk ${STAGEDIR}${PREFIX}/bin/
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${src}/contrib/cvsupchk/README ${DOCSDIR}/
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} $$(${get_src})/contrib/cvsupchk/README ${STAGEDIR}${DOCSDIR}/
.endif
.include <bsd.port.post.mk>