From ee58a9cf7f4bd424614e7a08752a952434b1f4f3 Mon Sep 17 00:00:00 2001 From: Sebastien Fabbro Date: Fri, 29 Jul 2011 22:28:05 +0000 Subject: [PATCH] Version bump Package-Manager: portage-2.1.10.7/cvs/Linux x86_64 --- dev-python/astng/ChangeLog | 8 ++- dev-python/astng/astng-0.22.0.ebuild | 75 +++++++++++++++++++++++ dev-python/astng/metadata.xml | 16 ++++- dev-python/fusil/ChangeLog | 10 ++- dev-python/fusil/files/1.4-python25.patch | 12 ++++ dev-python/fusil/fusil-1.4.ebuild | 51 +++++++++++++++ 6 files changed, 168 insertions(+), 4 deletions(-) create mode 100644 dev-python/astng/astng-0.22.0.ebuild create mode 100644 dev-python/fusil/files/1.4-python25.patch create mode 100644 dev-python/fusil/fusil-1.4.ebuild diff --git a/dev-python/astng/ChangeLog b/dev-python/astng/ChangeLog index 9f5520cecc03..919030c5452c 100644 --- a/dev-python/astng/ChangeLog +++ b/dev-python/astng/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-python/astng # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/astng/ChangeLog,v 1.51 2011/04/10 20:53:05 maekke Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/astng/ChangeLog,v 1.52 2011/07/29 22:27:34 bicatali Exp $ + +*astng-0.22.0 (29 Jul 2011) + + 29 Jul 2011; Sébastien Fabbro +astng-0.22.0.ebuild, + metadata.xml: + Version bump 10 Apr 2011; Markus Meier astng-0.21.1.ebuild: x86 stable, bug #355273 diff --git a/dev-python/astng/astng-0.22.0.ebuild b/dev-python/astng/astng-0.22.0.ebuild new file mode 100644 index 000000000000..9d7ceed1250f --- /dev/null +++ b/dev-python/astng/astng-0.22.0.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/astng/astng-0.22.0.ebuild,v 1.1 2011/07/29 22:27:34 bicatali 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 + if [[ "${PYTHON_ABI}" == 3.* ]]; then + # Support for Python 3 is experimental. Some tests are known to fail. + PYTHONPATH="${spath}" pytest -v + else + PYTHONPATH="${spath}" pytest -v || return 1 + fi + 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 +} diff --git a/dev-python/astng/metadata.xml b/dev-python/astng/metadata.xml index 301d2207cc29..1b23eefdddfd 100644 --- a/dev-python/astng/metadata.xml +++ b/dev-python/astng/metadata.xml @@ -1,5 +1,19 @@ - python +python + + The aim of this module is to provide a common base representation of + python source code for projects such as pychecker, pyreverse, + pylint... Well, actually the development of this library is + essentially governed by pylint's needs. + + It provides a compatible representation which comes from the _ast + module. It rebuilds the tree generated by the builtin _ast module by + recursively walking down the AST and building an extended ast (let's + call it astng ;). The new node classes have additional methods and + attributes for different usages. They include some support for static + inference and local name scopes. Furthermore, astng builds partial + trees by inspecting living objects. + diff --git a/dev-python/fusil/ChangeLog b/dev-python/fusil/ChangeLog index a8185989e13b..a3b4fb8e0fff 100644 --- a/dev-python/fusil/ChangeLog +++ b/dev-python/fusil/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-python/fusil -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/fusil/ChangeLog,v 1.6 2010/06/30 00:03:15 arfrever Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/fusil/ChangeLog,v 1.7 2011/07/29 22:28:05 bicatali Exp $ + +*fusil-1.4 (29 Jul 2011) + + 29 Jul 2011; Sébastien Fabbro + +files/1.4-python25.patch, +fusil-1.4.ebuild: + Version bump 30 Jun 2010; Arfrever Frehtes Taifersar Arahesis fusil-1.3.2.ebuild: diff --git a/dev-python/fusil/files/1.4-python25.patch b/dev-python/fusil/files/1.4-python25.patch new file mode 100644 index 000000000000..b36643b5c4a7 --- /dev/null +++ b/dev-python/fusil/files/1.4-python25.patch @@ -0,0 +1,12 @@ +diff --git a/setup.py b/setup.py +index 712796e..40ea469 100755 +--- a/setup.py ++++ b/setup.py +@@ -17,6 +17,7 @@ + # - set version to n+1 + # - add a new empty section in the changelog for version n+1 + ++from __future__ import with_statement + from imp import load_source + from os import path + from sys import argv diff --git a/dev-python/fusil/fusil-1.4.ebuild b/dev-python/fusil/fusil-1.4.ebuild new file mode 100644 index 000000000000..c34f34eaba9a --- /dev/null +++ b/dev-python/fusil/fusil-1.4.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/fusil/fusil-1.4.ebuild,v 1.1 2011/07/29 22:28:05 bicatali Exp $ + +EAPI="3" +PYTHON_DEPEND="*:2.5" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="2.4" + +inherit distutils eutils + +DESCRIPTION="Fusil the fuzzer is a Python library used to write fuzzing programs." +HOMEPAGE="http://bitbucket.org/haypo/fusil/wiki/Home http://pypi.python.org/pypi/fusil" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc examples" + +DEPEND=">=dev-python/python-ptrace-0.6" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${PV}-python25.patch +} + +src_compile() { + distutils_src_compile + if use doc; then + cd doc + emake RST2HTML="rst2html.py" || die "Generation of documentation failed" + fi +} + +src_install(){ + distutils_src_install + if use doc; then + dohtml doc/* + fi + if use examples; then + insinto /usr/share/doc/${PF} + doins -r examples + fi +} + +pkg_postinst() { + distutils_pkg_postinst + enewgroup fusil + enewuser fusil -1 -1 -1 "fusil" +} -- 2.26.2