commit:     e8827415e767b1252f3851edef8e000980b7f2a1
Author:     Christoph Junghans <junghans <AT> gentoo <DOT> org>
AuthorDate: Sun Jul  2 23:43:38 2017 +0000
Commit:     Christoph Junghans <junghans <AT> gentoo <DOT> org>
CommitDate: Sun Jul  2 23:44:12 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8827415

sci-libs/h5hut: initial commit

Package-Manager: Portage-2.3.6, Repoman-2.3.1

 sci-libs/h5hut/Manifest                            |  1 +
 sci-libs/h5hut/files/h5hut-1.99.13-autotools.patch | 77 ++++++++++++++++++++++
 sci-libs/h5hut/files/h5hut-1.99.13-mpio.patch      | 12 ++++
 sci-libs/h5hut/h5hut-1.99.13.ebuild                | 38 +++++++++++
 sci-libs/h5hut/metadata.xml                        | 12 ++++
 5 files changed, 140 insertions(+)

diff --git a/sci-libs/h5hut/Manifest b/sci-libs/h5hut/Manifest
new file mode 100644
index 00000000000..bd6882ad267
--- /dev/null
+++ b/sci-libs/h5hut/Manifest
@@ -0,0 +1 @@
+DIST H5hut-1.99.13.tar.gz 3029357 SHA256 
3dc76e00a0cbce718dfde3a59955fa6b69148bfbaac3a500d4a6799db24880c5 SHA512 
c2590795c45ecf5e642308f5b36c4e573fdcbb6e985f5867c13fd9e1f0ddd9b48fbc423ad0165b8f047256e42a1eb54d508c9322a593bcfad3a2769547d2887a
 WHIRLPOOL 
a4d2f0aa8715010968605e260319a5502bbbaa1df9770100292065af5c2283108a7a3ff397c65595e6b68b1111f8f40715964d6efd1f7f5646734cfa22aeb8d6

diff --git a/sci-libs/h5hut/files/h5hut-1.99.13-autotools.patch 
b/sci-libs/h5hut/files/h5hut-1.99.13-autotools.patch
new file mode 100644
index 00000000000..262aa61461a
--- /dev/null
+++ b/sci-libs/h5hut/files/h5hut-1.99.13-autotools.patch
@@ -0,0 +1,77 @@
+diff -Naur H5hut-1.99.13.orig/src/Fortran/Makefile.am 
H5hut-1.99.13/src/Fortran/Makefile.am
+--- H5hut-1.99.13.orig/src/Fortran/Makefile.am 2017-07-02 16:46:44.899690038 
-0600
++++ H5hut-1.99.13/src/Fortran/Makefile.am      2017-07-02 16:53:46.414587073 
-0600
+@@ -49,9 +49,6 @@
+       awk '/INTEGER\*8 :: /{print "\t" $$0}' $^ >$@
+       awk '/PARAMETER /{print "\t" $$0}' $^ >> $@
+       awk '/INTEGER\*8 FUNCTION/{print "\t" $$1 " " $$3}' $^ >>$@
+-
+-all-local: $(top_srcdir)/src/include/H5hutF.h
+-      $(INSTALL) -m644 .libs/libH5hutF.a $(top_srcdir)/src/lib
+ endif
+ 
+ clean: clean-am
+diff -Naur H5hut-1.99.13.orig/src/h5core/Makefile.am 
H5hut-1.99.13/src/h5core/Makefile.am
+--- H5hut-1.99.13.orig/src/h5core/Makefile.am  2017-07-02 16:46:44.899690038 
-0600
++++ H5hut-1.99.13/src/h5core/Makefile.am       2017-07-02 16:58:03.017839542 
-0600
+@@ -89,15 +89,10 @@
+ 
+ libH5hut_la_LDFLAGS = -version-info 2:0:0
+ 
+-all-local:
+-      $(INSTALL) -m0755 -d $(top_builddir)/src/lib
+-      $(INSTALL) -m644 .libs/libH5hut.a $(top_builddir)/src/lib
+-
+ install-exec-local:
+       @$(INSTALL) -d $(DESTDIR)$(includedir)/h5core
+       @$(INSTALL) -m644 $(top_srcdir)/src/include/h5core/*.h 
$(DESTDIR)$(includedir)/h5core/
+ 
+ clean-local:
+-      $(RM) -f $(top_srcdir)/src/lib/libH5hut.*
+       $(RM) -f *~
+ 
+diff -Naur H5hut-1.99.13.orig/test/Makefile.am H5hut-1.99.13/test/Makefile.am
+--- H5hut-1.99.13.orig/test/Makefile.am        2017-07-02 16:46:44.919690283 
-0600
++++ H5hut-1.99.13/test/Makefile.am     2017-07-02 16:58:01.297818301 -0600
+@@ -1,10 +1,9 @@
+ # test level Makefile.am
+ 
+ AM_CPPFLAGS += -I$(top_srcdir)/src/include
+-AM_LDFLAGS += -L${abs_top_builddir}/src/lib
+ 
+ LDADD =
+-LDADD += -lH5hut
++LDADD += ../src/h5core/libH5hut.la
+ 
+ noinst_PROGRAMS =
+ 
+diff -Naur H5hut-1.99.13.orig/tools/Makefile.am H5hut-1.99.13/tools/Makefile.am
+--- H5hut-1.99.13.orig/tools/Makefile.am       2017-07-02 16:46:44.919690283 
-0600
++++ H5hut-1.99.13/tools/Makefile.am    2017-07-02 16:59:30.228916458 -0600
+@@ -8,10 +8,9 @@
+ 
+ AM_CPPFLAGS += -I${abs_top_builddir}/src/include -Wno-deprecated
+ FFLAGS += -cpp $(AM_CPPFLAGS)
+-AM_LDFLAGS += -L${abs_top_builddir}/src/lib
+ 
+ LDADD =
+-LDADD += -lH5hut
++LDADD += ../src/h5core/libH5hut.la
+ 
+ if ENABLE_C
+ EXTRA_SCRIPTS = # h5hutcc
+diff -Naur H5hut-1.99.13.orig/tools/vtk2h5grid/Makefile.am 
H5hut-1.99.13/tools/vtk2h5grid/Makefile.am
+--- H5hut-1.99.13.orig/tools/vtk2h5grid/Makefile.am    2017-07-02 
16:46:44.919690283 -0600
++++ H5hut-1.99.13/tools/vtk2h5grid/Makefile.am 2017-07-02 16:58:58.978530564 
-0600
+@@ -1,10 +1,9 @@
+ AM_CPPFLAGS = -I${abs_top_srcdir}/src/include -Wno-deprecated
+ FFLAGS += -cpp $(AM_CPPFLAGS)
+-LDFLAGS += -L${abs_top_builddir}/src/lib
+ 
+ LDADD = 
+ 
+-LDADD += -lH5hut -lvtkIO -lvtkFiltering -lvtkCommon -lvtksys -lpthread -ldl
++LDADD += ../src/h5core/libH5hut.la -lvtkIO -lvtkFiltering -lvtkCommon 
-lvtksys -lpthread -ldl
+ 
+ 
+ bin_PROGRAMS = 

diff --git a/sci-libs/h5hut/files/h5hut-1.99.13-mpio.patch 
b/sci-libs/h5hut/files/h5hut-1.99.13-mpio.patch
new file mode 100644
index 00000000000..a94c8e59000
--- /dev/null
+++ b/sci-libs/h5hut/files/h5hut-1.99.13-mpio.patch
@@ -0,0 +1,12 @@
+diff -Naur H5hut-1.99.13.orig/src/h5core/h5_hdf5_private.h 
H5hut-1.99.13/src/h5core/h5_hdf5_private.h
+--- H5hut-1.99.13.orig/src/h5core/h5_hdf5_private.h    2017-07-02 
16:46:44.899690038 -0600
++++ H5hut-1.99.13/src/h5core/h5_hdf5_private.h 2017-07-02 16:47:16.550080867 
-0600
+@@ -934,7 +934,7 @@
+       HDF5_WRAPPER_ENTER (h5_err_t,
+                           "fapl_id=%d, comm=..., use_gpfs=%d",
+                           fapl_id, (int)use_gpfs);
+-      if ( H5Pset_fapl_mpiposix (fapl_id, comm, use_gpfs) < 0)
++      if ( H5Pset_fapl_mpio (fapl_id, comm, use_gpfs) < 0)
+               HDF5_WRAPPER_LEAVE (
+                       h5_error (
+                               H5_ERR_HDF5,

diff --git a/sci-libs/h5hut/h5hut-1.99.13.ebuild 
b/sci-libs/h5hut/h5hut-1.99.13.ebuild
new file mode 100644
index 00000000000..5eca8e34f1d
--- /dev/null
+++ b/sci-libs/h5hut/h5hut-1.99.13.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+MY_P="${P^h}"
+DESCRIPTION="High-Performance I/O Library for Particle-based Simulations"
+HOMEPAGE="http://www-vis.lbl.gov/Research/H5hut/";
+SRC_URI="https://amas.psi.ch/H5hut/raw-attachment/wiki/DownloadSources/${MY_P}.tar.gz";
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+       virtual/mpi
+       sci-libs/hdf5[mpi]
+       "
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+       "${FILESDIR}/${P}-mpio.patch"
+       "${FILESDIR}/${P}-autotools.patch"
+       )
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+       default
+       eautoreconf
+}
+
+src_configure() {
+       econf --enable-parallel --enable-shared --disable-static CC=mpicc 
CXX=mpicxx
+}

diff --git a/sci-libs/h5hut/metadata.xml b/sci-libs/h5hut/metadata.xml
new file mode 100644
index 00000000000..903883b48f1
--- /dev/null
+++ b/sci-libs/h5hut/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>jungh...@gentoo.org</email>
+               <name>Christoph Junghans</name>
+       </maintainer>
+       <maintainer type="project">
+               <email>s...@gentoo.org</email>
+               <name>Gentoo Science Project</name>
+       </maintainer>
+</pkgmetadata>

Reply via email to