summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2018-10-14 20:48:21 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2018-10-14 21:04:32 +0200
commit668a8ce8db72b90af2dc9e25592349434d8d7c69 (patch)
tree4694b548867fef9caa93fd8150b8d4eab8eb8679 /sci-physics
parentsci-physics/hepmc: Add several missing || die (diff)
downloadgentoo-668a8ce8db72b90af2dc9e25592349434d8d7c69.tar.gz
gentoo-668a8ce8db72b90af2dc9e25592349434d8d7c69.tar.bz2
gentoo-668a8ce8db72b90af2dc9e25592349434d8d7c69.zip
sci-physics/hepmc: Simplify src_configure
Drop superfluous temp local vars. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'sci-physics')
-rw-r--r--sci-physics/hepmc/hepmc-2.06.09-r1.ebuild10
1 files changed, 3 insertions, 7 deletions
diff --git a/sci-physics/hepmc/hepmc-2.06.09-r1.ebuild b/sci-physics/hepmc/hepmc-2.06.09-r1.ebuild
index 85f83c7019a..7142a94092f 100644
--- a/sci-physics/hepmc/hepmc-2.06.09-r1.ebuild
+++ b/sci-physics/hepmc/hepmc-2.06.09-r1.ebuild
@@ -72,13 +72,9 @@ src_prepare() {
src_configure() {
# use MeV over GeV and mm over cm
- local length_conf="MM"
- use cm && length_conf="CM"
- local momentum_conf="MEV"
- use gev && momentum_conf="GEV"
- mycmakeargs+=(
- -Dlength=${length_conf}
- -Dmomentum=${momentum_conf}
+ local mycmakeargs=(
+ -Dlength=$(usex cm CM MM)
+ -Dmomentum=$(usex gev GEV MEV)
)
cmake-utils_src_configure
}