Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Aug 2012 07:16:56 +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: r302086 - head/mail/py-spf
Message-ID:  <201208050716.q757GuBe050872@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



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