Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Jul 2012 19:55:02 +0800 (CST)
From:      Lung-Pin Chang <changlp@cs.nctu.edu.tw>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/170190: [MAINTAINER] www/py-django_compressor: migrate to new options framework
Message-ID:  <20120726115502.EB91F9B4C1@Archon.iamben.csie.net>
Resent-Message-ID: <201207261200.q6QC0OJI026061@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         170190
>Category:       ports
>Synopsis:       [MAINTAINER] www/py-django_compressor: migrate to new options framework
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 26 12:00:23 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Lung-Pin Chang
>Release:        FreeBSD 9.0-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD Archon.iamben.csie.net 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:46:30 UTC
>Description:
- Migrate to new options framework

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- py27-django_compressor-1.1.2.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/www/py-django_compressor/Makefile /home/iamben/tmp/ports/www/py-django_compressor/Makefile
--- /usr/ports/www/py-django_compressor/Makefile	2012-04-14 02:38:30.000000000 +0800
+++ /home/iamben/tmp/ports/www/py-django_compressor/Makefile	2012-07-26 19:50:53.881586812 +0800
@@ -22,21 +22,23 @@
 USE_PYTHON=	-2.7
 USE_PYDISTUTILS=	easy_install
 
-OPTIONS=	BEAUTIFULSOUP "Enable BeautifulSoupParser" Off \
-		LXML "Enable LxmlParser" Off \
-		HTML5LIB "Enable Html5LibParser" Off
+OPTIONS_DEFINE=	BEAUTIFULSOUP LXML HTML5LIB
+
+BEAUTIFULSOUP_DESC=	Enable BeautifulSoupParser
+LXML_DESC=		Enable LxmlParser
+HTML5LIB_DESC=		Enable Html5LibParser
 
 .include <bsd.port.options.mk>
 
-.if defined(WITH_BEAUTIFULSOUP)
+.if ${PORT_OPTIONS:MBEAUTIFULSOUP}
 RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}beautifulsoup>0:${PORTSDIR}/www/py-beautifulsoup
 .endif
 
-.if defined(WITH_LXML)
+.if ${PORT_OPTIONS:MLXML}
 RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}lxml>0:${PORTSDIR}/devel/py-lxml
 .endif
 
-.if defined(WITH_HTML5LIB)
+.if ${PORT_OPTIONS:MHTML5LIB}
 RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}html5lib>0:${PORTSDIR}/www/py-html5lib
 .endif
 
--- py27-django_compressor-1.1.2.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



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