Date: Friday, May 12, 2023 @ 16:48:35
  Author: arojas
Revision: 1460115

archrelease: copy trunk to community-x86_64

Added:
  hdf5-openmpi/repos/community-x86_64/PKGBUILD
    (from rev 1460114, hdf5-openmpi/trunk/PKGBUILD)
Deleted:
  hdf5-openmpi/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |  211 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 106 insertions(+), 105 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2023-05-12 16:48:25 UTC (rev 1460114)
+++ PKGBUILD    2023-05-12 16:48:35 UTC (rev 1460115)
@@ -1,105 +0,0 @@
-# Maintainer: Ronald van Haren <ronald.archlinux.org>
-# Maintainer: Bruno Pagani <[email protected]>
-# Contributor: Stefan Husmann <[email protected]>
-# Contributor: damir <[email protected]>
-# Contributor: Tom K <[email protected]>
-# Contributor: Jed Brown <[email protected]>
-# Contributor: Simone Pezzuto <[email protected]>
-
-_pkgname=hdf5
-_mpi=openmpi
-pkgname=${_pkgname}-${_mpi}
-pkgver=1.14.0
-pkgrel=3
-pkgdesc="General purpose library and file format for storing scientific data 
(${_mpi} version)"
-arch=(x86_64)
-url="https://www.hdfgroup.org/hdf5";
-license=(custom)
-depends=(zlib libaec bash ${_mpi})
-makedepends=(cmake time gcc-fortran java-environment)
-provides=(hdf5 hdf5-${_mpi}-java)
-conflicts=(hdf5 hdf5-${_mpi}-java)
-replaces=(hdf5-${_mpi}-java)
-source=(https://support.hdfgroup.org/ftp/HDF5/releases/${_pkgname}-${pkgver:0:4}/${_pkgname}-${pkgver/_/-}/src/${_pkgname}-${pkgver/_/-}.tar.bz2)
-sha256sums=('e4e79433450edae2865a4c6328188bb45391b29d74f8c538ee699f0b116c2ba0')
-
-prepare() {
-    cd ${_pkgname}-${pkgver/_/-}
-    # Don't mess with build flags
-    sed -e '/-Werror/d' -i configure
-}
-
-build() {
-    # Crazy workaround: run CMake to generate pkg-config file
-    #cmake -B build -S ${pkgname}-${pkgver/_/-} \
-    mkdir -p build && cd build
-    CXX="mpicxx" \
-    CC="mpicc" \
-    FC="mpif90" \
-    F9X="mpif90" \
-    RUNPARALLEL="mpirun" \
-    OMPI_MCA_disable_memory_allocator=1 \
-    cmake ../${_pkgname}-${pkgver/_/-} \
-        -DCMAKE_INSTALL_PREFIX=/usr \
-        -DBUILD_STATIC_LIBS=OFF \
-        -DCMAKE_BUILD_TYPE=Release \
-        -DALLOW_UNSUPPORTED=ON \
-        -DHDF5_BUILD_HL_LIB=ON \
-        -DHDF5_BUILD_CPP_LIB=ON \
-        -DHDF5_BUILD_FORTRAN=ON \
-        -DHDF5_BUILD_JAVA=ON \
-        -DHDF5_ENABLE_PARALLEL=ON \
-        -DHDF5_ENABLE_Z_LIB_SUPPORT=ON \
-        -DHDF5_ENABLE_SZIP_SUPPORT=ON \
-        -DHDF5_ENABLE_SZIP_ENCODING=ON \
-        -DUSE_LIBAEC=ON
-    # But don’t build with it, it’s quite broken
-    cd ../${_pkgname}-${pkgver/_/-}
-    ./configure \
-        CXX="mpicxx" \
-        CC="mpicc" \
-        FC="mpif90" \
-        F9X="mpif90" \
-        RUNPARALLEL="mpirun" \
-        OMPI_MCA_disable_memory_allocator=1 \
-        --prefix=/usr \
-        --docdir=/usr/share/doc/hdf5/ \
-        --with-examplesdir=/usr/share/doc/hdf5/examples/ \
-        --disable-static \
-        --disable-sharedlib-rpath \
-        --enable-build-mode=production \
-        --enable-hl \
-        --enable-cxx \
-        --enable-fortran \
-        --enable-java \
-        --enable-parallel \
-        --enable-unsupported \
-        --with-pic \
-        --with-zlib \
-        --with-szlib
-    make
-}
-
-check() {
-    cd ${_pkgname}-${pkgver/_/-}
-    export OMPI_MCA_opal_warn_on_missing_libcuda=0
-    # Without this, checks are failing with messages like “error while loading 
shared libraries: libhdf5.so.101: cannot open shared object file: No such file 
or directory”
-    export LD_LIBRARY_PATH="${srcdir}"/${pkgname}-${pkgver/_/-}/src/.libs/
-    export 
LD_LIBRARY_PATH="$LD_LIBRARY_PATH":"${srcdir}"/${pkgname}-${pkgver/_/-}/c++/src/.libs/
-    export 
LD_LIBRARY_PATH="$LD_LIBRARY_PATH":"${srcdir}"/${pkgname}-${pkgver/_/-}/fortran/src/.libs/
-    export 
LD_LIBRARY_PATH="$LD_LIBRARY_PATH":"${srcdir}"/${pkgname}-${pkgver/_/-}/hl/src/.libs/
-    export 
LD_LIBRARY_PATH="$LD_LIBRARY_PATH":"${srcdir}"/${pkgname}-${pkgver/_/-}/hl/c++/src/.libs/
-    export 
LD_LIBRARY_PATH="$LD_LIBRARY_PATH":"${srcdir}"/${pkgname}-${pkgver/_/-}/hl/fortran/src/.libs/
-    # This is a parallel build, they are always OpenMPI bugs
-    make check || echo "Tests failed"
-}
-
-package() {
-    cd ${_pkgname}-${pkgver/_/-}
-    make DESTDIR="${pkgdir}" install
-    install -Dm644 COPYING -t "${pkgdir}"/usr/share/licenses/${_pkgname}
-    # Install pkg-config files from CMake tree
-    install -Dm644 ../build/CMakeFiles/hdf5{,_hl}{,_cpp,_fortran}.pc -t 
"${pkgdir}"/usr/lib/pkgconfig/
-    # Fix bogus include path
-    sed -e "s|-I/build/hdf5-openmpi/src/hdf5-$pkgver/src/H5FDsubfiling||g" -i 
"${pkgdir}"/usr/lib/libhdf5.settings -i "${pkgdir}"/usr/bin/*
-}

Copied: hdf5-openmpi/repos/community-x86_64/PKGBUILD (from rev 1460114, 
hdf5-openmpi/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2023-05-12 16:48:35 UTC (rev 1460115)
@@ -0,0 +1,106 @@
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Maintainer: Bruno Pagani <[email protected]>
+# Contributor: Stefan Husmann <[email protected]>
+# Contributor: damir <[email protected]>
+# Contributor: Tom K <[email protected]>
+# Contributor: Jed Brown <[email protected]>
+# Contributor: Simone Pezzuto <[email protected]>
+
+_pkgname=hdf5
+_mpi=openmpi
+pkgname=${_pkgname}-${_mpi}
+pkgver=1.14.1
+pkgrel=1
+pkgdesc="General purpose library and file format for storing scientific data 
(${_mpi} version)"
+arch=(x86_64)
+url="https://www.hdfgroup.org/hdf5";
+license=(custom)
+depends=(zlib libaec bash ${_mpi})
+makedepends=(cmake time gcc-fortran java-environment)
+provides=(hdf5 hdf5-${_mpi}-java)
+conflicts=(hdf5 hdf5-${_mpi}-java)
+replaces=(hdf5-${_mpi}-java)
+source=(https://support.hdfgroup.org/ftp/HDF5/releases/${_pkgname}-${pkgver:0:4}/${_pkgname}-${pkgver/_/-}/src/${_pkgname}-${pkgver/_/-}-2.tar.bz2)
+sha256sums=('06ca141d1a3c312b5d7cc4826a12737293ae131031748861689f6a2ec8219dbd')
+
+prepare() {
+    mv ${_pkgname}-${pkgver/_/-}{-2,}
+    cd ${_pkgname}-${pkgver/_/-}
+    # Don't mess with build flags
+    sed -e '/-Werror/d' -i configure
+}
+
+build() {
+    # Crazy workaround: run CMake to generate pkg-config file
+    #cmake -B build -S ${pkgname}-${pkgver/_/-} \
+    mkdir -p build && cd build
+    CXX="mpicxx" \
+    CC="mpicc" \
+    FC="mpif90" \
+    F9X="mpif90" \
+    RUNPARALLEL="mpirun" \
+    OMPI_MCA_disable_memory_allocator=1 \
+    cmake ../${_pkgname}-${pkgver/_/-} \
+        -DCMAKE_INSTALL_PREFIX=/usr \
+        -DBUILD_STATIC_LIBS=OFF \
+        -DCMAKE_BUILD_TYPE=Release \
+        -DALLOW_UNSUPPORTED=ON \
+        -DHDF5_BUILD_HL_LIB=ON \
+        -DHDF5_BUILD_CPP_LIB=ON \
+        -DHDF5_BUILD_FORTRAN=ON \
+        -DHDF5_BUILD_JAVA=ON \
+        -DHDF5_ENABLE_PARALLEL=ON \
+        -DHDF5_ENABLE_Z_LIB_SUPPORT=ON \
+        -DHDF5_ENABLE_SZIP_SUPPORT=ON \
+        -DHDF5_ENABLE_SZIP_ENCODING=ON \
+        -DUSE_LIBAEC=ON
+    # But don’t build with it, it’s quite broken
+    cd ../${_pkgname}-${pkgver/_/-}
+    ./configure \
+        CXX="mpicxx" \
+        CC="mpicc" \
+        FC="mpif90" \
+        F9X="mpif90" \
+        RUNPARALLEL="mpirun" \
+        OMPI_MCA_disable_memory_allocator=1 \
+        --prefix=/usr \
+        --docdir=/usr/share/doc/hdf5/ \
+        --with-examplesdir=/usr/share/doc/hdf5/examples/ \
+        --disable-static \
+        --disable-sharedlib-rpath \
+        --enable-build-mode=production \
+        --enable-hl \
+        --enable-cxx \
+        --enable-fortran \
+        --enable-java \
+        --enable-parallel \
+        --enable-unsupported \
+        --with-pic \
+        --with-zlib \
+        --with-szlib
+    make
+}
+
+check() {
+    cd ${_pkgname}-${pkgver/_/-}
+    export OMPI_MCA_opal_warn_on_missing_libcuda=0
+    # Without this, checks are failing with messages like “error while loading 
shared libraries: libhdf5.so.101: cannot open shared object file: No such file 
or directory”
+    export LD_LIBRARY_PATH="${srcdir}"/${pkgname}-${pkgver/_/-}/src/.libs/
+    export 
LD_LIBRARY_PATH="$LD_LIBRARY_PATH":"${srcdir}"/${pkgname}-${pkgver/_/-}/c++/src/.libs/
+    export 
LD_LIBRARY_PATH="$LD_LIBRARY_PATH":"${srcdir}"/${pkgname}-${pkgver/_/-}/fortran/src/.libs/
+    export 
LD_LIBRARY_PATH="$LD_LIBRARY_PATH":"${srcdir}"/${pkgname}-${pkgver/_/-}/hl/src/.libs/
+    export 
LD_LIBRARY_PATH="$LD_LIBRARY_PATH":"${srcdir}"/${pkgname}-${pkgver/_/-}/hl/c++/src/.libs/
+    export 
LD_LIBRARY_PATH="$LD_LIBRARY_PATH":"${srcdir}"/${pkgname}-${pkgver/_/-}/hl/fortran/src/.libs/
+    # This is a parallel build, they are always OpenMPI bugs
+    make check || echo "Tests failed"
+}
+
+package() {
+    cd ${_pkgname}-${pkgver/_/-}
+    make DESTDIR="${pkgdir}" install
+    install -Dm644 COPYING -t "${pkgdir}"/usr/share/licenses/${_pkgname}
+    # Install pkg-config files from CMake tree
+    install -Dm644 ../build/CMakeFiles/hdf5{,_hl}{,_cpp,_fortran}.pc -t 
"${pkgdir}"/usr/lib/pkgconfig/
+    # Fix bogus include path
+    sed -e "s|-I/build/hdf5-openmpi/src/hdf5-$pkgver/src/H5FDsubfiling||g" -i 
"${pkgdir}"/usr/lib/libhdf5.settings -i "${pkgdir}"/usr/bin/*
+}

Reply via email to