1 |
commit: b4c64697ef4aaa8329190f3e5af463f5306e688f |
2 |
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
3 |
AuthorDate: Wed Feb 9 06:17:48 2022 +0000 |
4 |
Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
5 |
CommitDate: Wed Feb 9 13:12:06 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b4c64697 |
7 |
|
8 |
dev-R/RcppArmadillo: fix symlinks |
9 |
|
10 |
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in> |
11 |
|
12 |
dev-R/RcppArmadillo/RcppArmadillo-0.10.2.2.0.ebuild | 18 ++++++++++-------- |
13 |
1 file changed, 10 insertions(+), 8 deletions(-) |
14 |
|
15 |
diff --git a/dev-R/RcppArmadillo/RcppArmadillo-0.10.2.2.0.ebuild b/dev-R/RcppArmadillo/RcppArmadillo-0.10.2.2.0.ebuild |
16 |
index 2bd5ac434..9c33fe313 100644 |
17 |
--- a/dev-R/RcppArmadillo/RcppArmadillo-0.10.2.2.0.ebuild |
18 |
+++ b/dev-R/RcppArmadillo/RcppArmadillo-0.10.2.2.0.ebuild |
19 |
@@ -3,10 +3,9 @@ |
20 |
|
21 |
EAPI=7 |
22 |
|
23 |
-inherit R-packages |
24 |
- |
25 |
-MYPV="$(ver_cut 2-3 ${PV})" |
26 |
+inherit R-packages eapi8-dosym |
27 |
|
28 |
+MY_PV="$(ver_cut 2-3 ${PV})" |
29 |
DESCRIPTION='Rcpp Integration for the Armadillo templated linear algebra library' |
30 |
SRC_URI="mirror://cran/src/contrib/Archive/${PN}/${PN}_${PV}.tar.gz" |
31 |
KEYWORDS="~amd64" |
32 |
@@ -15,7 +14,7 @@ LICENSE='GPL-2+' |
33 |
DEPEND=" |
34 |
>=dev-lang/R-3.3.0 |
35 |
>=dev-R/Rcpp-0.11.0 |
36 |
- =sci-libs/armadillo-${MYPV}*:=[lapack] |
37 |
+ =sci-libs/armadillo-${MY_PV}*:=[lapack] |
38 |
" |
39 |
RDEPEND="${DEPEND}" |
40 |
|
41 |
@@ -23,16 +22,19 @@ RDEPEND="${DEPEND}" |
42 |
|
43 |
src_prepare() { |
44 |
default |
45 |
+ |
46 |
#remove bundled |
47 |
rm -r inst/include/armadillo_bits || die |
48 |
rm inst/include/armadillo || die |
49 |
+ |
50 |
#link to sci-libs/armadillo |
51 |
- dosym /usr/include/armadillo_bits inst/include/armadillo_bits |
52 |
- dosym /usr/include/armadillo inst/include/armadillo |
53 |
+ ln -s "${ESYSROOT}"/usr/include/armadillo_bits inst/include/armadillo_bits || die |
54 |
+ ln -s "${ESYSROOT}"/usr/include/armadillo inst/include/armadillo || die |
55 |
} |
56 |
|
57 |
src_install() { |
58 |
R-packages_src_install |
59 |
- dosym /usr/include/armadillo_bits "/usr/$(get_libdir)/R/site-library/${PN}/include/armadillo_bits" |
60 |
- dosym /usr/include/armadillo "/usr/$(get_libdir)/R/site-library/${PN}/include/armadillo" |
61 |
+ |
62 |
+ dosym8 -r /usr/include/armadillo_bits "/usr/$(get_libdir)/R/site-library/${PN}/include/armadillo_bits" |
63 |
+ dosym8 -r /usr/include/armadillo "/usr/$(get_libdir)/R/site-library/${PN}/include/armadillo" |
64 |
} |