aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2014-02-15 03:41:11 +0800
committersunpoet <sunpoet@FreeBSD.org>2014-02-15 03:41:11 +0800
commit5455898543910788e16faba658c4f80f7a03ac24 (patch)
treebe8239fc394cb86d013ce720036a34a9db8338ed /mail
parentea35fff5096576112c3c77f3fef80954aef215db (diff)
downloadfreebsd-ports-gnome-5455898543910788e16faba658c4f80f7a03ac24.tar.gz
freebsd-ports-gnome-5455898543910788e16faba658c4f80f7a03ac24.tar.zst
freebsd-ports-gnome-5455898543910788e16faba658c4f80f7a03ac24.zip
- Use PYDISTUTILS_AUTOPLIST
- Simplify Makefile
Diffstat (limited to 'mail')
-rw-r--r--mail/py-spf/Makefile9
-rw-r--r--mail/py-spf/pkg-plist6
2 files changed, 3 insertions, 12 deletions
diff --git a/mail/py-spf/Makefile b/mail/py-spf/Makefile
index b029d8acc5cd..9cb479266fa0 100644
--- a/mail/py-spf/Makefile
+++ b/mail/py-spf/Makefile
@@ -18,23 +18,20 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dns>=0:${PORTSDIR}/dns/py-dns
OPTIONS_DEFINE= DOCS
OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
-USE_PYTHON= yes
+PYDISTUTILS_AUTOPLIST= yes
USE_PYDISTUTILS=yes
-PYDISTUTILS_PKGNAME= py${PORTNAME}
+USE_PYTHON= yes
USES= shebangfix
+PLIST_FILES= bin/spf.py
PORTDOCS= CHANGELOG README
SHEBANG_FILES= spf.py
-.include <bsd.port.options.mk>
-
post-install:
${CHMOD} ${BINMODE} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/spf.py
${LN} -s ${PYTHONPREFIX_SITELIBDIR}/spf.py ${STAGEDIR}${PREFIX}/bin/
-.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}/
cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
-.endif
.include <bsd.port.mk>
diff --git a/mail/py-spf/pkg-plist b/mail/py-spf/pkg-plist
deleted file mode 100644
index 1cb86ba73091..000000000000
--- a/mail/py-spf/pkg-plist
+++ /dev/null
@@ -1,6 +0,0 @@
-bin/spf.py
-bin/spfquery.py
-bin/type99.py
-%%PYTHON_SITELIBDIR%%/spf.py
-%%PYTHON_SITELIBDIR%%/spf.pyc
-%%PYTHON_SITELIBDIR%%/spf.pyo