blob: 9498cbd5fe76925c4be3de137410ccbfdd9dd80c (
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-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/elixir/elixir-0.7.1-r1.ebuild,v 1.2 2013/05/04 21:20:52 floppym Exp $
EAPI="2"
PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
inherit distutils eutils
MY_PN="Elixir"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="Declarative Mapper for SQLAlchemy"
HOMEPAGE="http://elixir.ematia.de/trac/wiki http://pypi.python.org/pypi/Elixir"
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc"
RDEPEND=">=dev-python/sqlalchemy-0.4.0"
DEPEND="${RDEPEND}
dev-python/setuptools
doc? ( >=dev-python/docutils-0.4-r3
>=dev-python/kid-0.9
>=dev-python/pygments-0.8.1
>=dev-python/pudge-0.1.3
>=dev-python/buildutils-0.3 )"
RESTRICT_PYTHON_ABIS="3.*"
S="${WORKDIR}/${MY_P}"
src_prepare() {
epatch "${FILESDIR}"/${P}-CVE-2012-2146-aes.patch
}
src_compile() {
distutils_src_compile
if use doc; then
einfo "Generation of documentation"
"$(PYTHON -f)" setup.py addcommand -p buildutils.pudge_command
PYTHONPATH=. "$(PYTHON -f)" setup.py pudge || die "Generation of documentation failed"
fi
}
src_install() {
distutils_src_install
if use doc; then
dohtml -r build/doc/*
fi
}
|