Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Nov 2013 03:24:31 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r334389 - head/mail/py-spf
Message-ID:  <201311200324.rAK3OV8G006115@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Wed Nov 20 03:24:31 2013
New Revision: 334389
URL: http://svnweb.freebsd.org/changeset/ports/334389

Log:
  - Fix shebang
  - Support STAGEDIR
  - Update WWW: use https:// instead of http://

Modified:
  head/mail/py-spf/Makefile
  head/mail/py-spf/pkg-descr

Modified: head/mail/py-spf/Makefile
==============================================================================
--- head/mail/py-spf/Makefile	Wed Nov 20 03:24:08 2013	(r334388)
+++ head/mail/py-spf/Makefile	Wed Nov 20 03:24:31 2013	(r334389)
@@ -21,21 +21,20 @@ OPTIONSFILE=	${PORT_DBDIR}/py-${PORTNAME
 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>

Modified: head/mail/py-spf/pkg-descr
==============================================================================
--- head/mail/py-spf/pkg-descr	Wed Nov 20 03:24:08 2013	(r334388)
+++ head/mail/py-spf/pkg-descr	Wed Nov 20 03:24:31 2013	(r334389)
@@ -5,4 +5,4 @@ several of the open SPF project's SPF re
 
 Currently part of the pymilter project: http://pymilter.sourceforge.net
 
-WWW: http://pypi.python.org/pypi/pyspf
+WWW: https://pypi.python.org/pypi/pyspf



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311200324.rAK3OV8G006115>