2012-02-20 21:40:18 +04:00
|
|
|
# Copyright 1999-2012 Gentoo Foundation
|
2011-12-18 19:30:13 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2012-04-02 12:44:06 +04:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/dev-python/cython/cython-0.14.1-r1.ebuild,v 1.1 2012/03/31 19:13:10 floppym Exp $
|
2011-12-18 19:30:13 +04:00
|
|
|
|
|
|
|
EAPI="3"
|
|
|
|
SUPPORT_PYTHON_ABIS="1"
|
2012-02-20 21:40:18 +04:00
|
|
|
RESTRICT_PYTHON_ABIS="*-jython 2.7-pypy-*"
|
2011-12-18 19:30:13 +04:00
|
|
|
|
2012-04-02 12:44:06 +04:00
|
|
|
inherit distutils
|
2011-12-18 19:30:13 +04:00
|
|
|
|
|
|
|
MY_PN="Cython"
|
|
|
|
MY_P="${MY_PN}-${PV/_/}"
|
|
|
|
|
2012-04-02 12:44:06 +04:00
|
|
|
DESCRIPTION="The Cython compiler for writing C extensions for the Python language"
|
2011-12-18 19:30:13 +04:00
|
|
|
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 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris"
|
2012-04-02 12:44:06 +04:00
|
|
|
IUSE="doc examples"
|
2011-12-18 19:30:13 +04:00
|
|
|
|
2012-04-02 12:44:06 +04:00
|
|
|
DEPEND=""
|
|
|
|
RDEPEND=""
|
2011-12-18 19:30:13 +04:00
|
|
|
|
2012-04-02 12:44:06 +04:00
|
|
|
S="${WORKDIR}/${MY_P}"
|
2011-12-18 19:30:13 +04:00
|
|
|
|
|
|
|
PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
|
|
|
|
|
|
|
|
DOCS="README.txt ToDo.txt USAGE.txt"
|
|
|
|
PYTHON_MODNAME="Cython cython.py pyximport"
|
|
|
|
|
|
|
|
src_test() {
|
|
|
|
testing() {
|
|
|
|
"$(PYTHON)" runtests.py -vv --work-dir tests-${PYTHON_ABI}
|
|
|
|
}
|
|
|
|
python_execute_function testing
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
distutils_src_install
|
2012-04-02 12:44:06 +04:00
|
|
|
python_generate_wrapper_scripts -E -f -q "${ED}usr/bin/cython"
|
2011-12-18 19:30:13 +04:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|