blob: 73ac902393b4ecd8fb4da68acef5f9f59e8c03f4 (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/amara/amara-2.0.0_alpha6.ebuild,v 1.1 2012/05/16 09:39:14 dev-zero Exp $
EAPI=4
inherit distutils eutils
MY_PN="Amara"
MY_P="${MY_PN}-${PV/_alpha/a}"
DESCRIPTION="Library for XML processing in Python."
HOMEPAGE="http://wiki.xml3k.org/Amara2"
SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.bz2"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="examples"
DEPEND=">=dev-libs/expat-2.1.0-r2[unicode]
dev-lang/python[wide-unicode]
dev-python/html5lib"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${MY_P}"
src_prepare() {
distutils_src_prepare
epatch \
"${FILESDIR}/${PV}-unbundle-expat.patch" \
"${FILESDIR}/${PV}-unbundle-python-libs.patch"
}
src_install() {
DOCS="CHANGES"
distutils_src_install
if use examples ; then
insinto /usr/share/doc/${PF}
doins -r demo
fi
}
|