- 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
This commit is contained in:
Ruslan Makhmatkhanov 2012-10-17 19:46:38 +00:00
parent 08e95bcf60
commit 48c593d8ab
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=306037

View file

@ -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}south>=0.7.3:${PORTSDIR}/databases/py-south
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}