diff options
author | vanilla <vanilla@FreeBSD.org> | 2014-07-02 14:40:04 +0800 |
---|---|---|
committer | vanilla <vanilla@FreeBSD.org> | 2014-07-02 14:40:04 +0800 |
commit | c7f3206b01a5081266525b93b480f2a343f74303 (patch) | |
tree | 559a8fa6c0f47b8601fb54d48129388fe8f8a424 /textproc | |
parent | c42daebf88565372058f65b468ec17a5b7db339d (diff) | |
download | freebsd-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/Makefile | 15 | ||||
-rw-r--r-- | textproc/py-reverend/pkg-descr | 2 |
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 |