From: Sébastien Fabbro Date: Sun, 26 Feb 2017 16:16:44 +0000 (+0000) Subject: dev-python/regions: version bump X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5ed035aafc5c2aab74beb6edede9c1cf155f4380;p=gentoo.git dev-python/regions: version bump Package-Manager: Portage-2.3.3, Repoman-2.3.1 --- diff --git a/dev-python/regions/Manifest b/dev-python/regions/Manifest index 17762f6282ba..82a3d8bad008 100644 --- a/dev-python/regions/Manifest +++ b/dev-python/regions/Manifest @@ -1 +1,2 @@ DIST regions-0.1.tar.gz 230345 SHA256 1a2d25abecb95b953b168d335d3b3dab30b9018937333a6d4d70c97650ccad2e SHA512 9d313c4fa871537881ba3c7185656460012adc8d7725b3070aeb81459eb6f1fc02f7279a7ff78ef3faeb61e95bce7dd409d5a5800848483f9eae1c5262e47593 WHIRLPOOL 678671681fdef5d9adc947981b304eb071d4313b2768259727288ba1f667306ba7bf22dce64fec6365eb5698035211192c041ab6c9c45b7691d8ad3b4011ff3c +DIST regions-0.2.tar.gz 535230 SHA256 980b8091d935484dde5907ff1631f624c5c0b99f5c1790c6c7879bb1f4d51009 SHA512 1970e55a834057ca7d5ea9e29769e71f4287d184f2576cd03ed810df8381517145fb157f2585dadab483312e2d66dca295f7aea10ca5a65367c3a95726331b19 WHIRLPOOL 06a47176dff8dbbdd32e2b8cd77e2b78f7089e828d1b5184c1e5401f6f13d0c66b81109fe564df29b2ae2039736ee963dec35c21234b66b1848a0f4e3ae193b7 diff --git a/dev-python/regions/regions-0.2.ebuild b/dev-python/regions/regions-0.2.ebuild new file mode 100644 index 000000000000..33f3297e1291 --- /dev/null +++ b/dev-python/regions/regions-0.2.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_4,3_5} ) +inherit distutils-r1 virtualx xdg-utils + +DESCRIPTION="Astropy affiliated package for region handling" +HOMEPAGE="http://astropy-regions.readthedocs.org/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +LICENSE="BSD" + +IUSE="doc test" +RDEPEND="dev-python/astropy[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/astropy-helpers[${PYTHON_USEDEP}] + doc? ( + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] + dev-python/wcsaxes[${PYTHON_USEDEP}] ) + test? ( + dev-python/pytest-mpl[${PYTHON_USEDEP}] + dev-python/pytest-arraydiff[${PYTHON_USEDEP}] + dev-python/wcsaxes[${PYTHON_USEDEP}] + sci-libs/scipy[${PYTHON_USEDEP}] )" + +python_prepare_all() { + # use astropy-helpers from system + sed -i -e '/auto_use/s/True/False/' setup.cfg || die + xdg_environment_reset + distutils-r1_python_prepare_all +} + +python_compile_all() { + if use doc; then + python_setup + VARTEXFONTS="${T}"/fonts \ + MPLCONFIGDIR="${BUILD_DIR}" \ + PYTHONPATH="${BUILD_DIR}"/lib \ + esetup.py build_sphinx --no-intersphinx + fi +} + +python_test() { + echo 'backend: Agg' > ${WORKDIR}/matplotlibrc || die + export MATPLOTLIBRC=${WORKDIR} + virtx esetup.py test +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/_build/html/. ) + distutils-r1_python_install_all +}