From 668a8ce8db72b90af2dc9e25592349434d8d7c69 Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Sun, 14 Oct 2018 20:48:21 +0200 Subject: [PATCH] sci-physics/hepmc: Simplify src_configure Drop superfluous temp local vars. Signed-off-by: Andreas Sturmlechner Package-Manager: Portage-2.3.51, Repoman-2.3.11 --- sci-physics/hepmc/hepmc-2.06.09-r1.ebuild | 10 +++------- 1 file 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 85f83c7019a4..7142a94092fc 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 } -- 2.26.2