You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-python/logilab-constraint/logilab-constraint-0.4.0.eb...

43 lines
1.1 KiB

# 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.8 2012/04/12 16:00:56 xarthisius 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/projects/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
}