# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-python/logilab-constraint/logilab-constraint-0.4.0.ebuild,v 1.9 2012/08/27 15:23:30 floppym Exp $ EAPI="3" PYTHON_DEPEND="2" SUPPORT_PYTHON_ABIS="1" RESTRICT_PYTHON_ABIS="3.*" inherit distutils MY_P="${P#logilab-}" DESCRIPTION="A finite domain constraints solver written in 100% pure Python" HOMEPAGE="http://www.logilab.org/project/logilab-constraint" SRC_URI="ftp://ftp.logilab.org/pub/constraint/${MY_P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~sparc ~x86" IUSE="doc" DEPEND="" RDEPEND=">=dev-python/logilab-common-0.12.0" DOCS="doc/CONTRIBUTORS" PYTHON_MODNAME="logilab/constraint" src_install() { distutils_src_install delete_unneeded_files() { # Avoid collisions with dev-python/logilab-common. rm -f "${ED}$(python_get_sitedir)/logilab/__init__.py" } python_execute_function -q delete_unneeded_files if use doc; then dohtml doc/documentation.html insinto /usr/share/doc/${PF} doins -r examples fi }