Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-physics/hepmc/
Date: Sun, 14 Oct 2018 19:04:49
Message-Id: 1539543872.668a8ce8db72b90af2dc9e25592349434d8d7c69.asturm@gentoo
1 commit: 668a8ce8db72b90af2dc9e25592349434d8d7c69
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 14 18:48:21 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 14 19:04:32 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=668a8ce8
7
8 sci-physics/hepmc: Simplify src_configure
9
10 Drop superfluous temp local vars.
11
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13 Package-Manager: Portage-2.3.51, Repoman-2.3.11
14
15 sci-physics/hepmc/hepmc-2.06.09-r1.ebuild | 10 +++-------
16 1 file changed, 3 insertions(+), 7 deletions(-)
17
18 diff --git a/sci-physics/hepmc/hepmc-2.06.09-r1.ebuild b/sci-physics/hepmc/hepmc-2.06.09-r1.ebuild
19 index 85f83c7019a..7142a94092f 100644
20 --- a/sci-physics/hepmc/hepmc-2.06.09-r1.ebuild
21 +++ b/sci-physics/hepmc/hepmc-2.06.09-r1.ebuild
22 @@ -72,13 +72,9 @@ src_prepare() {
23
24 src_configure() {
25 # use MeV over GeV and mm over cm
26 - local length_conf="MM"
27 - use cm && length_conf="CM"
28 - local momentum_conf="MEV"
29 - use gev && momentum_conf="GEV"
30 - mycmakeargs+=(
31 - -Dlength=${length_conf}
32 - -Dmomentum=${momentum_conf}
33 + local mycmakeargs=(
34 + -Dlength=$(usex cm CM MM)
35 + -Dmomentum=$(usex gev GEV MEV)
36 )
37 cmake-utils_src_configure
38 }