blob: 0477fba53a8611ab0be83169a5a8e96cbc651ae9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Copyright 1999-2009 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.4 2009/08/25 16:02:24 arfrever Exp $
EAPI="2"
SUPPORT_PYTHON_ABIS="1"
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"
RESTRICT_PYTHON_ABIS="3*"
PYTHON_MODNAME="logilab/constraint"
DOCS="doc/CONTRIBUTORS"
src_install() {
distutils_src_install
# Avoid conflict with dev-python/logilab-common.
rm -f "${D}"usr/$(get_libdir)/python*/site-packages/logilab/__init__.py
if use doc; then
dohtml doc/documentation.html
insinto /usr/share/doc/${PF}
doins -r examples
fi
}
pkg_postinst() {
distutils_pkg_postinst
if use x86 && ! has_version dev-python/psyco; then
einfo ""
einfo "Although it is not required, you should consider installing"
einfo "\"dev-python/psyco\". It can speed up this module a lot."
einfo ""
fi
}
|