- Support staging

- Use shebangfix
This commit is contained in:
Emanuel Haupt 2014-02-28 13:23:08 +00:00
parent fbac1d4b59
commit 9a8eb5e2ce
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=346510

View File

@ -11,6 +11,7 @@ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= graudeejs@gmail.com
COMMENT= Replacement for htpasswd
USES= shebangfix
USE_PYTHON= yes
USE_XZ= yes
@ -19,11 +20,9 @@ PLIST_FILES= bin/${PORTNAME}.py
NO_BUILD= yes
NO_WRKSUBDIR= yes
NO_STAGE= yes
post-patch:
${SED} -I.orig -e 's|^#!/usr/bin/python|#!/usr/bin/env python|' ${WRKDIR}/${PORTNAME}.py
SHEBANG_FILES= ${PORTNAME}.py
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.py ${PREFIX}/bin/
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.py ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>