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 D5BE9138334 for ; Mon, 31 Dec 2018 21:14:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A0176E09D4; Mon, 31 Dec 2018 21:14:54 +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 7887CE09D0 for ; Mon, 31 Dec 2018 21:14:54 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 0071B335CF9 for ; Mon, 31 Dec 2018 21:14:53 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D1793507 for ; Mon, 31 Dec 2018 21:14:49 +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: <1546290826.94f78f5e128ea5037e73116527fe9225fde0f77a.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/parmetis/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-libs/parmetis/parmetis-4.0.3.ebuild X-VCS-Directories: sci-libs/parmetis/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 94f78f5e128ea5037e73116527fe9225fde0f77a X-VCS-Branch: master Date: Mon, 31 Dec 2018 21:14:49 +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: 1de4e8ed-c916-4d6d-8a08-d99b0b8c17e2 X-Archives-Hash: b83fb0d0260ee0efb556213a67f5cca7 commit: 94f78f5e128ea5037e73116527fe9225fde0f77a Author: Andreas Sturmlechner gentoo org> AuthorDate: Mon Dec 31 20:54:57 2018 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Mon Dec 31 21:13:46 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94f78f5e sci-libs/parmetis: missing || die Package-Manager: Portage-2.3.52, Repoman-2.3.12 Signed-off-by: Andreas Sturmlechner gentoo.org> sci-libs/parmetis/parmetis-4.0.3.ebuild | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/sci-libs/parmetis/parmetis-4.0.3.ebuild b/sci-libs/parmetis/parmetis-4.0.3.ebuild index 71ee81fcbc9..0df1f3da634 100644 --- a/sci-libs/parmetis/parmetis-4.0.3.ebuild +++ b/sci-libs/parmetis/parmetis-4.0.3.ebuild @@ -47,7 +47,9 @@ src_prepare() { sed -i \ -e '/programs/d' \ CMakeLists.txt metis/CMakeLists.txt || die - use static-libs && mkdir "${WORKDIR}/${PN}_static" + if use static-libs; then + mkdir "${WORKDIR}/${PN}_static" || die + fi if use mpi; then export CC=mpicc CXX=mpicxx @@ -59,11 +61,13 @@ src_prepare() { fi - use int64 && \ - sed -i -e '/IDXTYPEWIDTH/s/32/64/' metis/include/metis.h + if use int64; then + sed -i -e '/IDXTYPEWIDTH/s/32/64/' metis/include/metis.h || die + fi - use double-precision && \ - sed -i -e '/REALTYPEWIDTH/s/32/64/' metis/include/metis.h + if use double-precision; then + sed -i -e '/REALTYPEWIDTH/s/32/64/' metis/include/metis.h || die + fi } src_configure() { @@ -80,9 +84,10 @@ src_configure() { cmake-utils_src_configure } parmetis_configure -DSHARED=ON - use static-libs && \ - sed -i -e '/fPIC/d' metis/GKlib/GKlibSystem.cmake && \ + if use static-libs; then + sed -i -e '/fPIC/d' metis/GKlib/GKlibSystem.cmake || die BUILD_DIR="${WORKDIR}/${PN}_static" parmetis_configure + fi } src_compile() {