/[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.1 - (show annotations) (download)
Mon Jul 9 16:52:37 2012 UTC (2 years, 4 months ago) by bicatali
Branch: MAIN
Version bump. Keyword amd64-linux, x86-linux

(Portage version: 2.2.01.20757-prefix/cvs/Linux x86_64)

1 # Copyright 1999-2012 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.0.ebuild,v 1.3 2012/06/21 18:57:34 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 2.7-pypy-*"
11 inherit distutils virtualx
12
13 MYPN="${PN/scikits_/}"
14 MYP="${MYPN}-${PV}"
15
16 DESCRIPTION="Statistical computations and models for use with SciPy"
17 HOMEPAGE="http://statsmodels.sourceforge.net/"
18 SRC_URI="mirror://pypi/${MYPN:0:1}/${MYPN}/${MYP}.tar.gz"
19
20 LICENSE="BSD"
21 SLOT="0"
22 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
23 IUSE="doc examples test"
24
25 RDEPEND="dev-python/pandas
26 sci-libs/scikits
27 sci-libs/scipy
28 examples? ( dev-python/matplotlib )"
29 DEPEND=">=dev-python/cython-0.15.1
30 dev-python/pandas
31 sci-libs/scipy
32 dev-python/setuptools
33 doc? ( dev-python/sphinx >=dev-python/ipython-0.12 )
34 test? ( dev-python/nose )"
35
36 S="${WORKDIR}/${MYP}"
37
38 src_compile() {
39 distutils_src_compile
40 if use doc; then
41 "$(PYTHON -f)" setup.py build_sphinx || die
42 fi
43 }
44
45 src_install() {
46 find "${S}" -name \*LICENSE.txt -delete
47 distutils_src_install
48 remove_scikits() {
49 rm -f "${ED}"$(python_get_sitedir)/scikits/__init__.py || die
50 }
51 python_execute_function -q remove_scikits
52 use doc && dohtml -r build/sphinx/html/*
53 if use examples; then
54 insinto /usr/share/doc/${PF}
55 doins -r examples
56 fi
57 }

  ViewVC Help
Powered by ViewVC 1.1.20