public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-physics/hepmc/
Date: Sun, 14 Oct 2018 19:04:43 +0000 (UTC)	[thread overview]
Message-ID: <1539543872.668a8ce8db72b90af2dc9e25592349434d8d7c69.asturm@gentoo> (raw)

commit:     668a8ce8db72b90af2dc9e25592349434d8d7c69
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 14 18:48:21 2018 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Oct 14 19:04:32 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=668a8ce8

sci-physics/hepmc: Simplify src_configure

Drop superfluous temp local vars.

Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
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 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
 }


             reply	other threads:[~2018-10-14 19:04 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-14 19:04 Andreas Sturmlechner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-05-14 12:11 [gentoo-commits] repo/gentoo:master commit in: sci-physics/hepmc/ Nowa Ammerlaan
2025-03-27 11:22 Nowa Ammerlaan
2025-03-27 11:22 Nowa Ammerlaan
2025-03-27 11:22 Nowa Ammerlaan
2025-03-24 12:32 Nowa Ammerlaan
2025-01-14  8:58 Nowa Ammerlaan
2024-12-03  8:54 Nowa Ammerlaan
2024-11-28 15:19 Nowa Ammerlaan
2024-06-20 11:22 Andrew Ammerlaan
2024-04-12 16:57 Andrew Ammerlaan
2024-03-15 14:17 Andrew Ammerlaan
2024-03-08  9:03 Guilherme Amadio
2024-03-08  9:03 Guilherme Amadio
2023-12-11 14:12 Andrew Ammerlaan
2023-06-09 15:06 Arthur Zamarin
2023-05-04  2:31 Sam James
2023-05-03 22:09 Sam James
2023-05-02 11:54 Andrew Ammerlaan
2023-05-02 11:54 Andrew Ammerlaan
2023-05-02 11:54 Andrew Ammerlaan
2023-02-25 22:23 Sam James
2023-02-25 22:23 Sam James
2022-12-11 17:55 Arthur Zamarin
2022-08-26 11:13 Andrew Ammerlaan
2022-08-26 11:13 Andrew Ammerlaan
2022-08-26 11:13 Andrew Ammerlaan
2022-03-05 21:40 David Seifert
2020-07-24 11:10 Ulrich Müller
2018-10-14 19:04 Andreas Sturmlechner
2018-10-14 19:04 Andreas Sturmlechner
2018-10-14 19:04 Andreas Sturmlechner
2017-10-16  3:34 David Seifert
2016-11-13  9:39 David Seifert
2015-11-11  9:12 Agostino Sarubbo
2015-11-06 11:59 José María Alonso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1539543872.668a8ce8db72b90af2dc9e25592349434d8d7c69.asturm@gentoo \
    --to=asturm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox