Gentoo Archives: gentoo-commits

From: Alessandro Barbieri <lssndrbarbieri@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-R/RcppArmadillo/
Date: Mon, 31 May 2021 23:38:33
Message-Id: 1622504274.86b6f3900ae216240f7cfe9b26f268db6e6132c4.Alessandro-Barbieri@gentoo
1 commit: 86b6f3900ae216240f7cfe9b26f268db6e6132c4
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Mon May 31 23:37:54 2021 +0000
4 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
5 CommitDate: Mon May 31 23:37:54 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=86b6f390
7
8 dev-R/RcppArmadillo: attempt and unbundling armadillo using symlinks
9
10 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
11
12 dev-R/RcppArmadillo/RcppArmadillo-0.10.5.0.0.ebuild | 17 +++++++++++++++++
13 1 file changed, 17 insertions(+)
14
15 diff --git a/dev-R/RcppArmadillo/RcppArmadillo-0.10.5.0.0.ebuild b/dev-R/RcppArmadillo/RcppArmadillo-0.10.5.0.0.ebuild
16 index 849f5e730..f14fd4406 100644
17 --- a/dev-R/RcppArmadillo/RcppArmadillo-0.10.5.0.0.ebuild
18 +++ b/dev-R/RcppArmadillo/RcppArmadillo-0.10.5.0.0.ebuild
19 @@ -12,8 +12,25 @@ LICENSE='GPL-2+'
20 DEPEND="
21 >=dev-lang/R-3.3.0
22 >=dev-R/Rcpp-0.11.0
23 + sci-libs/armadillo[lapack]
24 "
25 RDEPEND="
26 ${DEPEND}
27 dev-R/Rcpp
28 "
29 +
30 +#TODO: correctly link to lapack
31 +
32 +src_prepare() {
33 + default
34 + rm -r inst/include/armadillo_bits || die
35 + rm inst/include/armadillo || die
36 + dosym /usr/include/armadillo_bits inst/include/armadillo_bits
37 + dosym /usr/include/armadillo inst/include/armadillo
38 +}
39 +
40 +src_install() {
41 + R-packages_src_install
42 + dosym /usr/include/armadillo_bits "/usr/$(get_libdir)/R/site-library/${PN}/include/armadillo_bits"
43 + dosym /usr/include/armadillo "/usr/$(get_libdir)/R/site-library/${PN}/include/armadillo"
44 +}