Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Jan 2016 11:09:31 +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: r405414 - head/textproc/py-rxp
Message-ID:  <201601071109.u07B9VDd057545@repo.freebsd.org>

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

Log:
  - Convert to options helper
  - Add NO_ARCH

Modified:
  head/textproc/py-rxp/Makefile

Modified: head/textproc/py-rxp/Makefile
==============================================================================
--- head/textproc/py-rxp/Makefile	Thu Jan  7 11:09:06 2016	(r405413)
+++ head/textproc/py-rxp/Makefile	Thu Jan  7 11:09:31 2016	(r405414)
@@ -12,9 +12,12 @@ DISTNAME=	pyRXP-${PORTVERSION:S/./-/}
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Fast validating XML parser for Python
 
+OPTIONS_DEFINE=	DOCS EXAMPLES
+
 NO_WRKSUBDIR=	yes
 USES=		python tar:tgz
 USE_PYTHON=	distutils autoplist
+NO_ARCH=	yes
 
 DOCSDIR=	${PREFIX}/share/doc/py-rxp
 EXAMPLESDIR=	${PREFIX}/share/examples/py-rxp
@@ -23,8 +26,13 @@ PORTEXAMPLES=	*
 
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pyRXP.so
-	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${STAGEDIR}${DOCSDIR}
+
+post-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR}
+
+post-install-EXAMPLES-on:
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 	${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}
 
 .include <bsd.port.mk>



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