/[gentoo-x86]/sci-libs/scikits_statsmodels/scikits_statsmodels-0.4.3.ebuild
Gentoo

Contents of /sci-libs/scikits_statsmodels/scikits_statsmodels-0.4.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Jan 16 15:33:52 2013 UTC (19 months, 4 weeks ago) by jlec
Branch: MAIN
Changes since 1.2: +3 -3 lines
sci-libs/scikits_statsmodels: No support for python3

(Portage version: 2.2.0_alpha153/cvs/Linux x86_64, signed Manifest commit with key 70EB7916)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-libs/scikits_statsmodels/scikits_statsmodels-0.4.3.ebuild,v 1.2 2012/12/10 19:29:07 bicatali Exp $
4
5 EAPI=4
6
7 SUPPORT_PYTHON_ABIS="1"
8 DISTUTILS_SRC_TEST="nosetests"
9 VIRTUALX_REQUIRED=test
10 RESTRICT_PYTHON_ABIS="2.4 3.* 2.7-pypy-*"
11 PYTHON_MODNAME="statsmodels"
12
13 inherit distutils virtualx
14
15 MYPN="${PN/scikits_/}"
16 MYP="${MYPN}-${PV}"
17
18 DESCRIPTION="Statistical computations and models for use with SciPy"
19 HOMEPAGE="http://statsmodels.sourceforge.net/"
20 SRC_URI="mirror://pypi/${MYPN:0:1}/${MYPN}/${MYP}.tar.gz"
21
22 LICENSE="BSD"
23 SLOT="0"
24 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
25 IUSE="doc examples test"
26
27 RDEPEND="
28 dev-python/pandas
29 sci-libs/scikits
30 sci-libs/scipy
31 examples? ( dev-python/matplotlib )"
32 DEPEND="
33 >=dev-python/cython-0.15.1
34 dev-python/pandas
35 dev-python/setuptools
36 sci-libs/scipy
37 doc? ( dev-python/matplotlib
38 dev-python/sphinx
39 >=dev-python/ipython-0.12 )
40 test? ( dev-python/nose )"
41
42 S="${WORKDIR}/${MYP}"
43
44 src_compile() {
45 distutils_src_compile
46 if use doc; then
47 "$(PYTHON -f)" setup.py build_sphinx || die
48 fi
49 }
50
51 src_install() {
52 find "${S}" -name \*LICENSE.txt -delete
53 distutils_src_install
54 remove_scikits() {
55 rm "${ED}"$(python_get_sitedir)/scikits/__init__.py || die
56 }
57 python_execute_function -q remove_scikits
58 use doc && dohtml -r build/sphinx/html/*
59 if use examples; then
60 insinto /usr/share/doc/${PF}
61 doins -r examples
62 fi
63 }

  ViewVC Help
Powered by ViewVC 1.1.20