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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 91D6A158094 for ; Wed, 13 Jul 2022 02:31:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6986BE0D74; Wed, 13 Jul 2022 02:31:25 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4C343E0D74 for ; Wed, 13 Jul 2022 02:31:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7B8AC3410FF for ; Wed, 13 Jul 2022 02:31:24 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7D41E53F for ; Wed, 13 Jul 2022 02:31:21 +0000 (UTC) From: "Anna Vyalkova" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anna Vyalkova" Message-ID: <1657678483.3a3c39c62b98ba076f8c69368f183db69d4b0cae.cybertailor@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: eclass/ X-VCS-Repository: repo/proj/guru X-VCS-Files: eclass/R-packages.eclass X-VCS-Directories: eclass/ X-VCS-Committer: cybertailor X-VCS-Committer-Name: Anna Vyalkova X-VCS-Revision: 3a3c39c62b98ba076f8c69368f183db69d4b0cae X-VCS-Branch: dev Date: Wed, 13 Jul 2022 02:31:21 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 1c1638bc-1e16-421e-82cd-ef5b070d930b X-Archives-Hash: b0cb71be4b24b457698f0a345191d3e7 commit: 3a3c39c62b98ba076f8c69368f183db69d4b0cae Author: Anna (cybertailor) Vyalkova sysrq in> AuthorDate: Wed Jul 13 02:14:43 2022 +0000 Commit: Anna Vyalkova sysrq in> CommitDate: Wed Jul 13 02:14:43 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3a3c39c6 R-packages.eclass: use array in src_compile Signed-off-by: Anna (cybertailor) Vyalkova sysrq.in> eclass/R-packages.eclass | 43 +++++++++++++++++++++++-------------------- 1 file changed, 23 insertions(+), 20 deletions(-) diff --git a/eclass/R-packages.eclass b/eclass/R-packages.eclass index d701a9e5e..a9a275a22 100644 --- a/eclass/R-packages.eclass +++ b/eclass/R-packages.eclass @@ -105,27 +105,30 @@ R-packages_src_configure() { # @FUNCTION: R-packages_src_compile # @DESCRIPTION: -# function that will pass some environment variables to R and then build/install the package +# Pass build-related environment variables to R and then build/install the +# package. R-packages_src_compile() { - MAKEFLAGS=" \ - ${MAKEFLAGS// /\\ } \ - AR=$(tc-getAR) \ - CC=$(tc-getCC) \ - CPP=$(tc-getCPP) \ - CXX=$(tc-getCXX) \ - FC=$(tc-getFC) \ - LD=$(tc-getLD) \ - NM=$(tc-getNM) \ - RANLIB=$(tc-getRANLIB) \ - CFLAGS=${CFLAGS// /\\ } \ - CPPFLAGS=${CPPFLAGS// /\\ } \ - CXXFLAGS=${CXXFLAGS// /\\ } \ - FFLAGS=${FFLAGS// /\\ } \ - FCFLAGS=${FCFLAGS// /\\ } \ - LDFLAGS=${LDFLAGS// /\\ } \ - MAKEOPTS=${MAKEOPTS// /\\ } \ - " \ - edo R CMD INSTALL . -d -l "${T}/R" "--byte-compile" + local -a mymakeflags=( + "${MAKEFLAGS}" + AR="$(tc-getAR)" + CC="$(tc-getCC)" + CPP="$(tc-getCPP)" + CXX="$(tc-getCXX)" + FC="$(tc-getFC)" + LD="$(tc-getLD)" + NM="$(tc-getNM)" + RANLIB="$(tc-getRANLIB)" + CFLAGS="${CFLAGS}" + CPPFLAGS="${CPPFLAGS}" + CXXFLAGS="${CXXFLAGS}" + FFLAGS="${FFLAGS}" + FCFLAGS="${FCFLAGS}" + LDFLAGS="${LDFLAGS}" + MAKEOPTS="${MAKEOPTS}" + ) + + MAKEFLAGS="${mymakeflags[@]// /\\ }" \ + edo R CMD INSTALL . -d -l "${T}"/R --byte-compile }