blob: 3e10cd2afb2836ce6be1c2535a005a3f229dd4a4 (
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
53
54
55
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/simpleparse/simpleparse-2.1.0_alpha1.ebuild,v 1.2 2009/08/30 21:47:08 arfrever Exp $
inherit distutils eutils
MY_P="SimpleParse-${PV/_alpha/a}"
DESCRIPTION="A Parser Generator for mxTextTools."
HOMEPAGE="http://simpleparse.sourceforge.net"
SRC_URI="mirror://sourceforge/simpleparse/${MY_P}.zip"
LICENSE="as-is eGenixPublic-1.1"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
IUSE="doc examples"
RDEPEND=""
DEPEND="app-arch/unzip"
S=${WORKDIR}/${MY_P}
# Maintainer notes:
# * not calling distutils_src_unpack by intention (otherwise the ez_setup.py gets installed)
# * this package contains a patched copy of mxTextTools (from egenix-mx-base) but that copy
# can't be replaced by the original one (tests fail badly).
src_unpack() {
unpack ${A}
cd "${S}"
sed -i \
-e '/data_files/d' \
setup.py || die "sed failed"
rm {examples,tests}/__init__.py
epatch "${FILESDIR}/${P}-python-2.6.patch"
}
src_install() {
distutils_src_install
if use doc ; then
dohtml -r doc/*
fi
if use examples ; then
insinto /usr/share/doc/${PF}
doins -r examples
fi
}
src_test() {
distutils_python_version
PYTHONPATH="$(ls -d build/lib.*):." "${python}" tests/test.py || die "tests failed"
}
|