diff options
author | rm <rm@FreeBSD.org> | 2012-10-18 03:46:38 +0800 |
---|---|---|
committer | rm <rm@FreeBSD.org> | 2012-10-18 03:46:38 +0800 |
commit | f3d32439c86ed28520f105660acd7354fda80a01 (patch) | |
tree | 95da03b8e16316060c8f8d424f6d980172decbf9 | |
parent | fa15825525933cb99c2a32259beea0d1f1a5c14f (diff) | |
download | freebsd-ports-gnome-f3d32439c86ed28520f105660acd7354fda80a01.tar.gz freebsd-ports-gnome-f3d32439c86ed28520f105660acd7354fda80a01.tar.zst freebsd-ports-gnome-f3d32439c86ed28520f105660acd7354fda80a01.zip |
- 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
-rw-r--r-- | www/py-django-cms/Makefile | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/www/py-django-cms/Makefile b/www/py-django-cms/Makefile index f9cc5c8f71a1..5ba882d18a48 100644 --- a/www/py-django-cms/Makefile +++ b/www/py-django-cms/Makefile @@ -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} |