summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2018-10-14 20:45:05 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2018-10-14 21:04:32 +0200
commit6aa7338ed80e5c917c230094dda7bab631b2778a (patch)
treee9d7e67190240e55d5130d5d380939cafb3128fa /sci-physics/hepmc
parentsci-physics/hepmc: Update HOMEPAGE (diff)
downloadgentoo-6aa7338ed80e5c917c230094dda7bab631b2778a.tar.gz
gentoo-6aa7338ed80e5c917c230094dda7bab631b2778a.tar.bz2
gentoo-6aa7338ed80e5c917c230094dda7bab631b2778a.zip
sci-physics/hepmc: Add several missing || die
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'sci-physics/hepmc')
-rw-r--r--sci-physics/hepmc/hepmc-2.06.09-r1.ebuild10
1 files changed, 7 insertions, 3 deletions
diff --git a/sci-physics/hepmc/hepmc-2.06.09-r1.ebuild b/sci-physics/hepmc/hepmc-2.06.09-r1.ebuild
index fd54fa2fd8ab..85f83c7019a4 100644
--- a/sci-physics/hepmc/hepmc-2.06.09-r1.ebuild
+++ b/sci-physics/hepmc/hepmc-2.06.09-r1.ebuild
@@ -33,7 +33,7 @@ DOCS=( ChangeLog AUTHORS )
src_prepare() {
cmake-utils_src_prepare
- sed -i -e '/add_subdirectory(doc)/d' CMakeLists.txt
+ sed -i -e '/add_subdirectory(doc)/d' CMakeLists.txt || die
# CMake doc building broken
# gentoo doc directory
#sed -i \
@@ -56,8 +56,12 @@ src_prepare() {
{src,fio}/CMakeLists.txt || die
# remove targets if use flags not set
- use examples || sed -i -e '/add_subdirectory(examples)/d' CMakeLists.txt
- use test || sed -i -e '/add_subdirectory(test)/d' CMakeLists.txt
+ if ! use examples; then
+ sed -i -e '/add_subdirectory(examples)/d' CMakeLists.txt || die
+ fi
+ if ! use test; then
+ sed -i -e '/add_subdirectory(test)/d' CMakeLists.txt || die
+ fi
if ! use static-libs; then
sed -i \
-e '/(HepMC\(fio\|\)S/d' \