Gentoo Archives: gentoo-commits

From: Nicolas Bock <nicolasbock@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/h5py/
Date: Thu, 01 Mar 2018 19:04:36
Message-Id: 1519931056.c1490190ecc8806ea50ec353782c4b57e4162d1c.nicolasbock@gentoo
1 commit: c1490190ecc8806ea50ec353782c4b57e4162d1c
2 Author: Nicolas Bock <nicolasbock <AT> gentoo <DOT> org>
3 AuthorDate: Thu Mar 1 19:03:48 2018 +0000
4 Commit: Nicolas Bock <nicolasbock <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 1 19:04:16 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1490190
7
8 dev-python/h5py: Version bump to 2.7.1
9
10 Closes: https://bugs.gentoo.org/649036
11 Package-Manager: Portage-2.3.19, Repoman-2.3.6
12
13 dev-python/h5py/Manifest | 1 +
14 dev-python/h5py/h5py-2.7.1.ebuild | 66 +++++++++++++++++++++++++++++++++++++++
15 2 files changed, 67 insertions(+)
16
17 diff --git a/dev-python/h5py/Manifest b/dev-python/h5py/Manifest
18 index a52869c7e6b..4a6a12e9117 100644
19 --- a/dev-python/h5py/Manifest
20 +++ b/dev-python/h5py/Manifest
21 @@ -1 +1,2 @@
22 DIST h5py-2.7.0.tar.gz 256471 BLAKE2B c232eb86d00b9d1bb76903ea04bfd384bae7c9eb7b301de6aa450a46918f69132ab8d8d5a3f9b54095feee436a8aa9e9045c27ca1a120d665d6031c14218f0f5 SHA512 7c1e5d8b47c176521f5f62cfc4f782c09a0e003c5cbc07a673ccc3dfbe97df930b33801ef7311360892e3fad1d7d72561a8578aed9cb630d44e1a73543bb5da4
23 +DIST h5py-2.7.1.tar.gz 264225 BLAKE2B ffb0b52127f6cb9634b5ac3266a36bc0003144d302bdc300fff5f6f33e52b5a12e954cc2ef9fdfe9dfa0eddc810b30ee3f556cab2a31338500db666b87e64ddc SHA512 b702e3875c2767d2fabe66601820c517671fb5fc3321334aba081950b625435a1262554f39187cd1b41c6069e2b3826db6f0b610bfed2abe5db8a4dd8a29ecfd
24
25 diff --git a/dev-python/h5py/h5py-2.7.1.ebuild b/dev-python/h5py/h5py-2.7.1.ebuild
26 new file mode 100644
27 index 00000000000..30bee0302c8
28 --- /dev/null
29 +++ b/dev-python/h5py/h5py-2.7.1.ebuild
30 @@ -0,0 +1,66 @@
31 +# Copyright 1999-2018 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +
36 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
37 +
38 +inherit distutils-r1 flag-o-matic
39 +
40 +DESCRIPTION="Simple Python interface to HDF5 files"
41 +HOMEPAGE="http://www.h5py.org/"
42 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
43 +
44 +LICENSE="BSD"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
47 +IUSE="doc test examples mpi"
48 +
49 +RDEPEND="
50 + sci-libs/hdf5:=[mpi=,hl(+)]
51 + dev-python/numpy[${PYTHON_USEDEP}]
52 + dev-python/six[${PYTHON_USEDEP}]"
53 +
54 +DEPEND="
55 + ${RDEPEND}
56 + dev-python/cython[${PYTHON_USEDEP}]
57 + dev-python/pkgconfig[${PYTHON_USEDEP}]
58 + dev-python/setuptools[${PYTHON_USEDEP}]
59 + doc? (
60 + dev-python/alabaster[${PYTHON_USEDEP}]
61 + >=dev-python/sphinx-1.3.1[${PYTHON_USEDEP}]
62 + )
63 + mpi? ( dev-python/mpi4py[${PYTHON_USEDEP}] )"
64 +
65 +pkg_setup() {
66 + use mpi && export CC=mpicc
67 +}
68 +
69 +python_prepare_all() {
70 + append-cflags -fno-strict-aliasing
71 + distutils-r1_python_prepare_all
72 +}
73 +
74 +python_configure() {
75 + esetup.py configure $(usex mpi --mpi '')
76 +}
77 +
78 +python_compile_all() {
79 + if use doc; then
80 + cd "${S}"/docs || die
81 + sed '/html_theme/s:default:alabaster:g' -i conf.py || die
82 + emake html
83 + fi
84 +}
85 +
86 +python_test() {
87 + esetup.py test
88 +}
89 +
90 +python_install_all() {
91 + DOCS=( README.rst ANN.rst )
92 + use doc && HTML_DOCS=( docs/_build/html/. )
93 + use examples && DOCS+=( examples )
94 +
95 + distutils-r1_python_install_all
96 +}