From 0c2bc2335d0dd5d8e6fde056863e3962c4001949 Mon Sep 17 00:00:00 2001 From: "Vanilla I. Shu" Date: Wed, 2 Jul 2014 06:35:18 +0000 Subject: [PATCH] 1: Stagify. 2: use options helper. Approved by: portmgr@ (blanket approval) --- textproc/py-hyperestraier-python/Makefile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/textproc/py-hyperestraier-python/Makefile b/textproc/py-hyperestraier-python/Makefile index fc541b49f0b4..0216530bfe0f 100644 --- a/textproc/py-hyperestraier-python/Makefile +++ b/textproc/py-hyperestraier-python/Makefile @@ -18,13 +18,15 @@ USE_PYDISTUTILS=yes PORTEXAMPLES= example.py asyn_example.py EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}${PKGNAMESUFFIX} +OPTIONS_DEFINE= EXAMPLES + +.include -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