Add an option for the oracle backend.

This commit is contained in:
joerg 2010-02-11 13:37:44 +00:00
parent e5999c3749
commit f1919e8273
3 changed files with 29 additions and 4 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.23 2010/02/10 19:30:09 joerg Exp $
# $NetBSD: Makefile,v 1.24 2010/02/11 13:37:44 joerg Exp $
DJANGOVERS= 1.1.1
DISTNAME= Django-${DJANGOVERS}
@ -27,7 +27,9 @@ DEPENDS+= ${PYPKGPREFIX}-flup-[0-9]*:../../www/py-flup
.include "options.mk"
pre-configure:
.if empty(PKG_OPTIONS:Moracle)
rm -r ${WRKSRC}/django/db/backends/oracle
.endif
.if empty(PKG_OPTIONS:Mmysql)
rm -r ${WRKSRC}/django/db/backends/mysql
.endif

View file

@ -1,4 +1,4 @@
@comment $NetBSD: PLIST,v 1.14 2010/02/10 19:30:09 joerg Exp $
@comment $NetBSD: PLIST,v 1.15 2010/02/11 13:37:44 joerg Exp $
bin/django-admin.py
${PYSITELIB}/django/__init__.py
${PYSITELIB}/django/__init__.pyc
@ -1863,6 +1863,24 @@ ${PLIST.mysql}${PYSITELIB}/django/db/backends/mysql/introspection.pyo
${PLIST.mysql}${PYSITELIB}/django/db/backends/mysql/validation.py
${PLIST.mysql}${PYSITELIB}/django/db/backends/mysql/validation.pyc
${PLIST.mysql}${PYSITELIB}/django/db/backends/mysql/validation.pyo
${PLIST.oracle}${PYSITELIB}/django/db/backends/oracle/__init__.py
${PLIST.oracle}${PYSITELIB}/django/db/backends/oracle/__init__.pyc
${PLIST.oracle}${PYSITELIB}/django/db/backends/oracle/__init__.pyo
${PLIST.oracle}${PYSITELIB}/django/db/backends/oracle/base.py
${PLIST.oracle}${PYSITELIB}/django/db/backends/oracle/base.pyc
${PLIST.oracle}${PYSITELIB}/django/db/backends/oracle/base.pyo
${PLIST.oracle}${PYSITELIB}/django/db/backends/oracle/client.py
${PLIST.oracle}${PYSITELIB}/django/db/backends/oracle/client.pyc
${PLIST.oracle}${PYSITELIB}/django/db/backends/oracle/client.pyo
${PLIST.oracle}${PYSITELIB}/django/db/backends/oracle/creation.py
${PLIST.oracle}${PYSITELIB}/django/db/backends/oracle/creation.pyc
${PLIST.oracle}${PYSITELIB}/django/db/backends/oracle/creation.pyo
${PLIST.oracle}${PYSITELIB}/django/db/backends/oracle/introspection.py
${PLIST.oracle}${PYSITELIB}/django/db/backends/oracle/introspection.pyc
${PLIST.oracle}${PYSITELIB}/django/db/backends/oracle/introspection.pyo
${PLIST.oracle}${PYSITELIB}/django/db/backends/oracle/query.py
${PLIST.oracle}${PYSITELIB}/django/db/backends/oracle/query.pyc
${PLIST.oracle}${PYSITELIB}/django/db/backends/oracle/query.pyo
${PLIST.pgsql}${PYSITELIB}/django/db/backends/postgresql/__init__.py
${PLIST.pgsql}${PYSITELIB}/django/db/backends/postgresql/__init__.pyc
${PLIST.pgsql}${PYSITELIB}/django/db/backends/postgresql/__init__.pyo

View file

@ -1,7 +1,7 @@
# $NetBSD: options.mk,v 1.7 2010/02/10 19:30:09 joerg Exp $
# $NetBSD: options.mk,v 1.8 2010/02/11 13:37:45 joerg Exp $
PKG_OPTIONS_VAR = PKG_OPTIONS.django
PKG_SUPPORTED_OPTIONS= mysql pgsql sqlite
PKG_SUPPORTED_OPTIONS= mysql oracle pgsql sqlite
PKG_SUGGESTED_OPTIONS= pgsql
.include "../../mk/bsd.options.mk"
@ -13,6 +13,11 @@ DEPENDS+= ${PYPKGPREFIX}-mysqldb-[0-9]*:../../databases/py-mysqldb
PLIST.mysql= yes
.endif
.if !empty(PKG_OPTIONS:Moracle)
DEPENDS+= ${PYPKGPREFIX}-cx_Oracle-[0-9]*:../../databases/py-cx_Oracle
PLIST.oracle= yes
.endif
.if !empty(PKG_OPTIONS:Mpgsql)
DEPENDS+= ${PYPKGPREFIX}-psycopg2-[0-9]*:../../databases/py-psycopg2
PLIST.pgsql= yes