Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Jul 2014 06:35:18 +0000 (UTC)
From:      "Vanilla I. Shu" <vanilla@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r360139 - head/textproc/py-hyperestraier-python
Message-ID:  <201407020635.s626ZIZH070714@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: vanilla
Date: Wed Jul  2 06:35:18 2014
New Revision: 360139
URL: http://svnweb.freebsd.org/changeset/ports/360139
QAT: https://qat.redports.org/buildarchive/r360139/

Log:
  1: Stagify.
  2: use options helper.
  
  Approved by:	portmgr@ (blanket approval)

Modified:
  head/textproc/py-hyperestraier-python/Makefile

Modified: head/textproc/py-hyperestraier-python/Makefile
==============================================================================
--- head/textproc/py-hyperestraier-python/Makefile	Wed Jul  2 06:32:05 2014	(r360138)
+++ head/textproc/py-hyperestraier-python/Makefile	Wed Jul  2 06:35:18 2014	(r360139)
@@ -18,13 +18,15 @@ USE_PYDISTUTILS=yes
 
 PORTEXAMPLES=	example.py asyn_example.py
 EXAMPLESDIR=	${PREFIX}/share/examples/py-${PORTNAME}${PKGNAMESUFFIX}
+OPTIONS_DEFINE=	EXAMPLES
+
+.include <bsd.port.options.mk>
 
-NO_STAGE=	yes
 post-install:
-.if !defined(NOPORTEXAMPLES)
-	@${MKDIR} ${EXAMPLESDIR}
-	${INSTALL_DATA} ${WRKSRC}/example.py ${EXAMPLESDIR}/
-	${INSTALL_DATA} ${WRKSRC}/asyn_example.py ${EXAMPLESDIR}/
+.if ${PORT_OPTIONS:MEXAMPLES}
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	${INSTALL_DATA} ${WRKSRC}/example.py ${STAGEDIR}${EXAMPLESDIR}/
+	${INSTALL_DATA} ${WRKSRC}/asyn_example.py ${STAGEDIR}${EXAMPLESDIR}/
 .endif
 
 .include <bsd.port.mk>



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