diff options
author | bapt <bapt@FreeBSD.org> | 2013-06-07 06:08:41 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2013-06-07 06:08:41 +0800 |
commit | 2e9ae8abd9a6d7cf5ab8f051f45021174b099017 (patch) | |
tree | c011e5f2f68659e36ca213dc3915a404ff5ae8d2 /sysutils | |
parent | 7dc6b8811bf02df508f96656af399ac948f94e08 (diff) | |
download | freebsd-ports-gnome-2e9ae8abd9a6d7cf5ab8f051f45021174b099017.tar.gz freebsd-ports-gnome-2e9ae8abd9a6d7cf5ab8f051f45021174b099017.tar.zst freebsd-ports-gnome-2e9ae8abd9a6d7cf5ab8f051f45021174b099017.zip |
Convert to new options framework
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/py-bcfg2/Makefile | 17 |
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} |