diff options
author | Patrick Lauer <patrick@gentoo.org> | 2012-08-24 07:23:25 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2012-08-24 07:23:25 +0000 |
commit | d32ebb2ad8d575e71f66f128f9449194e5bbb70a (patch) | |
tree | cf9e873eeca81b0587c43af31d6340b751bf195a /dev-python | |
parent | ppc stable (bug 422173). (diff) | |
download | gentoo-2-d32ebb2ad8d575e71f66f128f9449194e5bbb70a.tar.gz gentoo-2-d32ebb2ad8d575e71f66f128f9449194e5bbb70a.tar.bz2 gentoo-2-d32ebb2ad8d575e71f66f128f9449194e5bbb70a.zip |
Bump
(Portage version: 2.2.0_alpha122/cvs/Linux x86_64)
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/astng/ChangeLog | 8 | ||||
-rw-r--r-- | dev-python/astng/astng-0.24.0.ebuild | 60 |
2 files changed, 66 insertions, 2 deletions
diff --git a/dev-python/astng/ChangeLog b/dev-python/astng/ChangeLog index 933115217efd..b94f7eb19477 100644 --- a/dev-python/astng/ChangeLog +++ b/dev-python/astng/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-python/astng # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/astng/ChangeLog,v 1.56 2012/05/05 15:13:45 floppym Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/astng/ChangeLog,v 1.57 2012/08/24 07:23:25 patrick Exp $ + +*astng-0.24.0 (24 Aug 2012) + + 24 Aug 2012; Patrick Lauer <patrick@gentoo.org> +astng-0.24.0.ebuild: + Bump *astng-0.23.1-r1 (05 May 2012) @@ -242,4 +247,3 @@ 08 Nov 2005; Rob Cakebread <pythonhead@gentoo.org> +metadata.xml, +astng-0.13.1.ebuild: Initial ebuild. New dependency for pylint - diff --git a/dev-python/astng/astng-0.24.0.ebuild b/dev-python/astng/astng-0.24.0.ebuild new file mode 100644 index 000000000000..098d2bbacad6 --- /dev/null +++ b/dev-python/astng/astng-0.24.0.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/astng/astng-0.24.0.ebuild,v 1.1 2012/08/24 07:23:25 patrick Exp $ + +EAPI="4" +SUPPORT_PYTHON_ABIS="1" +PYTHON_TESTS_RESTRICTED_ABIS="3.* *-jython *-pypy-*" + +inherit distutils + +DESCRIPTION="Abstract Syntax Tree New Generation for logilab packages" +HOMEPAGE="http://www.logilab.org/projects/astng/ http://pypi.python.org/pypi/logilab-astng" +SRC_URI="ftp://ftp.logilab.org/pub/astng/logilab-${P}.tar.gz mirror://pypi/l/logilab-astng/logilab-${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x64-macos ~x86-macos" +IUSE="test" + +# Version specified in __pkginfo__.py. +RDEPEND=">=dev-python/logilab-common-0.53.0" +DEPEND="${RDEPEND} + dev-python/setuptools + test? ( >=dev-python/egenix-mx-base-3.0.0 )" + +S="${WORKDIR}/logilab-${P}" +PYTHON_MODNAME="logilab/astng" +DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES="1" + +src_test() { + testing() { + local tpath="${T}/test-${PYTHON_ABI}" + local spath="${tpath}$(python_get_sitedir)" + + mkdir -p "${spath}/logilab" || return 1 + cp -r "$(python_get_sitedir)/logilab/common" "${spath}/logilab" || return 1 + + "$(PYTHON)" setup.py build -b build install --root="${tpath}" || + die "Installation for tests failed with $(python_get_implementation_and_version)" + + # pytest uses tests placed relatively to the current directory. + pushd "${spath}/logilab/astng" > /dev/null || return 1 + PYTHONPATH="${spath}" pytest -v || return 1 + popd > /dev/null || return 1 + } + python_execute_function -s testing +} + +src_install() { + distutils_src_install + + deletion_of_unneeded_files() { + # Avoid collision with dev-python/logilab-common. + rm -f "${ED}$(python_get_sitedir)/logilab/__init__.py" || return 1 + + # Don't install tests. + rm -fr "${ED}$(python_get_sitedir)/logilab/astng/test" || return 1 + } + python_execute_function -q deletion_of_unneeded_files +} |