blob: 933735649596810b7814254f52af5d09cfe94998 (
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
56
57
58
59
60
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/cython/cython-0.14-r1.ebuild,v 1.1 2010/12/24 23:33:06 arfrever Exp $
EAPI="3"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="*-jython"
inherit distutils eutils
MY_PN="Cython"
MY_P="${MY_PN}-${PV/_/.}"
DESCRIPTION="The Cython compiler for writing C extensions for the Python language"
HOMEPAGE="http://www.cython.org/ http://pypi.python.org/pypi/Cython"
SRC_URI="http://www.cython.org/release/${MY_P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris"
IUSE="doc examples"
DEPEND=""
RDEPEND=""
S="${WORKDIR}/${MY_P}"
PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
DOCS="README.txt ToDo.txt USAGE.txt"
PYTHON_MODNAME="Cython cython.py pyximport"
src_prepare() {
distutils_src_prepare
epatch "${FILESDIR}/${P}-python-3.patch"
epatch "${FILESDIR}/${P}-__new__.patch"
}
src_test() {
testing() {
rm -fr BUILD
"$(PYTHON)" runtests.py -vv
}
python_execute_function testing
}
src_install() {
distutils_src_install
if use doc; then
# "-A c" is for ignoring of "Doc/primes.c".
dohtml -A c -r Doc/* || die "Installation of documentation failed"
fi
if use examples; then
insinto /usr/share/doc/${PF}/examples
doins -r Demos/* || die "Installation of examples failed"
fi
}
|