diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-04-12 03:41:30 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-04-12 03:41:30 +0100 |
commit | 623ee73d661e5ed8475cb264511f683407d87365 (patch) | |
tree | 993eb27c93ec7a2d2d19550300d888fc1fed9e69 /sci-libs/hdf5 | |
parent | ceeeb463cc1eef97fd62eaee8bf2196ba04bc384 (diff) |
gentoo Easter resync : 12.04.2020
Diffstat (limited to 'sci-libs/hdf5')
-rw-r--r-- | sci-libs/hdf5/Manifest | 5 | ||||
-rw-r--r-- | sci-libs/hdf5/hdf5-1.10.5-r1.ebuild | 106 | ||||
-rw-r--r-- | sci-libs/hdf5/hdf5-1.10.5.ebuild | 2 | ||||
-rw-r--r-- | sci-libs/hdf5/metadata.xml | 1 |
4 files changed, 111 insertions, 3 deletions
diff --git a/sci-libs/hdf5/Manifest b/sci-libs/hdf5/Manifest index b90c616a1e9d..21a614534847 100644 --- a/sci-libs/hdf5/Manifest +++ b/sci-libs/hdf5/Manifest @@ -2,5 +2,6 @@ AUX hdf5-1.8.13-no-messing-ldpath.patch 1141 BLAKE2B d7d186e4c00acb9fd3d44beb1d8 AUX hdf5-1.8.9-mpicxx.patch 494 BLAKE2B 148d87af064e2ba28c918c8db39ece0782a179803e4c38c5cd5eaba81a673bb8aa3699a48e80a7ae2d4579ac0261cc21d5509e46661ada9a69f444a58eb45ecd SHA512 8b4c39e40591860652547ea8ff205230da7d67488233e911cbcb3416eab561f2529c65bc5e7c9c812bf4298812346f47f9209e5f69f7e8f66ad587306a5b477b AUX hdf5-1.8.9-static_libgfortran.patch 429 BLAKE2B 9e1c544a453c09b3498a7d9d3e8090c928571776934c4dd6b426cbdb2783ed8f47185d6ee0c73ede6b4f14e27459ef5e1412112e9d897daa2dc57f1ad5fb0b24 SHA512 af97c54469a90bf3b0e8ec1218d4ca95822ac0cbc7120114979fc467fe3114743c74f4d4e16f0c10b1cd82d40880ef482f6fd34e1effc7c621b981ad466204f9 DIST hdf5-1.10.5.tar.bz2 8706317 BLAKE2B ac326be8fe4ccc4b0153f15bc7d65aa8f1adc2ae279d3980f57ed46722b754d3f36ecf1d6273c75e80ed1afd4bbf10c6b1c5d9408e1f83a4b2e397e7902a7d3c SHA512 769e43b8672e26fe24ed68da0228c010d3d9bc950ca09f0bc60707911a2f26f2f8415c8abc8ec06e07667148d8cdb3b0c7b3e7860d9b19739629c5dfd5ce73d4 -EBUILD hdf5-1.10.5.ebuild 2709 BLAKE2B b3974b7cfd328cc64d98e74e12eddc18e13808638f0c3603cd67143f358b7b1bffd5d3650364b1d625540f6aa5ca7e4d07f9b4772850e68f887a684521dae497 SHA512 9cb39c28298661733a37691c06c9cb6f5e1712bdabeb97b7f68aadf23aee3b338c54960b49ddfef966ff2d077c06596d73184f909ccbb0b99be230497ef1c2e5 -MISC metadata.xml 670 BLAKE2B 6ec39c2c545ea8130677894921b6914d4503199a40f5498b81f1520312a451585276a2192ecb388323574bf0a17acfe798d090bf499f8ef2b6bb7ff831c662ba SHA512 2cbdee7294537d76bee9c72c77c36d0d2aab176dd4588a7b99d16bc3a421b52770bf6d93943c13fb32674f5deb7bbebb94b9e18875b3e473395a9176277fd56a +EBUILD hdf5-1.10.5-r1.ebuild 2811 BLAKE2B 1b8e555034e149f38a15046bdf4e4dbf8a5ce50093852db1dc0fe5fab512b301b887c3c1eccef1043f221f7589eec2b99cfff15ea4114822c671e8cff9a81ab5 SHA512 16468635badb6f81b09215e38739975fa2e99a89f63a7e39bc616228a0d92a5828b957187aa97da99781f67d98db646d964a72e521bf184b25d852fcc567a62c +EBUILD hdf5-1.10.5.ebuild 2710 BLAKE2B 44d9392549ae2f6ac7e8c39fd42c8b7706c9fc626de94f79b695c9f04fa097330176253f2d7a0695daedd8bdd7c86ee6cbcfa3223490307139f86ed0e19aacb6 SHA512 40b10877a1ace67993de99e0748a5af315f8e0bda6bc539108cbef8a6ecdf4b01306f5d3b0150b6b4773be7bf8b0d82758d612cd3c8637d62c7c81f284f47db1 +MISC metadata.xml 763 BLAKE2B df2fb5f7f3aaa55b77b51d1e874cc4e58dc81d4c9fcc713f01bcd5d197b33d3ea0e300849432255d068b585b129dd0bc75310ea6ebe6d987688a2c621fd8fa75 SHA512 303724cfdf46efa4864e58bb645398472e801d1a22b083947e52aecbf28c7e5c0e16d5752d12927f02874d24270ea64220c42ec75d04d15c014f396523c2b19d diff --git a/sci-libs/hdf5/hdf5-1.10.5-r1.ebuild b/sci-libs/hdf5/hdf5-1.10.5-r1.ebuild new file mode 100644 index 000000000000..ef906aa6eefc --- /dev/null +++ b/sci-libs/hdf5/hdf5-1.10.5-r1.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +FORTRAN_NEEDED="fortran" + +inherit autotools eutils fortran-2 flag-o-matic toolchain-funcs multilib prefix + +MY_P="${PN}-${PV/_p/-patch}" +MAJOR_P="${PN}-$(ver_cut 1-2)" + +DESCRIPTION="General purpose library and file format for storing scientific data" +HOMEPAGE="http://www.hdfgroup.org/HDF5/" +SRC_URI="http://www.hdfgroup.org/ftp/HDF5/releases/${MAJOR_P}/${MY_P}/src/${MY_P}.tar.bz2" + +LICENSE="NCSA-HDF" +SLOT="0/${PV%%_p*}" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="cxx debug examples fortran +hl mpi szip threads unsupported zlib" + +REQUIRED_USE=" + !unsupported? ( + ?? ( cxx mpi ) + threads? ( !cxx !mpi !fortran !hl ) + )" +RDEPEND=" + mpi? ( virtual/mpi[romio] ) + szip? ( virtual/szip ) + zlib? ( sys-libs/zlib:0= ) +" +DEPEND="${RDEPEND} + sys-devel/libtool:2 + >=sys-devel/autoconf-2.69 +" +S="${WORKDIR}/${MY_P}" + +PATCHES=( + "${FILESDIR}/${PN}-1.8.9-static_libgfortran.patch" + "${FILESDIR}/${PN}-1.8.9-mpicxx.patch" + "${FILESDIR}/${PN}-1.8.13-no-messing-ldpath.patch" +) + +pkg_setup() { + tc-export CXX CC AR # workaround for bug 285148 + use fortran && fortran-2_pkg_setup + + if use mpi; then + if has_version 'sci-libs/hdf5[-mpi]'; then + ewarn "Installing hdf5 with mpi enabled with a previous hdf5 with mpi disabled may fail." + ewarn "Try to uninstall the current hdf5 prior to enabling mpi support." + fi + export CC="mpicc" + use fortran && export FC="mpif90" + append-ldflags -lmpi + elif has_version 'sci-libs/hdf5[mpi]'; then + ewarn "Installing hdf5 with mpi disabled while having hdf5 installed with mpi enabled may fail." + ewarn "Try to uninstall the current hdf5 prior to disabling mpi support." + fi +} + +src_prepare() { + # respect gentoo examples directory + sed \ + -e "s:hdf5_examples:doc/${PF}/examples:g" \ + -i $(find . -name Makefile.am) $(find . -name "run*.sh.in") || die + sed \ + -e '/docdir/d' \ + -i config/commence.am || die + if ! use examples; then + sed -e '/^install:/ s/install-examples//' \ + -i Makefile.am || die #409091 + fi + # enable shared libs by default for h5cc config utility + sed -i -e "s/SHLIB:-no/SHLIB:-yes/g" tools/src/misc/h5cc.in || die + hprefixify m4/libtool.m4 + + default + eautomake +} + +src_configure() { + local myconf=( + --disable-static + --enable-deprecated-symbols + --enable-build-mode=$(usex debug debug production) + $(use_enable cxx) + $(use_enable debug codestack) + $(use_enable fortran) + $(use_enable hl) + $(use_enable mpi parallel) + $(use_enable threads threadsafe) + $(use_enable unsupported) + $(use_with szip szlib) + $(use_with threads pthread) + $(use_with zlib) + ) + econf "${myconf[@]}" +} + +src_install() { + default + + # no static archives + find "${D}" -name '*.la' -delete || die +} diff --git a/sci-libs/hdf5/hdf5-1.10.5.ebuild b/sci-libs/hdf5/hdf5-1.10.5.ebuild index f755fd989570..d812cce90d46 100644 --- a/sci-libs/hdf5/hdf5-1.10.5.ebuild +++ b/sci-libs/hdf5/hdf5-1.10.5.ebuild @@ -16,7 +16,7 @@ SRC_URI="http://www.hdfgroup.org/ftp/HDF5/releases/${MAJOR_P}/${MY_P}/src/${MY_P LICENSE="NCSA-HDF" SLOT="0/${PV%%_p*}" -KEYWORDS="~alpha amd64 ~arm arm64 ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux" +KEYWORDS="~alpha amd64 ~arm arm64 ~ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux" IUSE="cxx debug examples fortran +hl mpi szip threads zlib" REQUIRED_USE=" diff --git a/sci-libs/hdf5/metadata.xml b/sci-libs/hdf5/metadata.xml index 040542a30ae7..2fa4f45de1bb 100644 --- a/sci-libs/hdf5/metadata.xml +++ b/sci-libs/hdf5/metadata.xml @@ -13,5 +13,6 @@ </longdescription> <use> <flag name="hl">Enable high level API (https://support.hdfgroup.org/HDF5/doc/HL/index.html)</flag> + <flag name="unsupported">Enable unsupported combinations of configuration options</flag> </use> </pkgmetadata> |