From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2FF6113997F for ; Thu, 14 Nov 2019 21:45:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CE912E081E; Thu, 14 Nov 2019 21:45:50 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A2594E081E for ; Thu, 14 Nov 2019 21:45:50 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 20F7934CE4E for ; Thu, 14 Nov 2019 21:45:49 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 76961779 for ; Thu, 14 Nov 2019 21:45:46 +0000 (UTC) From: "Matthias Maier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matthias Maier" Message-ID: <1573767846.07473712faf63411d744cadb7b4fc6c204110d78.tamiko@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/hypre/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-libs/hypre/Manifest sci-libs/hypre/hypre-2.18.2.ebuild X-VCS-Directories: sci-libs/hypre/ X-VCS-Committer: tamiko X-VCS-Committer-Name: Matthias Maier X-VCS-Revision: 07473712faf63411d744cadb7b4fc6c204110d78 X-VCS-Branch: master Date: Thu, 14 Nov 2019 21:45:46 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 35211ca3-1483-4b0f-9bbc-a3812170c2ca X-Archives-Hash: 6dbb85822e16a0e0457ebbdce19d85b3 commit: 07473712faf63411d744cadb7b4fc6c204110d78 Author: Matthias Maier gentoo org> AuthorDate: Thu Nov 14 21:36:09 2019 +0000 Commit: Matthias Maier gentoo org> CommitDate: Thu Nov 14 21:44:06 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07473712 sci-libs/hypre: version bump to 2.18.2 Package-Manager: Portage-2.3.79, Repoman-2.3.18 Signed-off-by: Matthias Maier gentoo.org> sci-libs/hypre/Manifest | 1 + sci-libs/hypre/hypre-2.18.2.ebuild | 101 +++++++++++++++++++++++++++++++++++++ 2 files changed, 102 insertions(+) diff --git a/sci-libs/hypre/Manifest b/sci-libs/hypre/Manifest index 59f9da2a56e..73775a2eb87 100644 --- a/sci-libs/hypre/Manifest +++ b/sci-libs/hypre/Manifest @@ -1,2 +1,3 @@ DIST hypre-2.14.0.tar.gz 7312329 BLAKE2B 93de48bdd05c383c74fb1b3b25ddcd5830be099aa7557262547932e17eba524c25ff69ff94d10f29ffdabfef9c05281fd485a7c9b999141f2488ae4fc0238736 SHA512 c7b59fb7ab1cc906e339fcc00603898e44234a65aa74600f740bc825aa94aa66ff0cbd4bd4b7f339c0d28ff5bd9494f15b57f2017a22348fee14b4e8333f1e6c DIST hypre-2.18.0.tar.gz 5698227 BLAKE2B e6562b78dcff6592a7df86d2162e3669c9ea3f71cc8926402038da319cb6c1b801a7ac5e44612ba86762ccdd63ae30cd2976451368309622b46e67a7a7dc1d83 SHA512 41292d590285703b5fb91c767fc9d064e36911f09583a81a3da9f2b5524143b23bb1beba3449d759e3f681760d9ad155072e1762d7d6bbe0e65660d5b16c472a +DIST hypre-2.18.2.tar.gz 5699792 BLAKE2B 6adb343d23594adea60a4009f589285236365a5769b1d5cb66908ce83984dd48b3be929e6c7298c7b9cb1e2d67b1fe7ea641c8a160562d223edb9809977fb684 SHA512 7b343a5c8530d7f5e31cad6c940c2f154b2b954566d4fe8525d690fec41db23936a46fb642a994791de32984e696c624804fb1fde1f0c9ce026f1a6e46b9c0f4 diff --git a/sci-libs/hypre/hypre-2.18.2.ebuild b/sci-libs/hypre/hypre-2.18.2.ebuild new file mode 100644 index 00000000000..e8e6dd2d154 --- /dev/null +++ b/sci-libs/hypre/hypre-2.18.2.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +FORTRAN_NEEDED=fortran + +inherit cmake-utils fortran-2 toolchain-funcs flag-o-matic + +DESCRIPTION="Parallel matrix preconditioners library" +HOMEPAGE="https://computation.llnl.gov/projects/hypre-scalable-linear-solvers-multigrid-methods" +SRC_URI="https://github.com/${PN}-space/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="debug examples fortran int64 openmp mpi" + +RDEPEND=" + sci-libs/superlu:= + virtual/blas + virtual/lapack + mpi? ( virtual/mpi )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +DOCS=( CHANGELOG COPYRIGHT README ) + +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] &&\ + use openmp && [[ $(tc-getCC)$ == *gcc* ]] && tc-check-openmp +} + +pkg_setup() { + if [[ ${MERGE_TYPE} != binary ]] && \ + use openmp && [[ $(tc-getCC)$ == *gcc* ]] && ! tc-has-openmp ; then + ewarn "You are using a non capable gcc compiler ( < 4.2 ? )" + die "Need an OpenMP capable compiler" + fi +} + +src_prepare() { + default + # link with system superlu and propagate LDFLAGS + sed -e "s:@LIBS@:@LIBS@ $($(tc-getPKG_CONFIG) --libs superlu):" \ + -e 's:_SHARED@:_SHARED@ $(LDFLAGS):g' \ + -i src/config/Makefile.config.in || die + sed -e '/HYPRE_ARCH/s: = :=:g' \ + -i src/configure || die + # link with system blas and lapack + sed -e '/^BLASFILES/d' \ + -e '/^LAPACKFILES/d' \ + -i src/lib/Makefile || die +} + +src_configure() { + tc-export CC CXX + append-flags -Dhypre_dgesvd=dgesvd_ + use openmp && [[ $(tc-getCC)$ == *gcc* ]] && \ + append-flags -fopenmp && append-ldflags -fopenmp + use mpi && CC=mpicc FC=mpif77 CXX=mpicxx + + cd src + + # without-superlu: means do not use bundled one + econf \ + --enable-shared \ + --with-blas-libs="$($(tc-getPKG_CONFIG) --libs-only-l blas | sed -e 's/-l//g')" \ + --with-blas-lib-dirs="$($(tc-getPKG_CONFIG) --libs-only-L blas | sed -e 's/-L//g')" \ + --with-lapack-libs="$($(tc-getPKG_CONFIG) --libs-only-l lapack | sed -e 's/-l//g')" \ + --with-lapack-lib-dirs="$($(tc-getPKG_CONFIG) --libs-only-L lapack | sed -e 's/-L//g')" \ + --with-timing \ + --without-superlu \ + $(use_enable debug) \ + $(use_enable openmp hopscotch) \ + $(use_enable int64 bigint) \ + $(use_enable fortran) \ + $(use_with openmp) \ + $(use_with mpi MPI) +} + +src_compile() { + emake -C src +} + +src_test() { + LD_LIBRARY_PATH="${S}/src/lib:${LD_LIBRARY_PATH}" \ + PATH="${S}/src/test:${PATH}" \ + emake -C src check +} + +src_install() { + emake -C src install \ + HYPRE_INSTALL_DIR="${ED}" \ + HYPRE_LIB_INSTALL="${ED}/usr/$(get_libdir)" \ + HYPRE_INC_INSTALL="${ED}$/usr/include/hypre" + if use examples; then + insinto /usr/share/doc/${PF} + doins -r src/examples + fi +}