From 2638a7c9ff08bb39411c9b12c2bfc14d100def4e Mon Sep 17 00:00:00 2001 From: Sébastien Fabbro Date: Mon, 4 Apr 2016 19:15:37 +0000 Subject: dev-python/specutils: Version bump Package-Manager: portage-2.2.28 --- dev-python/specutils/Manifest | 1 + dev-python/specutils/specutils-0.2.ebuild | 52 +++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 dev-python/specutils/specutils-0.2.ebuild (limited to 'dev-python/specutils') diff --git a/dev-python/specutils/Manifest b/dev-python/specutils/Manifest index 74582b55b83b..f2d26c29ac6d 100644 --- a/dev-python/specutils/Manifest +++ b/dev-python/specutils/Manifest @@ -1 +1,2 @@ DIST specutils-0.1.tar.gz 3494885 SHA256 b7df818eb3e41ea01e00db1ac470e9c2f24adabfb131d57d53b4c792accea1cd SHA512 43e67c56d77bb06a1a96674755d843ba89d6da7b887f5fef8f2c190487c0a802631c9b782ca58b27216d449ee47353e9c0bf5a9cd73c2db4e5fb683f68a9c6c4 WHIRLPOOL 252ecab3688b26078e3b9da570c6ba5e7a137e7b5f9598074487ccec32f5c9ee7c3424afb5426c7a9b5ce6ed9d2a0825db3263882b43918a67bd24dfa05f03d1 +DIST specutils-0.2.tar.gz 3348219 SHA256 e232013a0615105b07a388be1a5faca2b26a71ee19dcf454508229188356df98 SHA512 ac05a795ddf3e690c7f5f7fe1a4b0340b546363ac132ce78bedc6ce364feb7418d896e18302ce391717cc507dbd37de210f5b6dfcfda2c44f9f8e0191619bace WHIRLPOOL 885e8060519842652d845a5afb69fecea5768ba00d7e05877e31349a546ad80b36a132fb0e4ca6ae82b8eb9a7c49dc5180baaf245051c62f3776c74f060f35ca diff --git a/dev-python/specutils/specutils-0.2.ebuild b/dev-python/specutils/specutils-0.2.ebuild new file mode 100644 index 000000000000..004433701606 --- /dev/null +++ b/dev-python/specutils/specutils-0.2.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2016 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 + +DESCRIPTION="Python package for astronomy spectral operations" +HOMEPAGE="https://specutils.readthedocs.org/" +SRC_URI="https://github.com/astropy/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" + +LICENSE="BSD" +SLOT="0" +IUSE="doc test" +DOCS=( README.rst ) + +RDEPEND=" + dev-python/astropy[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + dev-python/astropy-helpers[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/matplotlib[${PYTHON_USEDEP}] ) + test? ( dev-python/pytest[${PYTHON_USEDEP}] )" + +python_prepare_all() { + sed -i -e '/auto_use/s/True/False/' setup.cfg || die + 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 + fi +} + +python_test() { + esetup.py test +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/_build/html/ ) + distutils-r1_python_install_all +} -- cgit v1.2.3-65-gdbad