summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Fabbro <bicatali@gentoo.org>2016-04-29 21:03:27 +0000
committerSébastien Fabbro <bicatali@gentoo.org>2016-04-29 21:47:35 +0000
commiteaf9289b58c3ce73fcd334e0b4d9efa1009f2774 (patch)
tree4e60d061c214481a99ce384f0d0e5a7be3b3a652 /dev-python/gammapy
parentnet-dns/unbound: drop old version (diff)
downloadgentoo-eaf9289b58c3ce73fcd334e0b4d9efa1009f2774.tar.gz
gentoo-eaf9289b58c3ce73fcd334e0b4d9efa1009f2774.tar.bz2
gentoo-eaf9289b58c3ce73fcd334e0b4d9efa1009f2774.zip
dev-python/gammapy: Version bump
Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-python/gammapy')
-rw-r--r--dev-python/gammapy/Manifest1
-rw-r--r--dev-python/gammapy/gammapy-0.4.ebuild52
2 files changed, 53 insertions, 0 deletions
diff --git a/dev-python/gammapy/Manifest b/dev-python/gammapy/Manifest
index 96e2b7c2cf12..80bdf5f7bdb9 100644
--- a/dev-python/gammapy/Manifest
+++ b/dev-python/gammapy/Manifest
@@ -1 +1,2 @@
DIST gammapy-0.3.tar.gz 1108360 SHA256 49d56320c34d6d0d16d2f847cbb3a538a81b1bcefdb851e163ae02ceb24205de SHA512 95a37e54c8e4fdcae52ac96185587a881d610269a26f595a08ccf92310678b6c81b2bae65a063907af773cf4bfe1a74ffa07314f879f818268f91762e2c55614 WHIRLPOOL 513e05873c5cef1fd83ca3aa8d6f3ccca3500be6d27512fa35692d41d716d675f6ce0ba284aec4d595004cefaf863d6ed238892d067bc692de013dc99fa7c4dd
+DIST gammapy-0.4.tar.gz 933018 SHA256 370c98b1078a19e4ac9721b807ea62a32c1f9ac323fd738b3b1d43cceccae2a3 SHA512 d44e24faddbb7064c5f222e3cb59d9d4442a128dca84bb8e8e63ac4dffe6fc3be573e4252ef2a052e2e07b51efa1151639296aa8d7785437992aab0be4986155 WHIRLPOOL 73040d13ccc1a00f6a817b01ec0c0a0a103e480ae348588410bfb578383252381cfba81abe8d0578caa2ec02d7a07699c8b0c81079ae2d1b3b33d2619c123830
diff --git a/dev-python/gammapy/gammapy-0.4.ebuild b/dev-python/gammapy/gammapy-0.4.ebuild
new file mode 100644
index 000000000000..a220b30b0729
--- /dev/null
+++ b/dev-python/gammapy/gammapy-0.4.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 eutils virtualx
+
+DESCRIPTION="Python package for gamma-ray astronomy"
+HOMEPAGE="https://gammapy.readthedocs.org/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${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}] )
+ 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 --no-intersphinx
+ fi
+}
+
+python_test() {
+ virtx esetup.py test
+}
+
+python_install_all() {
+ use doc && local HTML_DOCS=( docs/_build/html/. )
+ distutils-r1_python_install_all
+}