Gentoo Archives: gentoo-commits

From: Sebastien Fabbro <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/naima/
Date: Thu, 29 Dec 2016 07:02:15
Message-Id: 1482994886.41e63563648e3b66212a57eb6c76077979dbe47d.bicatali@gentoo
1 commit: 41e63563648e3b66212a57eb6c76077979dbe47d
2 Author: S├ębastien Fabbro <bicatali <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 29 01:05:06 2016 +0000
4 Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 29 07:01:26 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41e63563
7
8 dev-python/naima: version bump
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 dev-python/naima/Manifest | 1 +
13 dev-python/naima/naima-0.8.ebuild | 59 +++++++++++++++++++++++++++++++++++++++
14 2 files changed, 60 insertions(+)
15
16 diff --git a/dev-python/naima/Manifest b/dev-python/naima/Manifest
17 index e79926f..80bc19e 100644
18 --- a/dev-python/naima/Manifest
19 +++ b/dev-python/naima/Manifest
20 @@ -1 +1,2 @@
21 DIST naima-0.7.1.tar.gz 4876886 SHA256 686b0c9ded61099bc0021a9ccd252004c7f56beca2ef32220e54ef8ca007f89a SHA512 c157be2bb3dfd9ebdedf757a401343f2ca7a338f210686e49119accd75a12fe5172dfa0859ed326d910e1dbb27a09f3f5f40ee8a87d4938a1267024d4f72caa7 WHIRLPOOL ce0dade3afb95a6f004de480f5713d6888d2eea817a0b09b1e9759a56fba8ef52b7c729c0a156f95aa866bc41b6bd004ad451fa5a748158ddfbf5c0bc2130bdd
22 +DIST naima-0.8.tar.gz 5485631 SHA256 9e2e4e8b4d1a64a213fd52fb681440f7c7b23e994bbde76f3c5b8926b46160af SHA512 38ac487ffaf3169f6e351ac1abb22244a90a872661627bd784ff0b37068e6155cc504756440db55b481e249fa8df97530e6074ff382d98e8d142aa5fa607f99d WHIRLPOOL d03bc8f98fd456ef609f344d584cf0b86d98701089310bf7554665595beda523597f56d9212f853780b660570605ad97801c99a97c60a616163eb854fe25f991
23
24 diff --git a/dev-python/naima/naima-0.8.ebuild b/dev-python/naima/naima-0.8.ebuild
25 new file mode 100644
26 index 00000000..6052c8e
27 --- /dev/null
28 +++ b/dev-python/naima/naima-0.8.ebuild
29 @@ -0,0 +1,59 @@
30 +# Copyright 1999-2016 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Id$
33 +
34 +EAPI=6
35 +
36 +PYTHON_COMPAT=( python{2_7,3_4,3_5} )
37 +
38 +inherit distutils-r1 eutils xdg-utils
39 +
40 +DESCRIPTION="Python package for gamma-ray astronomy"
41 +HOMEPAGE="http://naima.readthedocs.io/"
42 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
43 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
44 +
45 +LICENSE="BSD"
46 +SLOT="0"
47 +IUSE="doc test"
48 +DOCS=( README.rst )
49 +
50 +RDEPEND="
51 + dev-python/astropy[${PYTHON_USEDEP}]
52 + dev-python/emcee[${PYTHON_USEDEP}]
53 + >=dev-python/numpy-1.10[${PYTHON_USEDEP}]"
54 +
55 +DEPEND="${RDEPEND}
56 + dev-python/astropy-helpers[${PYTHON_USEDEP}]
57 + dev-python/setuptools[${PYTHON_USEDEP}]
58 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
59 + test? (
60 + dev-python/h5py[${PYTHON_USEDEP}]
61 + dev-python/pytest[${PYTHON_USEDEP}] )"
62 +
63 +DOCS=( README.rst CHANGES.rst )
64 +
65 +python_prepare_all() {
66 + sed -e '/auto_use/s/True/False/' -i setup.cfg || die
67 + xdg_environment_reset
68 + distutils-r1_python_prepare_all
69 +}
70 +
71 +python_compile_all() {
72 + if use doc; then
73 + python_setup
74 + VARTEXFONTS="${T}"/fonts \
75 + MPLCONFIGDIR="${BUILD_DIR}" \
76 + PYTHONPATH="${BUILD_DIR}"/lib \
77 + esetup.py build_sphinx --no-intersphinx
78 + fi
79 +}
80 +
81 +python_test() {
82 + esetup.py test
83 +}
84 +
85 +python_install_all() {
86 + use doc && local HTML_DOCS=( docs/_build/html/. )
87 + distutils-r1_python_install_all
88 +}