Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Jan 2016 11:15:17 +0000 (UTC)
From:      Martin Wilke <miwi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r405423 - head/security/py-xmlsec
Message-ID:  <201601071115.u07BFHuk061273@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: miwi
Date: Thu Jan  7 11:15:17 2016
New Revision: 405423
URL: https://svnweb.freebsd.org/changeset/ports/405423

Log:
  - Add options helper
  - Add NO_ARCH

Modified:
  head/security/py-xmlsec/Makefile

Modified: head/security/py-xmlsec/Makefile
==============================================================================
--- head/security/py-xmlsec/Makefile	Thu Jan  7 11:14:43 2016	(r405422)
+++ head/security/py-xmlsec/Makefile	Thu Jan  7 11:15:17 2016	(r405423)
@@ -18,8 +18,11 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 LIB_DEPENDS=	libxmlsec1.so:${PORTSDIR}/security/xmlsec1
 RUN_DEPENDS=	${PYTHON_SITELIBDIR}/libxml2.py:${PORTSDIR}/textproc/py-libxml2
 
+OPTIONS_DEFINE=	DOCS EXAMPLES
+
 USES=		python:2
 USE_PYTHON=	distutils autoplist
+NO_ARCH=	yes
 
 DOCSDIR=	${PREFIX}/share/doc/py-${PORTNAME}
 EXAMPLESDIR=	${PREFIX}/share/examples/py-${PORTNAME}
@@ -28,8 +31,12 @@ PORTEXAMPLES=	*
 
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/xmlsecmod.so
+
+post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	(cd ${WRKSRC}/docs/html/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/)
+
+post-install-EXAMPLES-on:
 	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 	(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}/)
 



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