diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-12-06 19:30:37 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-12-06 19:30:37 +0000 |
commit | b9261104b859de46c4491382da79b6827cda274b (patch) | |
tree | db885ea24f6b7afeeeb4b568a030c9fce6ccbb9b /dev-python | |
parent | Mask app-emacs/proofgeneral-4.0 for testing (diff) | |
download | gentoo-2-b9261104b859de46c4491382da79b6827cda274b.tar.gz gentoo-2-b9261104b859de46c4491382da79b6827cda274b.tar.bz2 gentoo-2-b9261104b859de46c4491382da79b6827cda274b.zip |
Version bump.
(Portage version: 2.2.0_alpha7_p1/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.21.0.ebuild | 70 |
2 files changed, 77 insertions, 1 deletions
diff --git a/dev-python/astng/ChangeLog b/dev-python/astng/ChangeLog index ebb40ed3a532..9064c8bcd075 100644 --- a/dev-python/astng/ChangeLog +++ b/dev-python/astng/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-python/astng # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/astng/ChangeLog,v 1.45 2010/10/25 12:07:04 fauli Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/astng/ChangeLog,v 1.46 2010/12/06 19:30:37 arfrever Exp $ + +*astng-0.21.0 (06 Dec 2010) + + 06 Dec 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + +astng-0.21.0.ebuild: + Version bump. 25 Oct 2010; Christian Faulhammer <fauli@gentoo.org> astng-0.20.3.ebuild: stable x86, bug 341607 diff --git a/dev-python/astng/astng-0.21.0.ebuild b/dev-python/astng/astng-0.21.0.ebuild new file mode 100644 index 000000000000..809b2f4808d9 --- /dev/null +++ b/dev-python/astng/astng-0.21.0.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/astng/astng-0.21.0.ebuild,v 1.1 2010/12/06 19:30:37 arfrever Exp $ + +EAPI="3" +SUPPORT_PYTHON_ABIS="1" + +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}" + +DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES="1" + +PYTHON_MODNAME="logilab/astng" + +src_prepare() { + distutils_src_prepare + + conversion() { + [[ "${PYTHON_ABI}" == 2.* ]] && return + find -name "*.py" ! -name "setup.py" -print | xargs 2to3-${PYTHON_ABI} -nw --no-diffs + } + python_execute_function -s conversion +} + +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 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}/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 +} |