diff options
Diffstat (limited to 'mail')
-rw-r--r-- | mail/py-spf/Makefile | 6 |
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 |