svn commit: r302086 - head/mail/py-spf

Sunpoet Po-Chuan Hsieh sunpoet at FreeBSD.org
Sun Aug 5 07:16:56 UTC 2012


Author: sunpoet
Date: Sun Aug  5 07:16:55 2012
New Revision: 302086
URL: http://svn.freebsd.org/changeset/ports/302086

Log:
  - Convert to new options framework

Modified:
  head/mail/py-spf/Makefile   (contents, props changed)

Modified: head/mail/py-spf/Makefile
==============================================================================
--- head/mail/py-spf/Makefile	Sun Aug  5 07:13:06 2012	(r302085)
+++ head/mail/py-spf/Makefile	Sun Aug  5 07:16:55 2012	(r302086)
@@ -17,19 +17,23 @@ COMMENT=	Python implementation of the RF
 
 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



More information about the svn-ports-all mailing list