Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Oct 2012 19:46:39 +0000 (UTC)
From:      Ruslan Mahmatkhanov <rm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r306037 - head/www/py-django-cms
Message-ID:  <201210171946.q9HJkduT048677@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <xenophon+freebsd at irtnog dot org> (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 <xenophon+fbsdports@irtnog.org>
-#
+# Created by: Matthew X. Economou <xenophon+fbsdports@irtnog.org>
 # $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 <bsd.port.options.mk>
+
+.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}
 



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