Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Jun 2013 22:08:42 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r320136 - head/sysutils/py-bcfg2
Message-ID:  <201306062208.r56M8gF6021899@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Thu Jun  6 22:08:41 2013
New Revision: 320136
URL: http://svnweb.freebsd.org/changeset/ports/320136

Log:
  Convert to new options framework

Modified:
  head/sysutils/py-bcfg2/Makefile

Modified: head/sysutils/py-bcfg2/Makefile
==============================================================================
--- head/sysutils/py-bcfg2/Makefile	Thu Jun  6 22:07:46 2013	(r320135)
+++ head/sysutils/py-bcfg2/Makefile	Thu Jun  6 22:08:41 2013	(r320136)
@@ -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
 
 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}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306062208.r56M8gF6021899>