blob: ff13bdb9e195adb4554f62dbe9a5c68ebe0d49ff (
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
51
52
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/4suite/4suite-1.0.2-r1.ebuild,v 1.7 2008/06/22 15:54:54 armin76 Exp $
inherit distutils eutils multilib
MY_P=4Suite-XML-${PV}
DESCRIPTION="Python tools for XML processing and object-databases."
SRC_URI="mirror://sourceforge/foursuite/${MY_P}.tar.bz2"
HOMEPAGE="http://www.4suite.org/"
LICENSE="Apache-1.1"
SLOT="0"
KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86"
IUSE="doc"
DEPEND=">=dev-python/pyxml-0.8.4"
RDEPEND="${DEPEND}"
PYTHON_MODNAME="Ft"
DOCS="docs/*.txt"
S=${WORKDIR}/${MY_P}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}-amd64_python2.5.patch"
epatch "${FILESDIR}/${P}-config.patch"
}
src_compile() {
if ! use doc ; then
sed -i -e "/'build_docs'/d" \
Ft/Lib/DistExt/Build.py || die "sed failed"
fi
distutils_python_version
"${python}" setup.py config \
--prefix=/usr \
--docdir=/usr/share/doc/${PF} \
--datadir=/usr/share/${PN} \
--libdir=/usr/$(get_libdir)/python${PYVER}/site-packages || die "setup.py config failed"
distutils_src_compile
}
src_install() {
rm -r test profile
distutils_src_install \
$(use_with doc docs) \
--install-lib="/usr/$(get_libdir)/python${PYVER}/site-packages"
}
|