aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2012-08-05 15:16:55 +0800
committersunpoet <sunpoet@FreeBSD.org>2012-08-05 15:16:55 +0800
commit5a15fa8faf6f921699f4c8affc908b4dae66397d (patch)
tree1c11a9177bdc0bb354d946bb7e81d65e49447223 /mail
parentef2cf59760ff614b6d509aad6e243714a9ad289d (diff)
downloadfreebsd-ports-gnome-5a15fa8faf6f921699f4c8affc908b4dae66397d.tar.gz
freebsd-ports-gnome-5a15fa8faf6f921699f4c8affc908b4dae66397d.tar.zst
freebsd-ports-gnome-5a15fa8faf6f921699f4c8affc908b4dae66397d.zip
- Convert to new options framework
Diffstat (limited to 'mail')
-rw-r--r--mail/py-spf/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/mail/py-spf/Makefile b/mail/py-spf/Makefile
index 9d5c5eb07b21..03687ad241df 100644
--- a/mail/py-spf/Makefile
+++ b/mail/py-spf/Makefile
@@ -17,19 +17,23 @@ COMMENT= Python implementation of the RFC 4408 SPF protocol
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dns>=0:${PORTSDIR}/dns/py-dns
+OPTIONS_DEFINE= DOCS
+
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_PKGNAME= py${PORTNAME}
PORTDOCS= CHANGELOG README
+.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/
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}/
cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
.endif