From owner-svn-ports-all@FreeBSD.ORG Wed Oct 17 19:46:39 2012 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5549A35C; Wed, 17 Oct 2012 19:46:39 +0000 (UTC) (envelope-from rm@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 3CB9C8FC08; Wed, 17 Oct 2012 19:46:39 +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 q9HJkdaX048679; Wed, 17 Oct 2012 19:46:39 GMT (envelope-from rm@svn.freebsd.org) Received: (from rm@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q9HJkduT048677; Wed, 17 Oct 2012 19:46:39 GMT (envelope-from rm@svn.freebsd.org) Message-Id: <201210171946.q9HJkduT048677@svn.freebsd.org> From: Ruslan Mahmatkhanov Date: Wed, 17 Oct 2012 19:46:39 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r306037 - head/www/py-django-cms X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Oct 2012 19:46:39 -0000 Author: rm Date: Wed Oct 17 19:46:38 2012 New Revision: 306037 URL: http://svn.freebsd.org/changeset/ports/306037 Log: - let user to change database backend via options (default is sqlite) - bump PORTREVISION - trim Makefile header while here PR: 169248 Submitted by: Matthew X. Economou (maintainer) Feature safe: yes Modified: head/www/py-django-cms/Makefile Modified: head/www/py-django-cms/Makefile ============================================================================== --- head/www/py-django-cms/Makefile Wed Oct 17 19:23:20 2012 (r306036) +++ head/www/py-django-cms/Makefile Wed Oct 17 19:46:38 2012 (r306037) @@ -1,12 +1,9 @@ -# New ports collection makefile for: py-django-cms -# Date created: 30 Jan 2012 -# Whom: Matthew X. Economou -# +# Created by: Matthew X. Economou # $FreeBSD$ -# PORTNAME= django-cms PORTVERSION= 2.3 +PORTREVISION= 1 CATEGORIES= www python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -26,6 +23,25 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sout USE_PYTHON= -2.7 USE_PYDISTUTILS= easy_install +OPTIONSFILE= ${PORT_DBDIR}/${PORTNAME}/options +OPTIONS_MULTI= DATABASE +OPTIONS_DEFAULT=SQLITE +OPTIONS_MULTI_DATABASE=MYSQL PGSQL SQLITE + +.include + +.if ${PORT_OPTIONS:MMYSQL} +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}MySQLdb>=1.2.2:${PORTSDIR}/databases/py-MySQLdb +.endif + +.if ${PORT_OPTIONS:MPGSQL} +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}psycopg2>0:${PORTSDIR}/databases/py-psycopg2 +.endif + +.if ${PORT_OPTIONS:MSQLITE} +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3 +.endif + post-install: @${CAT} ${PKGMESSAGE}