# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-python/pandas/pandas-0.15.0.ebuild,v 1.9 2014/12/21 18:29:37 jlec Exp $ EAPI=5 PYTHON_COMPAT=( python2_7 python3_{3,4} ) inherit distutils-r1 eutils flag-o-matic virtualx DESCRIPTION="Powerful data structures for data analysis and statistics" HOMEPAGE="http://pandas.sourceforge.net/" SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" SLOT="0" LICENSE="BSD" KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" IUSE="doc examples excel html test R" EXTRA_DEPEND=" >=dev-python/google-api-python-client-1.2.0[$(python_gen_usedep python2_7 pypy)] /dev/null VIRTUALX_COMMAND="nosetests" PYTHONPATH=. MPLCONFIGDIR=. HOME=. \ virtualmake --verbosity=3 -A 'not network and not disabled' pandas popd > /dev/null } python_install_all() { if use doc; then dodoc -r "${BUILD_DIR}"/lib/doc/build/html einfo "An initial build of docs is absent of references to statsmodels" einfo "due to circular dependency. To have them included, emerge" einfo "statsmodels next and re-emerge pandas with USE doc" fi use examples && local EXAMPLES=( examples/. ) distutils-r1_python_install_all } pkg_postinst() { local x elog "Please install" for x in ${EXTRA_DEPEND}; do optfeature "additional functionality" "${x%%[*}" done }