diff options
author | 2009-10-01 01:42:56 +0000 | |
---|---|---|
committer | 2009-10-01 01:42:56 +0000 | |
commit | a8c04f4d8c0e619acb4820d66eafa580827c8299 (patch) | |
tree | 2b6b6e47bbe50a0a87cbe084629c50d4e9eea0d9 /dev-python/python-openid/python-openid-2.2.4.ebuild | |
parent | Delete older ebuild. (diff) | |
download | historical-a8c04f4d8c0e619acb4820d66eafa580827c8299.tar.gz historical-a8c04f4d8c0e619acb4820d66eafa580827c8299.tar.bz2 historical-a8c04f4d8c0e619acb4820d66eafa580827c8299.zip |
Set SUPPORT_PYTHON_ABIS.
Package-Manager: portage-14469-svn/cvs/Linux x86_64
Diffstat (limited to 'dev-python/python-openid/python-openid-2.2.4.ebuild')
-rw-r--r-- | dev-python/python-openid/python-openid-2.2.4.ebuild | 39 |
1 files changed, 21 insertions, 18 deletions
diff --git a/dev-python/python-openid/python-openid-2.2.4.ebuild b/dev-python/python-openid/python-openid-2.2.4.ebuild index 976d6cd13a19..8f535e460a02 100644 --- a/dev-python/python-openid/python-openid-2.2.4.ebuild +++ b/dev-python/python-openid/python-openid-2.2.4.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/python-openid/python-openid-2.2.4.ebuild,v 1.1 2009/09/03 22:47:49 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/python-openid/python-openid-2.2.4.ebuild,v 1.2 2009/10/01 01:42:56 arfrever Exp $ -NEED_PYTHON=2.3 +EAPI="2" + +NEED_PYTHON="2.5" +SUPPORT_PYTHON_ABIS="1" inherit distutils @@ -15,22 +18,29 @@ SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="doc examples mysql postgres sqlite" -RDEPEND="|| ( >=dev-lang/python-2.5 dev-python/elementtree ) - || ( >=dev-lang/python-2.5 dev-python/pycrypto ) - sqlite? ( - || ( >=dev-lang/python-2.5 >=dev-python/pysqlite-2 ) - ) +RDEPEND="mysql? ( >=dev-python/mysql-python-1.2.2 ) postgres? ( dev-python/psycopg ) - mysql? ( >=dev-python/mysql-python-1.2.2 )" + sqlite? ( || ( dev-lang/python[sqlite] >=dev-python/pysqlite-2 ) )" DEPEND="${RDEPEND}" +RESTRICT_PYTHON_ABIS="3.*" PYTHON_MODNAME="openid" -src_unpack() { - distutils_src_unpack +src_prepare() { + distutils_src_prepare # Patch to fix confusion with localhost/127.0.0.1 - epatch "${FILESDIR}"/${PN}-2.0.0-gentoo-test_fetchers.diff + epatch "${FILESDIR}/${PN}-2.0.0-gentoo-test_fetchers.diff" +} + +src_test() { + # Remove test that requires running db server. + sed -e '/storetest/d' -i admin/runtests + + testing() { + "$(PYTHON)" admin/runtests + } + python_execute_function testing } src_install() { @@ -43,10 +53,3 @@ src_install() { doins -r examples fi } - -src_test() { - #Remove test that requires running db server - sed -e '/storetest/d' -i admin/runtests - - "${python}" admin/runtests || die "tests failed" -} |