commit:     1978e6362ddb808dc41c79348b9cf2e22f0a9124
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Mon Apr 11 00:56:42 2022 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Fri Apr 15 20:34:21 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1978e636

dev-R/RcppEnsmallen: use cp -rs to symlink all the headers

Closes: https://bugs.gentoo.org/833989
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 dev-R/RcppEnsmallen/RcppEnsmallen-0.2.17.0.1.ebuild | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/dev-R/RcppEnsmallen/RcppEnsmallen-0.2.17.0.1.ebuild 
b/dev-R/RcppEnsmallen/RcppEnsmallen-0.2.17.0.1.ebuild
index 129a0fa23..003cfc953 100644
--- a/dev-R/RcppEnsmallen/RcppEnsmallen-0.2.17.0.1.ebuild
+++ b/dev-R/RcppEnsmallen/RcppEnsmallen-0.2.17.0.1.ebuild
@@ -14,7 +14,7 @@ LICENSE='GPL-2+'
 DEPEND="
        >=dev-lang/R-3.3.0
        dev-R/Rcpp
-       =sci-libs/ensmallen-${MY_PV}*
+       =sci-libs/ensmallen-${MY_PV}*:=
 "
 RDEPEND="${DEPEND}
        >=dev-R/RcppArmadillo-0.8.400.0.0
@@ -38,9 +38,7 @@ src_install() {
        R_includedir="/usr/$(get_libdir)/R/site-library/${PN}/include"
        dosym8 -r /usr/include/ensmallen.hpp "${R_includedir}/ensmallen.hpp"
 
-       dodir /usr/include/ensmallen_bits
-       for file in "${ED}/${R_includedir}"/ensmallen_bits/*; do
-               filename=$(basename "${file}")
-               dosym8 -r /usr/include/ensmallen_bits/${filename} 
"${R_includedir}/ensmallen_bits/${filename}"
-       done
+       # portage doesn't like symlinks to folders, symlink all the files then
+       rm -rf "${ED}/${R_includedir}"/ensmallen_bits/* || die
+       cp -rs "/usr/include/ensmallen_bits" "${ED}/${R_includedir}" || die
 }

Reply via email to