aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2014-07-02 14:40:04 +0800
committervanilla <vanilla@FreeBSD.org>2014-07-02 14:40:04 +0800
commitc7f3206b01a5081266525b93b480f2a343f74303 (patch)
tree559a8fa6c0f47b8601fb54d48129388fe8f8a424 /textproc
parentc42daebf88565372058f65b468ec17a5b7db339d (diff)
downloadfreebsd-ports-gnome-c7f3206b01a5081266525b93b480f2a343f74303.tar.gz
freebsd-ports-gnome-c7f3206b01a5081266525b93b480f2a343f74303.tar.zst
freebsd-ports-gnome-c7f3206b01a5081266525b93b480f2a343f74303.zip
1: Stagify.
2: use options helper. Approved by: portmgr@ (blanket approval)
Diffstat (limited to 'textproc')
-rw-r--r--textproc/py-reverend/Makefile15
-rw-r--r--textproc/py-reverend/pkg-descr2
2 files changed, 6 insertions, 11 deletions
diff --git a/textproc/py-reverend/Makefile b/textproc/py-reverend/Makefile
index db76ad4c6d1e..8e97869d6a49 100644
--- a/textproc/py-reverend/Makefile
+++ b/textproc/py-reverend/Makefile
@@ -14,21 +14,16 @@ COMMENT= A simple Bayesian classifier written in Python
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_PKGNAME= Reverend
+OPTIONS_DEFINE= EXAMPLES
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
-.if defined(WITHOUT_EXAMPLES)
-PORTEXAMPLES= "@comment "
-.else
-PORTEXAMPLES= ""
-.endif
-PLIST_SUB= PORTEXAMPLES=${PORTEXAMPLES}
+.include <bsd.port.options.mk>
-NO_STAGE= yes
post-install:
-.if !defined(WITHOUT_EXAMPLES)
- ${MKDIR} ${EXAMPLESDIR}
- ${CP} ${WRKSRC}/examples/* ${EXAMPLESDIR}
+.if ${PORT_OPTIONS:MEXAMPLES}
+ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ ${CP} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}
.endif
.include <bsd.port.mk>
diff --git a/textproc/py-reverend/pkg-descr b/textproc/py-reverend/pkg-descr
index d9f635e35934..2c5739dd1720 100644
--- a/textproc/py-reverend/pkg-descr
+++ b/textproc/py-reverend/pkg-descr
@@ -11,4 +11,4 @@ Stuff you can do with the Reverend:
* is your code more like Guido's or Peter's
Author: Amir Bakhtiar
-WWW: http://www.divmod.org/trac/wiki/DivmodReverend
+WWW: http://www.divmod.org/trac/wiki/DivmodReverend