blob: 3189645527bda5869a0ef0bbaba3b38d0d8416c1 (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/cython/cython-0.9.6.6.ebuild,v 1.2 2007/10/07 21:40:12 dev-zero Exp $
NEED_PYTHON=2.2
inherit distutils eutils
DESCRIPTION="A language for writing Python extension modules based on pyrex"
HOMEPAGE="http://www.cython.org/"
SRC_URI="http://www.cython.org/${P}.tgz"
LICENSE="PSF-2.4"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc examples"
S="${WORKDIR}/Cython-${PV}"
PYTHON_MODNAME="Cython"
DOCS="ToDo.txt USAGE.txt"
src_install() {
distutils_src_install
# -A c switch is for Doc/primes.c
use doc && dohtml -A c -r Doc/*
if use examples; then
# Demos/ has files with .so,~ suffixes.
# So we have to specify precisely what to install.
insinto /usr/share/doc/${PF}/examples
doins Demos/Makefile* Demos/Setup.py Demos/*.{c,py,pyx,pxd}
fi
}
|