diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2011-01-08 19:23:57 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2011-01-08 19:23:57 +0000 |
commit | 0ea8f8559da7c83f230438b49dbc3f4c37df6774 (patch) | |
tree | 18b6383c588bd96d3f566254fca22fbd580521aa /sci-libs/scikits_statsmodels | |
parent | Initial import to the main tree (diff) | |
download | gentoo-2-0ea8f8559da7c83f230438b49dbc3f4c37df6774.tar.gz gentoo-2-0ea8f8559da7c83f230438b49dbc3f4c37df6774.tar.bz2 gentoo-2-0ea8f8559da7c83f230438b49dbc3f4c37df6774.zip |
Initial import to the main tree
(Portage version: 2.1.9.30/cvs/Linux x86_64)
Diffstat (limited to 'sci-libs/scikits_statsmodels')
-rw-r--r-- | sci-libs/scikits_statsmodels/ChangeLog | 22 | ||||
-rw-r--r-- | sci-libs/scikits_statsmodels/metadata.xml | 19 | ||||
-rw-r--r-- | sci-libs/scikits_statsmodels/scikits_statsmodels-0.2.0.ebuild | 70 |
3 files changed, 111 insertions, 0 deletions
diff --git a/sci-libs/scikits_statsmodels/ChangeLog b/sci-libs/scikits_statsmodels/ChangeLog new file mode 100644 index 000000000000..1de5f2430d73 --- /dev/null +++ b/sci-libs/scikits_statsmodels/ChangeLog @@ -0,0 +1,22 @@ +# ChangeLog for sci-libs/scikits_statsmodels +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/scikits_statsmodels/ChangeLog,v 1.1 2011/01/08 19:23:57 bicatali Exp $ + + 08 Jan 2011; Sébastien Fabbro <bicatali@gentoo.org> + +scikits_statsmodels-0.2.0.ebuild, +metadata.xml: + Initial import to the main tree + + 04 Dec 2010; Sébastien Fabbro <bicatali@gentoo.org> + scikits_statsmodels-0.2.0.ebuild: + Now depend on common scikits + + 29 Jun 2010; Justin Lecher <jlec@gentoo.org> + scikits_statsmodels-0.2.0.ebuild: + Python ABI fixes + +*scikits_statsmodels-0.2.0 (26 Mar 2010) + + 26 Mar 2010; Sébastien Fabbro <bicatali@gentoo.org> + +scikits_statsmodels-0.2.0.ebuild, +metadata.xml: + Initial import of scikits.statsmodels + diff --git a/sci-libs/scikits_statsmodels/metadata.xml b/sci-libs/scikits_statsmodels/metadata.xml new file mode 100644 index 000000000000..161761b3f0f6 --- /dev/null +++ b/sci-libs/scikits_statsmodels/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>sci</herd> +<longdescription lang="en"> + Statsmodels is a python package that provides a complement to scipy + for statistical computations including descriptive statistics and + estimation of statistical models. + + scikits.statsmodels provides classes and functions for the estimation + of several categories of statistical models. These currently include + linear regression models, OLS, GLS, WLS and GLS with AR(p) errors, + generalized linear models for six distribution families, M-estimators for robust + linear models, and regression with discrete dependent variables, + Logit, Probit, MNLogit, Poisson, based on maximum likelihood estimators. + An extensive list of result statistics are avalable for each estimation + problem. +</longdescription> +</pkgmetadata> diff --git a/sci-libs/scikits_statsmodels/scikits_statsmodels-0.2.0.ebuild b/sci-libs/scikits_statsmodels/scikits_statsmodels-0.2.0.ebuild new file mode 100644 index 000000000000..a49f3eedec3b --- /dev/null +++ b/sci-libs/scikits_statsmodels/scikits_statsmodels-0.2.0.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/scikits_statsmodels/scikits_statsmodels-0.2.0.ebuild,v 1.1 2011/01/08 19:23:57 bicatali Exp $ + +EAPI="2" + +PYTHON_DEPEND="2" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3.*" + +inherit distutils + +MY_P="${P/scikits_/scikits.}" + +DESCRIPTION="Statistical computations and models for use with SciPy" +HOMEPAGE="http://scikits.appspot.com/statsmodels" +SRC_URI="http://pypi.python.org/packages/source/s/scikits.statsmodels/${MY_P}.zip" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc examples test" + +RDEPEND="sci-libs/scipy + sci-libs/scikits" +DEPEND="dev-python/numpy + dev-python/setuptools + doc? ( dev-python/sphinx )" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + # remove badly placed docs and examples + sed -i \ + -e '/statsmodels\/docs/d' \ + -e '/statsmodels\/examples/d' \ + setup.py || die + mv scikits/statsmodels/{docs,examples} . + distutils_src_prepare +} + +src_compile() { + distutils_src_compile + if use doc; then + "$(PYTHON -f)" setup.py build_sphinx || die "Generation of documentation failed" + fi +} + +src_test() { + testing() { + PYTHONPATH="$(dir -d build-${PYTHON_ABI}/lib*)" "$(PYTHON)" setup.py build -b "build-${PYTHON_ABI}" test + } + python_execute_function testing +} + +src_install() { + find "${S}" -name \*LICENSE.txt -delete + distutils_src_install + remove_scikits() { + rm -f "${ED}"$(python_get_sitedir)/scikits/__init__.py || die + } + python_execute_function -q remove_scikits + insinto /usr/share/doc/${PF} + if use doc; then + doins -r build/sphinx/html || die + fi + if use examples; then + doins -r examples || die + fi +} |