1 |
commit: 49aa89d2a6c9ebc6c939a985b271e30724e68815 |
2 |
Author: Benda Xu <heroxbd <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 31 03:24:21 2019 +0000 |
4 |
Commit: Benda XU <heroxbd <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 31 03:24:21 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49aa89d2 |
7 |
|
8 |
sci-libs/hdf5: bump to 1.10.5 and EAPI 7. |
9 |
|
10 |
Suggested-By: Fabio Rossi, Bernd |
11 |
Bug: https://bugs.gentoo.org/661158 |
12 |
Closes: https://bugs.gentoo.org/674998 |
13 |
Package-Manager: Portage-2.3.52, Repoman-2.3.12 |
14 |
Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org> |
15 |
|
16 |
sci-libs/hdf5/Manifest | 1 + |
17 |
sci-libs/hdf5/hdf5-1.10.5.ebuild | 93 ++++++++++++++++++++++++++++++++++++++++ |
18 |
2 files changed, 94 insertions(+) |
19 |
|
20 |
diff --git a/sci-libs/hdf5/Manifest b/sci-libs/hdf5/Manifest |
21 |
index 7ec5335c9d8..e8b5dd2438c 100644 |
22 |
--- a/sci-libs/hdf5/Manifest |
23 |
+++ b/sci-libs/hdf5/Manifest |
24 |
@@ -1,2 +1,3 @@ |
25 |
DIST hdf5-1.10.1.tar.bz2 11769617 BLAKE2B 66ad762aed90cea9e58a9735bf0e189d78befc40cac0e566586e967f2b3ba6f5bf8a6bfd12a2f4062f8b20900c16d467c34134c17dedfd8f345cb96bd853a2fe SHA512 266b0e2f28c5fd540099a4955244ddb8c03aca3ad40d626358643f033a6ae5e9266a1d6c1d60925c7d42d24d28a1549d3305fe8ddb42cec2379af7231b93e554 |
26 |
+DIST hdf5-1.10.5.tar.bz2 8706317 BLAKE2B ac326be8fe4ccc4b0153f15bc7d65aa8f1adc2ae279d3980f57ed46722b754d3f36ecf1d6273c75e80ed1afd4bbf10c6b1c5d9408e1f83a4b2e397e7902a7d3c SHA512 769e43b8672e26fe24ed68da0228c010d3d9bc950ca09f0bc60707911a2f26f2f8415c8abc8ec06e07667148d8cdb3b0c7b3e7860d9b19739629c5dfd5ce73d4 |
27 |
DIST hdf5-1.8.18.tar.bz2 10081294 BLAKE2B cf0d0c8a41576bcf816460eaabcfab29cfffba240721a64fe584c42fbb322470f29fb93c8513f7bbdedeeb392c2fe64cd3261b47b47de5b01828dae0b1929cd3 SHA512 01f6d14bdd3be2ced9c63cc9e1820cd7ea11db649ff9f3a3055c18c4b0fffe777fd23baad536e3bce31c4d76fe17db64a3972762e1bb4d232927c1ca140e72b2 |
28 |
|
29 |
diff --git a/sci-libs/hdf5/hdf5-1.10.5.ebuild b/sci-libs/hdf5/hdf5-1.10.5.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..1e8158a6d6b |
32 |
--- /dev/null |
33 |
+++ b/sci-libs/hdf5/hdf5-1.10.5.ebuild |
34 |
@@ -0,0 +1,93 @@ |
35 |
+# Copyright 1999-2019 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=7 |
39 |
+ |
40 |
+FORTRAN_NEEDED=fortran |
41 |
+ |
42 |
+inherit autotools eutils fortran-2 flag-o-matic toolchain-funcs multilib prefix |
43 |
+ |
44 |
+MY_P=${PN}-${PV/_p/-patch} |
45 |
+MAJOR_P=${PN}-$(ver_cut 1-2) |
46 |
+ |
47 |
+DESCRIPTION="General purpose library and file format for storing scientific data" |
48 |
+HOMEPAGE="http://www.hdfgroup.org/HDF5/" |
49 |
+SRC_URI="http://www.hdfgroup.org/ftp/HDF5/releases/${MAJOR_P}/${MY_P}/src/${MY_P}.tar.bz2" |
50 |
+ |
51 |
+LICENSE="NCSA-HDF" |
52 |
+SLOT="0/${PV%%_p*}" |
53 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" |
54 |
+IUSE="cxx debug examples fortran +hl mpi static-libs szip threads zlib" |
55 |
+ |
56 |
+REQUIRED_USE=" |
57 |
+ cxx? ( !mpi ) mpi? ( !cxx ) |
58 |
+ threads? ( !cxx !mpi !fortran !hl )" |
59 |
+ |
60 |
+RDEPEND=" |
61 |
+ mpi? ( virtual/mpi[romio] ) |
62 |
+ szip? ( virtual/szip ) |
63 |
+ zlib? ( sys-libs/zlib:0= )" |
64 |
+ |
65 |
+DEPEND="${RDEPEND} |
66 |
+ sys-devel/libtool:2 |
67 |
+ >=sys-devel/autoconf-2.69" |
68 |
+ |
69 |
+S="${WORKDIR}/${MY_P}" |
70 |
+ |
71 |
+PATCHES=( |
72 |
+ "${FILESDIR}"/${PN}-1.8.9-static_libgfortran.patch |
73 |
+ "${FILESDIR}"/${PN}-1.8.9-mpicxx.patch |
74 |
+ "${FILESDIR}"/${PN}-1.8.13-no-messing-ldpath.patch |
75 |
+) |
76 |
+ |
77 |
+pkg_setup() { |
78 |
+ tc-export CXX CC AR # workaround for bug 285148 |
79 |
+ use fortran && fortran-2_pkg_setup |
80 |
+ |
81 |
+ if use mpi; then |
82 |
+ if has_version 'sci-libs/hdf5[-mpi]'; then |
83 |
+ ewarn "Installing hdf5 with mpi enabled with a previous hdf5 with mpi disabled may fail." |
84 |
+ ewarn "Try to uninstall the current hdf5 prior to enabling mpi support." |
85 |
+ fi |
86 |
+ export CC=mpicc |
87 |
+ use fortran && export FC=mpif90 |
88 |
+ elif has_version 'sci-libs/hdf5[mpi]'; then |
89 |
+ ewarn "Installing hdf5 with mpi disabled while having hdf5 installed with mpi enabled may fail." |
90 |
+ ewarn "Try to uninstall the current hdf5 prior to disabling mpi support." |
91 |
+ fi |
92 |
+} |
93 |
+ |
94 |
+src_prepare() { |
95 |
+ # respect gentoo examples directory |
96 |
+ sed \ |
97 |
+ -e "s:hdf5_examples:doc/${PF}/examples:g" \ |
98 |
+ -i $(find . -name Makefile.am) $(find . -name "run*.sh.in") || die |
99 |
+ sed \ |
100 |
+ -e '/docdir/d' \ |
101 |
+ -i config/commence.am || die |
102 |
+ if ! use examples; then |
103 |
+ sed -e '/^install:/ s/install-examples//' \ |
104 |
+ -i Makefile.am || die #409091 |
105 |
+ fi |
106 |
+ # enable shared libs by default for h5cc config utility |
107 |
+ sed -i -e "s/SHLIB:-no/SHLIB:-yes/g" tools/src/misc/h5cc.in || die |
108 |
+ hprefixify m4/libtool.m4 |
109 |
+ |
110 |
+ default |
111 |
+ eautomake |
112 |
+} |
113 |
+ |
114 |
+src_configure() { |
115 |
+ econf \ |
116 |
+ --enable-deprecated-symbols \ |
117 |
+ $(use debug && echo --enable-build-mode=debug || echo --enable-build-mode=production) \ |
118 |
+ $(use_enable debug codestack) \ |
119 |
+ $(use_enable cxx) \ |
120 |
+ $(use_enable fortran) \ |
121 |
+ $(use_enable hl) \ |
122 |
+ $(use_enable mpi parallel) \ |
123 |
+ $(use_enable threads threadsafe) \ |
124 |
+ $(use_with szip szlib) \ |
125 |
+ $(use_with threads pthread) \ |
126 |
+ $(use_with zlib) |
127 |
+} |