From owner-svn-ports-head@FreeBSD.ORG Fri Aug 31 17:56:28 2012 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 219DD106566B; Fri, 31 Aug 2012 17:56:28 +0000 (UTC) (envelope-from lwhsu@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id E79508FC24; Fri, 31 Aug 2012 17:56:27 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q7VHuRNw071709; Fri, 31 Aug 2012 17:56:27 GMT (envelope-from lwhsu@svn.freebsd.org) Received: (from lwhsu@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q7VHuRKn071707; Fri, 31 Aug 2012 17:56:27 GMT (envelope-from lwhsu@svn.freebsd.org) Message-Id: <201208311756.q7VHuRKn071707@svn.freebsd.org> From: Li-Wen Hsu Date: Fri, 31 Aug 2012 17:56:27 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r303440 - head/www/py-django-devel X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Aug 2012 17:56:28 -0000 Author: lwhsu Date: Fri Aug 31 17:56:27 2012 New Revision: 303440 URL: http://svn.freebsd.org/changeset/ports/303440 Log: - Convert to new options framework Modified: head/www/py-django-devel/Makefile Modified: head/www/py-django-devel/Makefile ============================================================================== --- head/www/py-django-devel/Makefile Fri Aug 31 17:56:06 2012 (r303439) +++ head/www/py-django-devel/Makefile Fri Aug 31 17:56:27 2012 (r303440) @@ -35,11 +35,10 @@ CONFLICTS= py2[0-9]-django-[0-9]* DOCSDIR= ${PREFIX}/share/doc/py-django -OPTIONS= POSTGRESQL "PostgreSQL support" off \ - MYSQL "MySQL support" off \ - SQLITE "SQLite support" off \ - FASTCGI "FastCGI support" off \ - DOCS "Install HTML documentation (requires Sphinx)" off +OPTIONS_DEFINE= PGSQL MYSQL SQLITE FASTCGI DOCS +OPTIONS_DEFAULT= + +HTMLDOCS_DESC= Build and install the HTML documentation (requires Sphinx) MAN1= daily_cleanup.1 django-admin.1 gather_profile_stats.1 @@ -48,23 +47,23 @@ OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME .include -.if defined(WITH_POSTGRESQL) +.if ${PORT_OPTIONS:MPGSQL} RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/psycopg2/_psycopg.so:${PORTSDIR}/databases/py-psycopg2 .endif -.if defined(WITH_MYSQL) +.if ${PORT_OPTIONS:MMYSQL} RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}MySQLdb>=1.2.2:${PORTSDIR}/databases/py-MySQLdb .endif -.if defined(WITH_SQLITE) +.if ${PORT_OPTIONS:MSQLITE} RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3 .endif -.if defined(WITH_FASTCGI) +.if ${PORT_OPTIONS:MFASTCGI} RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}flup>0:${PORTSDIR}/www/py-flup .endif -.if defined(WITH_DOCS) +.if ${PORT_OPTIONS:MHTMLDOCS} . if defined(NOPORTDOCS) IGNORE= you cannot build documentation while setting NOPORTDOCS . endif @@ -73,7 +72,7 @@ PORTDOCS= * .endif post-build: -.if defined(WITH_DOCS) +.if ${PORT_OPTIONS:MHTMLDOCS} cd ${WRKSRC}/docs && ${MAKE} html .endif @@ -82,7 +81,7 @@ post-install: @${ECHO_MSG} "" @${ECHO_MSG} " * See http://docs.djangoproject.com/ for complete documentation" @${ECHO_MSG} "" -.if defined(WITH_DOCS) +.if ${PORT_OPTIONS:MHTMLDOCS} ${MKDIR} ${DOCSDIR} ${CP} -R ${WRKSRC}/docs/_build/html ${DOCSDIR} .endif