diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2018-12-31 21:54:57 +0100 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2018-12-31 22:13:46 +0100 |
commit | 94f78f5e128ea5037e73116527fe9225fde0f77a (patch) | |
tree | 435ba236be322ffcbf77c0fab4de7220cefd5438 /sci-libs/parmetis | |
parent | sci-chemistry/apbs: EAPI-6 bump (diff) | |
download | gentoo-94f78f5e128ea5037e73116527fe9225fde0f77a.tar.gz gentoo-94f78f5e128ea5037e73116527fe9225fde0f77a.tar.bz2 gentoo-94f78f5e128ea5037e73116527fe9225fde0f77a.zip |
sci-libs/parmetis: missing || die
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'sci-libs/parmetis')
-rw-r--r-- | sci-libs/parmetis/parmetis-4.0.3.ebuild | 19 |
1 files 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 71ee81fcbc9d..0df1f3da6341 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() { |