- Fix shebang

- Support STAGEDIR
- Update WWW: use https:// instead of http://
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2013-11-20 03:24:31 +00:00
parent b955c3a370
commit 0e32df5cc5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=334389
2 changed files with 8 additions and 9 deletions

View file

@ -21,21 +21,20 @@ OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
USE_PYTHON= yes
USE_PYDISTUTILS=yes
PYDISTUTILS_PKGNAME= py${PORTNAME}
USES= shebangfix
PORTDOCS= CHANGELOG README
NO_STAGE= yes
SHEBANG_FILES= spf.py
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e '1 s|/usr/bin/python|${PYTHON_CMD}|' ${WRKSRC}/spf.py
post-install:
${CHMOD} ${BINMODE} ${PYTHONPREFIX_SITELIBDIR}/spf.py
${LN} -s ${PYTHONPREFIX_SITELIBDIR}/spf.py ${PREFIX}/bin/
${CHMOD} ${BINMODE} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/spf.py
${LN} -s ${PYTHONPREFIX_SITELIBDIR}/spf.py ${STAGEDIR}${PREFIX}/bin/
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}/
cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
${MKDIR} ${STAGEDIR}${DOCSDIR}/
cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
.endif
.include <bsd.port.mk>

View file

@ -5,4 +5,4 @@ several of the open SPF project's SPF record testing tools.
Currently part of the pymilter project: http://pymilter.sourceforge.net
WWW: http://pypi.python.org/pypi/pyspf
WWW: https://pypi.python.org/pypi/pyspf