pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/py-django Add an option for the oracle backend.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/60ad4a5331d4
branches:  trunk
changeset: 571355:60ad4a5331d4
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Feb 11 13:37:44 2010 +0000

description:
Add an option for the oracle backend.

diffstat:

 www/py-django/Makefile   |   4 +++-
 www/py-django/PLIST      |  20 +++++++++++++++++++-
 www/py-django/options.mk |   9 +++++++--
 3 files changed, 29 insertions(+), 4 deletions(-)

diffs (78 lines):

diff -r 4eaffbfcf23d -r 60ad4a5331d4 www/py-django/Makefile
--- a/www/py-django/Makefile    Thu Feb 11 13:15:07 2010 +0000
+++ b/www/py-django/Makefile    Thu Feb 11 13:37:44 2010 +0000
@@ -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 @@
 .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
diff -r 4eaffbfcf23d -r 60ad4a5331d4 www/py-django/PLIST
--- a/www/py-django/PLIST       Thu Feb 11 13:15:07 2010 +0000
+++ b/www/py-django/PLIST       Thu Feb 11 13:37:44 2010 +0000
@@ -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/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
diff -r 4eaffbfcf23d -r 60ad4a5331d4 www/py-django/options.mk
--- a/www/py-django/options.mk  Thu Feb 11 13:15:07 2010 +0000
+++ b/www/py-django/options.mk  Thu Feb 11 13:37:44 2010 +0000
@@ -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 @@
 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



Home | Main Index | Thread Index | Old Index