sci-physics/hepmc: Simplify src_configure
authorAndreas Sturmlechner <asturm@gentoo.org>
Sun, 14 Oct 2018 18:48:21 +0000 (20:48 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sun, 14 Oct 2018 19:04:32 +0000 (21:04 +0200)
Drop superfluous temp local vars.

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

sci-physics/hepmc/hepmc-2.06.09-r1.ebuild

index 85f83c7019a44570bb79e2f37668f7b54f9ffed1..7142a94092fc14d2f9252980529b73b22d594ed9 100644 (file)
@@ -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
 }