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 95A39138334 for ; Mon, 15 Oct 2018 22:08:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C6DDBE087C; Mon, 15 Oct 2018 22:08:12 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 9F7B9E087C for ; Mon, 15 Oct 2018 22:08:12 +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 26B06335CE9 for ; Mon, 15 Oct 2018 22:08:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9F95443E for ; Mon, 15 Oct 2018 22:08:09 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1539641244.9572a71e446e8199dfcec3cd14f7138dc5da501e.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/scalapack/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-libs/scalapack/scalapack-2.0.2-r1.ebuild X-VCS-Directories: sci-libs/scalapack/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 9572a71e446e8199dfcec3cd14f7138dc5da501e X-VCS-Branch: master Date: Mon, 15 Oct 2018 22:08:09 +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-Archives-Salt: 858fa634-bfd9-4da2-a6fc-e835f6204754 X-Archives-Hash: b488161f5ba430eb031b1cf46e10e4eb commit: 9572a71e446e8199dfcec3cd14f7138dc5da501e Author: Andreas Sturmlechner gentoo org> AuthorDate: Mon Oct 15 21:43:57 2018 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Mon Oct 15 22:07:24 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9572a71e sci-libs/scalapack: EAPI-6 bump Signed-off-by: Andreas Sturmlechner gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11 sci-libs/scalapack/scalapack-2.0.2-r1.ebuild | 67 ++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/sci-libs/scalapack/scalapack-2.0.2-r1.ebuild b/sci-libs/scalapack/scalapack-2.0.2-r1.ebuild new file mode 100644 index 00000000000..f520036f536 --- /dev/null +++ b/sci-libs/scalapack/scalapack-2.0.2-r1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils fortran-2 + +DESCRIPTION="Subset of LAPACK routines redesigned for heterogenous (MPI) computing" +HOMEPAGE="https://www.netlib.org/scalapack/" +SRC_URI="${HOMEPAGE}/${P}.tgz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="static-libs test" + +RDEPEND=" + virtual/lapack + virtual/mpi" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + cmake-utils_src_prepare + + if use static-libs; then + mkdir "${WORKDIR}/${PN}_static" || die + fi + # mpi does not have a pc file + sed -i -e 's/mpi//' scalapack.pc.in || die +} + +src_configure() { + scalapack_configure() { + local mycmakeargs=( + -DUSE_OPTIMIZED_LAPACK_BLAS=ON + -DBLAS_LIBRARIES="$($(tc-getPKG_CONFIG) --libs blas)" + -DLAPACK_LIBRARIES="$($(tc-getPKG_CONFIG) --libs lapack)" + -DBUILD_TESTING=$(usex test) + $@ + ) + cmake-utils_src_configure + } + + scalapack_configure -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=OFF + use static-libs && \ + CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" scalapack_configure \ + -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON +} + +src_compile() { + cmake-utils_src_compile + use static-libs && \ + CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install + use static-libs && \ + CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" cmake-utils_src_install + + insinto /usr/include/blacs + doins BLACS/SRC/*.h + + insinto /usr/include/scalapack + doins PBLAS/SRC/*.h +}