From: Andreas Sturmlechner Date: Sun, 14 Oct 2018 18:48:21 +0000 (+0200) Subject: sci-physics/hepmc: Simplify src_configure X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=668a8ce8db72b90af2dc9e25592349434d8d7c69;p=gentoo.git 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 --- 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 }