aboutsummaryrefslogtreecommitdiff
path: root/sysutils/py-bcfg2
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2013-06-06 22:08:41 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2013-06-06 22:08:41 +0000
commit785ac2d7a196d29615cbea89d099445b3aba324c (patch)
treec011e5f2f68659e36ca213dc3915a404ff5ae8d2 /sysutils/py-bcfg2
parent2b9d3e5e98108cce9d7cc5b99cd92485caad6e25 (diff)
downloadports-785ac2d7a196d29615cbea89d099445b3aba324c.tar.gz
ports-785ac2d7a196d29615cbea89d099445b3aba324c.zip
Convert to new options framework
Notes
Notes: svn path=/head/; revision=320136
Diffstat (limited to 'sysutils/py-bcfg2')
-rw-r--r--sysutils/py-bcfg2/Makefile17
1 files changed, 7 insertions, 10 deletions
diff --git a/sysutils/py-bcfg2/Makefile b/sysutils/py-bcfg2/Makefile
index f71e1c9eab52..f0ee7a459fc8 100644
--- a/sysutils/py-bcfg2/Makefile
+++ b/sysutils/py-bcfg2/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: py-bcfg2
-# Date created: 1 June 2007
-# Whom: Robert Gogolok <gogo@cs.uni-sb.de>
-#
+# Created by: Robert Gogolok <gogo@cs.uni-sb.de>
# $FreeBSD$
-#
PORTNAME= bcfg2
PORTVERSION= 1.1.1
@@ -22,8 +18,9 @@ RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/gamin.py:${PORTSDIR}/devel/py-gamin
OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
-OPTIONS+= CHEETAH "support Cheetah Templates" off \
- GENSHI "support Genshi Templates" off
+OPTIONS_DEFINE= CHEETAH GENSHI
+CHEETAH_DESC= Support Cheetah Templates
+GENSHI_DESC= Support Genshi Templates
.include <bsd.port.options.mk>
@@ -35,11 +32,11 @@ USE_RC_SUBR= bcfg2
PYDISTUTILS_PKGNAME= Bcfg2
SUB_LIST+= PYTHON_CMD=${PYTHON_CMD}
-.if defined(WITH_CHEETAH)
+.if ${PORT_OPTIONS:MCHEETAH}
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}cheetah>0:${PORTSDIR}/devel/py-cheetah
.endif
-.if defined(WITH_GENSHI)
+.if ${PORT_OPTIONS:MGENSHI}
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}Genshi>0:${PORTSDIR}/textproc/py-genshi
.endif
@@ -65,7 +62,7 @@ post-patch:
@${REINPLACE_CMD} -i '' -e 's|/var/lock|/var/run|' ${WRKSRC}/src/lib/$f
.endfor
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
post-install:
${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}