summaryrefslogtreecommitdiff
path: root/databases/py-sqlalchemy/options.mk
diff options
context:
space:
mode:
authortonnerre <tonnerre@pkgsrc.org>2008-09-04 20:42:28 +0000
committertonnerre <tonnerre@pkgsrc.org>2008-09-04 20:42:28 +0000
commit15f8c1c4347a71ee9ce0d2bbc7a24373c098457c (patch)
tree02f3d09e68d1e831f1812830452ecc7f2183291e /databases/py-sqlalchemy/options.mk
parent6301bb0de2d4656bcb729aec18e2412bc9984b73 (diff)
downloadpkgsrc-15f8c1c4347a71ee9ce0d2bbc7a24373c098457c.tar.gz
Import the SQLAlchemy Python module. SQLAlchemy is a customizable object
oriented interface to databases like DBIx-Class is for Perl. It is quite extensible and widely deployed. It contains compilers for a number of database engines which are used only if they're requested explicitly, nevertheless the package offers to depend on some of them explicitly as requested by PKG_OPTIONS.py-sqlalchemy.
Diffstat (limited to 'databases/py-sqlalchemy/options.mk')
-rw-r--r--databases/py-sqlalchemy/options.mk18
1 files changed, 18 insertions, 0 deletions
diff --git a/databases/py-sqlalchemy/options.mk b/databases/py-sqlalchemy/options.mk
new file mode 100644
index 00000000000..19980a88f72
--- /dev/null
+++ b/databases/py-sqlalchemy/options.mk
@@ -0,0 +1,18 @@
+# $NetBSD: options.mk,v 1.1.1.1 2008/09/04 20:42:28 tonnerre Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.py-sqlalchemy
+PKG_SUPPORTED_OPTIONS= mysql sqlite pgsql
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mmysql)
+DEPENDS+= ${PYPKGPREFIX}-mysqldb-[0-9]*:../../databases/py-mysqldb
+.endif
+
+.if !empty(PKG_OPTIONS:Msqlite)
+DEPENDS+= ${PYPKGPREFIX}-sqlite2-[0-9]*:../../databases/py-sqlite2
+.endif
+
+.if !empty(PKG_OPTIONS:Mpgsql)
+DEPENDS+= ${PYPKGPREFIX}-psycopg2-[0-9]*:../../databases/py-psycopg2
+.endif