Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-physics/hepmc/
Date: Sun, 14 Oct 2018 19:04:48
Message-Id: 1539543872.6aa7338ed80e5c917c230094dda7bab631b2778a.asturm@gentoo
1 commit: 6aa7338ed80e5c917c230094dda7bab631b2778a
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 14 18:45:05 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 14 19:04:32 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6aa7338e
7
8 sci-physics/hepmc: Add several missing || die
9
10 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
11 Package-Manager: Portage-2.3.51, Repoman-2.3.11
12
13 sci-physics/hepmc/hepmc-2.06.09-r1.ebuild | 10 +++++++---
14 1 file changed, 7 insertions(+), 3 deletions(-)
15
16 diff --git a/sci-physics/hepmc/hepmc-2.06.09-r1.ebuild b/sci-physics/hepmc/hepmc-2.06.09-r1.ebuild
17 index fd54fa2fd8a..85f83c7019a 100644
18 --- a/sci-physics/hepmc/hepmc-2.06.09-r1.ebuild
19 +++ b/sci-physics/hepmc/hepmc-2.06.09-r1.ebuild
20 @@ -33,7 +33,7 @@ DOCS=( ChangeLog AUTHORS )
21 src_prepare() {
22 cmake-utils_src_prepare
23
24 - sed -i -e '/add_subdirectory(doc)/d' CMakeLists.txt
25 + sed -i -e '/add_subdirectory(doc)/d' CMakeLists.txt || die
26 # CMake doc building broken
27 # gentoo doc directory
28 #sed -i \
29 @@ -56,8 +56,12 @@ src_prepare() {
30 {src,fio}/CMakeLists.txt || die
31
32 # remove targets if use flags not set
33 - use examples || sed -i -e '/add_subdirectory(examples)/d' CMakeLists.txt
34 - use test || sed -i -e '/add_subdirectory(test)/d' CMakeLists.txt
35 + if ! use examples; then
36 + sed -i -e '/add_subdirectory(examples)/d' CMakeLists.txt || die
37 + fi
38 + if ! use test; then
39 + sed -i -e '/add_subdirectory(test)/d' CMakeLists.txt || die
40 + fi
41 if ! use static-libs; then
42 sed -i \
43 -e '/(HepMC\(fio\|\)S/d' \