diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-09-05 17:10:13 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-09-05 17:10:13 +0000 |
commit | d3e65b827b6ba720e39fbd1e166fb589a66bebe9 (patch) | |
tree | 14a3b009ee93965fe549e724f8a3204108f3063e /dev-python | |
parent | Set SUPPORT_PYTHON_ABIS. (diff) | |
download | gentoo-2-d3e65b827b6ba720e39fbd1e166fb589a66bebe9.tar.gz gentoo-2-d3e65b827b6ba720e39fbd1e166fb589a66bebe9.tar.bz2 gentoo-2-d3e65b827b6ba720e39fbd1e166fb589a66bebe9.zip |
Set SUPPORT_PYTHON_ABIS.
(Portage version: 14200-svn/cvs/Linux x86_64)
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/storm/ChangeLog | 6 | ||||
-rw-r--r-- | dev-python/storm/storm-0.15.ebuild | 21 |
2 files changed, 19 insertions, 8 deletions
diff --git a/dev-python/storm/ChangeLog b/dev-python/storm/ChangeLog index 6cbdc2a41aeb..74c055b17a5b 100644 --- a/dev-python/storm/ChangeLog +++ b/dev-python/storm/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-python/storm # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/storm/ChangeLog,v 1.5 2009/09/04 15:45:46 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/storm/ChangeLog,v 1.6 2009/09/05 17:10:13 arfrever Exp $ + + 05 Sep 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + storm-0.15.ebuild: + Set SUPPORT_PYTHON_ABIS. *storm-0.15 (04 Sep 2009) diff --git a/dev-python/storm/storm-0.15.ebuild b/dev-python/storm/storm-0.15.ebuild index d80263dcf41a..b2a2260b1474 100644 --- a/dev-python/storm/storm-0.15.ebuild +++ b/dev-python/storm/storm-0.15.ebuild @@ -1,8 +1,11 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/storm/storm-0.15.ebuild,v 1.1 2009/09/04 15:45:46 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/storm/storm-0.15.ebuild,v 1.2 2009/09/05 17:10:13 arfrever Exp $ -NEED_PYTHON=2.4 +EAPI="2" + +NEED_PYTHON="2.4" +SUPPORT_PYTHON_ABIS="1" inherit distutils @@ -16,21 +19,22 @@ IUSE="mysql postgres sqlite test" RDEPEND="mysql? ( dev-python/mysql-python ) postgres? ( =dev-python/psycopg-2* ) - sqlite? ( || ( dev-python/pysqlite >=dev-lang/python-2.5 ) )" + sqlite? ( || ( >=dev-lang/python-2.5[sqlite] dev-python/pysqlite ) )" DEPEND="dev-python/setuptools - test? ( || ( dev-python/pysqlite >=dev-lang/python-2.5 ) )" + test? ( || ( >=dev-lang/python-2.5[sqlite] dev-python/pysqlite ) )" +RESTRICT_PYTHON_ABIS="3.*" DOCS="tests/tutorial.txt" src_test() { - if use postgres ; then + if use postgres; then elog "To run the PostgreSQL-tests, you need:" elog " - a running postgresql-server" elog " - an already existing database 'db'" elog " - a user 'user' with full permissions on that database" elog " - and an environment variable STORM_POSTGRES_URI=\"postgres://user:password@host:1234/db\"" fi - if use mysql ; then + if use mysql; then elog "To run the MySQL-tests, you need:" elog " - a running mysql-server" elog " - an already existing database 'db'" @@ -38,5 +42,8 @@ src_test() { elog " - and an environment variable STORM_MYSQL_URI=\"mysql://user:password@host:1234/db\"" fi - PYTHONPATH=. "${python}" test || die "tests failed" + testing() { + PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib*)" "$(PYTHON)" test + } + python_execute_function testing } |