aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2013-11-20 11:24:31 +0800
committersunpoet <sunpoet@FreeBSD.org>2013-11-20 11:24:31 +0800
commit75c174673d256db24b3997cc764d8e2476132e20 (patch)
treeea14c1d6d244228cf0c0a04a1e8bfa72a54229c5
parent7231627da38c73b2869e79fd9214fb98efcd1598 (diff)
downloadfreebsd-ports-gnome-75c174673d256db24b3997cc764d8e2476132e20.tar.gz
freebsd-ports-gnome-75c174673d256db24b3997cc764d8e2476132e20.tar.zst
freebsd-ports-gnome-75c174673d256db24b3997cc764d8e2476132e20.zip
- Fix shebang
- Support STAGEDIR - Update WWW: use https:// instead of http://
-rw-r--r--mail/py-spf/Makefile15
-rw-r--r--mail/py-spf/pkg-descr2
2 files changed, 8 insertions, 9 deletions
diff --git a/mail/py-spf/Makefile b/mail/py-spf/Makefile
index 2d081fa25a71..b029d8acc5cd 100644
--- a/mail/py-spf/Makefile
+++ b/mail/py-spf/Makefile
@@ -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
-.include <bsd.port.options.mk>
+SHEBANG_FILES= spf.py
-post-patch:
- @${REINPLACE_CMD} -e '1 s|/usr/bin/python|${PYTHON_CMD}|' ${WRKSRC}/spf.py
+.include <bsd.port.options.mk>
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>
diff --git a/mail/py-spf/pkg-descr b/mail/py-spf/pkg-descr
index 58e17759e9b5..8f437b1d05f5 100644
--- a/mail/py-spf/pkg-descr
+++ b/mail/py-spf/pkg-descr
@@ -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