summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Chatzimichos <tampakrap@gentoo.org>2012-11-13 20:40:56 +0000
committerTheo Chatzimichos <tampakrap@gentoo.org>2012-11-13 20:40:56 +0000
commit9fc1d32f51719fcf0d33f3ed288ef406fb3b4f4d (patch)
treedfa88baa20dfcdace44ea5961041d765859fb48f /dev-python
parentstable ppc, bug #442962 (diff)
downloadgentoo-2-9fc1d32f51719fcf0d33f3ed288ef406fb3b4f4d.tar.gz
gentoo-2-9fc1d32f51719fcf0d33f3ed288ef406fb3b4f4d.tar.bz2
gentoo-2-9fc1d32f51719fcf0d33f3ed288ef406fb3b4f4d.zip
Bring back the only full stable version
(Portage version: 2.2.0_alpha137/cvs/Linux x86_64, RepoMan options: --force)
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/logilab-common/ChangeLog8
-rw-r--r--dev-python/logilab-common/logilab-common-0.55.2.ebuild63
2 files changed, 70 insertions, 1 deletions
diff --git a/dev-python/logilab-common/ChangeLog b/dev-python/logilab-common/ChangeLog
index 289886cbe29b..278adfaf0a98 100644
--- a/dev-python/logilab-common/ChangeLog
+++ b/dev-python/logilab-common/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-python/logilab-common
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/logilab-common/ChangeLog,v 1.106 2012/11/10 15:36:12 idella4 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/logilab-common/ChangeLog,v 1.107 2012/11/13 20:40:56 tampakrap Exp $
+
+*logilab-common-0.55.2 (13 Nov 2012)
+
+ 13 Nov 2012; Theo Chatzimichos <tampakrap@gentoo.org>
+ +logilab-common-0.55.2.ebuild:
+ Bring back the only full stable version
11 Nov 2012; Ian Delaney <idella4@gentoo.org> logilab-common-0.58.1-r1.ebuild:
Removed leftover '#' from PYTHON_TESTS_RESTRICTED_ABIS, fixes Bug #442572
diff --git a/dev-python/logilab-common/logilab-common-0.55.2.ebuild b/dev-python/logilab-common/logilab-common-0.55.2.ebuild
new file mode 100644
index 000000000000..2378dcf9d243
--- /dev/null
+++ b/dev-python/logilab-common/logilab-common-0.55.2.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/logilab-common/logilab-common-0.55.2.ebuild,v 1.7 2012/11/13 20:40:56 tampakrap Exp $
+
+EAPI="3"
+SUPPORT_PYTHON_ABIS="1"
+
+inherit distutils
+
+DESCRIPTION="Useful miscellaneous modules used by Logilab projects"
+HOMEPAGE="http://www.logilab.org/project/logilab-common http://pypi.python.org/pypi/logilab-common"
+SRC_URI="ftp://ftp.logilab.org/pub/common/${P}.tar.gz mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 ~ia64 ppc ~ppc64 ~s390 ~sparc x86 ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="test"
+
+# dev-python/unittest2 is not required with Python >=3.2.
+RDEPEND="dev-python/setuptools
+ dev-python/unittest2"
+# Tests using dev-python/psycopg are skipped when dev-python/psycopg isn't installed.
+DEPEND="${RDEPEND}
+ test? (
+ dev-python/egenix-mx-base
+ !dev-python/psycopg[-mxdatetime]
+ )"
+
+PYTHON_MODNAME="logilab"
+
+src_test() {
+ testing() {
+ # Install temporarily.
+ local tpath="${T}/test-${PYTHON_ABI}"
+ local spath="${tpath}${EPREFIX}$(python_get_sitedir)"
+
+ "$(PYTHON)" setup.py build -b "build-${PYTHON_ABI}" install --root="${tpath}" || die "Installation for tests failed with $(python_get_implementation) $(python_get_version)"
+
+ # pytest uses tests placed relatively to the current directory.
+ pushd "${spath}" > /dev/null || return 1
+ if [[ "${PYTHON_ABI}" == 3.* ]]; then
+ # Support for Python 3 is experimental. Some tests are known to fail.
+ PYTHONPATH="${spath}" "$(PYTHON)" "${tpath}${EPREFIX}/usr/bin/pytest" -v
+ else
+ PYTHONPATH="${spath}" "$(PYTHON)" "${tpath}${EPREFIX}/usr/bin/pytest" -v || return 1
+ fi
+ popd > /dev/null || return 1
+ }
+ python_execute_function testing
+}
+
+src_install() {
+ distutils_src_install
+
+ python_generate_wrapper_scripts -E -f -q "${ED}usr/bin/pytest"
+
+ doman doc/pytest.1 || die "doman failed"
+
+ delete_tests() {
+ rm -fr "${ED}$(python_get_sitedir)/${PN/-//}/test"
+ }
+ python_execute_function -q delete_tests
+}