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 005B11382C5 for ; Mon, 31 May 2021 23:38:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3ED0DE0843; Mon, 31 May 2021 23:38:32 +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 A640FE0843 for ; Mon, 31 May 2021 23:38:31 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 F412F340ED3 for ; Mon, 31 May 2021 23:38:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 253E679A for ; Mon, 31 May 2021 23:38:28 +0000 (UTC) From: "Alessandro Barbieri" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alessandro Barbieri" Message-ID: <1622504274.86b6f3900ae216240f7cfe9b26f268db6e6132c4.Alessandro-Barbieri@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-R/RcppArmadillo/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-R/RcppArmadillo/RcppArmadillo-0.10.5.0.0.ebuild X-VCS-Directories: dev-R/RcppArmadillo/ X-VCS-Committer: Alessandro-Barbieri X-VCS-Committer-Name: Alessandro Barbieri X-VCS-Revision: 86b6f3900ae216240f7cfe9b26f268db6e6132c4 X-VCS-Branch: dev Date: Mon, 31 May 2021 23:38:28 +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: 7fd26a14-135e-4871-b8a3-b1e369923e39 X-Archives-Hash: 350ca640a34ef4c04078839019231d9d commit: 86b6f3900ae216240f7cfe9b26f268db6e6132c4 Author: Alessandro Barbieri gmail com> AuthorDate: Mon May 31 23:37:54 2021 +0000 Commit: Alessandro Barbieri gmail com> CommitDate: Mon May 31 23:37:54 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=86b6f390 dev-R/RcppArmadillo: attempt and unbundling armadillo using symlinks Signed-off-by: Alessandro Barbieri gmail.com> dev-R/RcppArmadillo/RcppArmadillo-0.10.5.0.0.ebuild | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/dev-R/RcppArmadillo/RcppArmadillo-0.10.5.0.0.ebuild b/dev-R/RcppArmadillo/RcppArmadillo-0.10.5.0.0.ebuild index 849f5e730..f14fd4406 100644 --- a/dev-R/RcppArmadillo/RcppArmadillo-0.10.5.0.0.ebuild +++ b/dev-R/RcppArmadillo/RcppArmadillo-0.10.5.0.0.ebuild @@ -12,8 +12,25 @@ LICENSE='GPL-2+' DEPEND=" >=dev-lang/R-3.3.0 >=dev-R/Rcpp-0.11.0 + sci-libs/armadillo[lapack] " RDEPEND=" ${DEPEND} dev-R/Rcpp " + +#TODO: correctly link to lapack + +src_prepare() { + default + rm -r inst/include/armadillo_bits || die + rm inst/include/armadillo || die + dosym /usr/include/armadillo_bits inst/include/armadillo_bits + dosym /usr/include/armadillo inst/include/armadillo +} + +src_install() { + R-packages_src_install + dosym /usr/include/armadillo_bits "/usr/$(get_libdir)/R/site-library/${PN}/include/armadillo_bits" + dosym /usr/include/armadillo "/usr/$(get_libdir)/R/site-library/${PN}/include/armadillo" +}