From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8B47F138334 for ; Sun, 14 Oct 2018 19:04:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5632FE077F; Sun, 14 Oct 2018 19:04:47 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2F16DE077F for ; Sun, 14 Oct 2018 19:04:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 37D19335C8F for ; Sun, 14 Oct 2018 19:04:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6FA0943C for ; Sun, 14 Oct 2018 19:04:43 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1539543872.668a8ce8db72b90af2dc9e25592349434d8d7c69.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-physics/hepmc/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-physics/hepmc/hepmc-2.06.09-r1.ebuild X-VCS-Directories: sci-physics/hepmc/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 668a8ce8db72b90af2dc9e25592349434d8d7c69 X-VCS-Branch: master Date: Sun, 14 Oct 2018 19:04:43 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 8b0c5e71-e8a5-4f8c-98e5-9b314827b37b X-Archives-Hash: 36a952be2df0351982750bdfadeaf7b8 commit: 668a8ce8db72b90af2dc9e25592349434d8d7c69 Author: Andreas Sturmlechner gentoo org> AuthorDate: Sun Oct 14 18:48:21 2018 +0000 Commit: Andreas Sturmlechner gentoo 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 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 }