Gentoo Archives: gentoo-commits

From: Florian Schmaus <flow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-R/RcppEnsmallen/
Date: Sun, 20 Feb 2022 08:46:11
Message-Id: 1645132276.bb877d15ee0102500c2b36da74b05215c783b510.flow@gentoo
1 commit: bb877d15ee0102500c2b36da74b05215c783b510
2 Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
3 AuthorDate: Mon Feb 14 18:14:46 2022 +0000
4 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 17 21:11:16 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=bb877d15
7
8 dev-R/RcppEnsmallen: fix illegal dosym usage
9
10 Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
11
12 dev-R/RcppEnsmallen/RcppEnsmallen-0.2.17.0.1.ebuild | 9 +++++++--
13 1 file changed, 7 insertions(+), 2 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 08436d0db..3914b1ab7 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 @@ -35,6 +35,11 @@ src_prepare() {
20 src_install() {
21 R-packages_src_install
22
23 - dosym8 -r /usr/include/ensmallen_bits "/usr/$(get_libdir)/R/site-library/${PN}/include/ensmallen_bits"
24 - dosym8 -r /usr/include/ensmallen.hpp "/usr/$(get_libdir)/R/site-library/${PN}/include/ensmallen.hpp"
25 + R_includedir="/usr/$(get_libdir)/R/site-library/${PN}/include"
26 + dosym8 -r /usr/include/ensmallen.hpp "${R_includedir}/ensmallen.hpp"
27 +
28 + for file in "${ED}/${R_includedir}"/ensmallen_bits/*; do
29 + filename=$(basename "${file}")
30 + dosym8 -r /usr/include/ensmallen_bits/${file} "${R_includedir}/ensmallen_bits/${file}"
31 + done
32 }