summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/sqlalchemy/sqlalchemy-0.2.8.ebuild')
-rw-r--r--dev-python/sqlalchemy/sqlalchemy-0.2.8.ebuild58
1 files changed, 58 insertions, 0 deletions
diff --git a/dev-python/sqlalchemy/sqlalchemy-0.2.8.ebuild b/dev-python/sqlalchemy/sqlalchemy-0.2.8.ebuild
new file mode 100644
index 000000000000..4dd29dc9ac1f
--- /dev/null
+++ b/dev-python/sqlalchemy/sqlalchemy-0.2.8.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/sqlalchemy/sqlalchemy-0.2.8.ebuild,v 1.1 2006/10/13 15:50:04 pythonhead Exp $
+
+inherit distutils python
+
+MY_P=SQLAlchemy-${PV}
+DESCRIPTION="Python SQL toolkit and Object Relational Mapper."
+HOMEPAGE="http://www.sqlalchemy.org/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+LICENSE="MIT"
+SLOT="0"
+IUSE="firebird mssql mysql postgres sqlite"
+KEYWORDS="~amd64 ~x86"
+
+# note: if you use psycopg-1, then you need egenix-mx-base
+RDEPEND=">=dev-lang/python-2.4
+ firebird? ( dev-python/kinterbasdb )
+ mssql? ( dev-python/pymssql )
+ mysql? ( dev-python/mysql-python )
+ postgres? (
+ || (
+ ( >=dev-python/psycopg-2 )
+ ( <dev-python/psycopg-2 dev-python/egenix-mx-base )
+ )
+ )
+ sqlite? ( dev-python/pysqlite )"
+
+DEPEND="dev-python/setuptools"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${S}/test"
+ sed -e 's/\\\.p/.p/g' \
+ -i sql/testtypes.py || die "sed failed"
+}
+
+src_install() {
+ distutils_src_install
+ dohtml doc/*
+
+ insinto /usr/share/doc/${PV}
+ doins -r examples
+}
+
+src_test() {
+ if use sqlite; then
+ python_version
+ export PYTHONPATH="${PYTHONPATH}:../lib/"
+ cd "${S}/lib/${PN}"
+ python "/usr/lib/python${PYVER}/compileall.py" .
+ cd "${S}/test"
+ python alltests.py
+ fi
+}