/[gentoo-x86]/dev-python/4suite/4suite-1.0.2-r2.ebuild
Gentoo

Contents of /dev-python/4suite/4suite-1.0.2-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Jun 16 07:49:19 2012 UTC (8 years, 1 month ago) by dev-zero
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
removed 4suite as per bug #250930

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/4suite/4suite-1.0.2-r2.ebuild,v 1.1 2011/05/17 18:28:17 arfrever Exp $
4
5 EAPI="3"
6 PYTHON_DEPEND="2"
7 SUPPORT_PYTHON_ABIS="1"
8 RESTRICT_PYTHON_ABIS="3.* *-jython"
9
10 inherit distutils eutils
11
12 MY_P="4Suite-XML-${PV}"
13
14 DESCRIPTION="Python tools for XML processing and object-databases."
15 HOMEPAGE="http://www.4suite.org/ http://pypi.python.org/pypi/4Suite"
16 SRC_URI="mirror://sourceforge/foursuite/${MY_P}.tar.bz2"
17
18 LICENSE="Apache-1.1"
19 SLOT="0"
20 KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86"
21 IUSE="doc"
22
23 DEPEND=">=dev-python/pyxml-0.8.4"
24 RDEPEND="${DEPEND}"
25
26 PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
27
28 DOCS="docs/*.txt"
29 PYTHON_MODNAME="Ft"
30
31 S=${WORKDIR}/${MY_P}
32
33 src_prepare() {
34 epatch "${FILESDIR}/${P}-amd64_python2.5.patch"
35 epatch "${FILESDIR}/${P}-config.patch"
36 epatch "${FILESDIR}/${P}-version_parsing.patch"
37 epatch "${FILESDIR}/${P}-pyxml.patch"
38
39 if ! use doc; then
40 sed -e "/'build_docs'/d" -i Ft/Lib/DistExt/Build.py || die "sed failed"
41 fi
42 distutils_src_prepare
43 }
44
45 src_configure() {
46 configuration() {
47 "$(PYTHON)" setup.py config \
48 --prefix=/usr \
49 --docdir=/usr/share/doc/${PF} \
50 --datadir=/usr/share/${PN} \
51 --libdir="$(python_get_sitedir)" || die "setup.py config failed with Python ${PYTHON_ABI}"
52 }
53 python_execute_function configuration
54 }
55
56 src_install() {
57 distutils_src_install $(use_with doc docs)
58
59 delete_profiles_and_tests() {
60 rm -fr "${ED}$(python_get_sitedir)/"{profiles,tests}
61 }
62 python_execute_function -q delete_profiles_and_tests
63 }

  ViewVC Help
Powered by ViewVC 1.1.20