svn commit: r360140 - head/textproc/py-reverend
Vanilla I. Shu
vanilla at FreeBSD.org
Wed Jul 2 06:40:05 UTC 2014
Author: vanilla
Date: Wed Jul 2 06:40:04 2014
New Revision: 360140
URL: http://svnweb.freebsd.org/changeset/ports/360140
QAT: https://qat.redports.org/buildarchive/r360140/
Log:
1: Stagify.
2: use options helper.
Approved by: portmgr@ (blanket approval)
Modified:
head/textproc/py-reverend/Makefile
head/textproc/py-reverend/pkg-descr
Modified: head/textproc/py-reverend/Makefile
==============================================================================
--- head/textproc/py-reverend/Makefile Wed Jul 2 06:35:18 2014 (r360139)
+++ head/textproc/py-reverend/Makefile Wed Jul 2 06:40:04 2014 (r360140)
@@ -14,21 +14,16 @@ COMMENT= A simple Bayesian classifier wr
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>
Modified: head/textproc/py-reverend/pkg-descr
==============================================================================
--- head/textproc/py-reverend/pkg-descr Wed Jul 2 06:35:18 2014 (r360139)
+++ head/textproc/py-reverend/pkg-descr Wed Jul 2 06:40:04 2014 (r360140)
@@ -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
More information about the svn-ports-head
mailing list