1 |
commit: b1a05a38da86f25de5427125947629fe84381356 |
2 |
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
3 |
AuthorDate: Wed Feb 9 06:12:49 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=b1a05a38 |
7 |
|
8 |
dev-R/RcppEnsmallen: fix symlinks |
9 |
|
10 |
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in> |
11 |
|
12 |
.../RcppEnsmallen/RcppEnsmallen-0.2.17.0.1.ebuild | 26 +++++++++++----------- |
13 |
1 file changed, 13 insertions(+), 13 deletions(-) |
14 |
|
15 |
diff --git a/dev-R/RcppEnsmallen/RcppEnsmallen-0.2.17.0.1.ebuild b/dev-R/RcppEnsmallen/RcppEnsmallen-0.2.17.0.1.ebuild |
16 |
index 4a00cf0af..08436d0db 100644 |
17 |
--- a/dev-R/RcppEnsmallen/RcppEnsmallen-0.2.17.0.1.ebuild |
18 |
+++ b/dev-R/RcppEnsmallen/RcppEnsmallen-0.2.17.0.1.ebuild |
19 |
@@ -3,10 +3,9 @@ |
20 |
|
21 |
EAPI=7 |
22 |
|
23 |
-MYPV="$(ver_cut 2-4 ${PV})" |
24 |
- |
25 |
-inherit R-packages |
26 |
+inherit R-packages eapi8-dosym |
27 |
|
28 |
+MY_PV="$(ver_cut 2-4 ${PV})" |
29 |
DESCRIPTION='Header-Only C++ Mathematical Optimization library for armadillo' |
30 |
#SRC_URI="mirror://cran/src/contrib/RcppEnsmallen/RcppEnsmallen_${PV}.tar.gz" |
31 |
KEYWORDS="~amd64" |
32 |
@@ -15,26 +14,27 @@ LICENSE='GPL-2+' |
33 |
DEPEND=" |
34 |
>=dev-lang/R-3.3.0 |
35 |
dev-R/Rcpp |
36 |
- =sci-libs/ensmallen-${MYPV}* |
37 |
+ =sci-libs/ensmallen-${MY_PV}* |
38 |
" |
39 |
-RDEPEND=" |
40 |
- ${DEPEND} |
41 |
- dev-R/Rcpp |
42 |
+RDEPEND="${DEPEND} |
43 |
>=dev-R/RcppArmadillo-0.8.400.0.0 |
44 |
" |
45 |
|
46 |
src_prepare() { |
47 |
default |
48 |
- #remove bundled |
49 |
+ |
50 |
+ # remove bundled |
51 |
rm -r inst/include/ensmallen_bits || die |
52 |
rm inst/include/ensmallen.hpp || die |
53 |
- #link to sci-libs/ensmallen |
54 |
- dosym /usr/include/ensmallen_bits inst/include/ensmallen_bits |
55 |
- dosym /usr/include/ensmallen.hpp inst/include/ensmallen.hpp |
56 |
+ |
57 |
+ # link to sci-libs/ensmallen |
58 |
+ ln -s "${ESYSROOT}"/usr/include/ensmallen_bits inst/include/ensmallen_bits || die |
59 |
+ ln -s "${ESYSROOT}"/usr/include/ensmallen.hpp inst/include/ensmallen.hpp || die |
60 |
} |
61 |
|
62 |
src_install() { |
63 |
R-packages_src_install |
64 |
- dosym /usr/include/ensmallen_bits "/usr/$(get_libdir)/R/site-library/${PN}/include/ensmallen_bits" |
65 |
- dosym /usr/include/ensmallen.hpp "/usr/$(get_libdir)/R/site-library/${PN}/include/ensmallen.hpp" |
66 |
+ |
67 |
+ dosym8 -r /usr/include/ensmallen_bits "/usr/$(get_libdir)/R/site-library/${PN}/include/ensmallen_bits" |
68 |
+ dosym8 -r /usr/include/ensmallen.hpp "/usr/$(get_libdir)/R/site-library/${PN}/include/ensmallen.hpp" |
69 |
} |