diff options
author | 2023-08-03 09:32:41 +0200 | |
---|---|---|
committer | 2023-08-04 09:25:55 +0200 | |
commit | 4e1d7e84973a548a8040739984c4bd467d6f7838 (patch) | |
tree | 45dbbdc222a9d6ced7910a5cb9acb8a957668834 /eclass | |
parent | media-sound/mpvc: drop 1.1.3 (diff) | |
download | guru-4e1d7e84973a548a8040739984c4bd467d6f7838.tar.gz guru-4e1d7e84973a548a8040739984c4bd467d6f7838.tar.bz2 guru-4e1d7e84973a548a8040739984c4bd467d6f7838.zip |
R-packages.eclass: fix package installation
Instead of creating a symlink R/site-library -> /usr/share/doc
do it otherwise, linking /usr/share/doc -> R/site-library.
This way if nodoc is enabled symlinks won't be broken.
Signed-off-by: David Roman <droman@ifae.es>
Closes: https://github.com/gentoo/guru/pull/102
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/R-packages.eclass | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/eclass/R-packages.eclass b/eclass/R-packages.eclass index ed63cff46..6dac19a16 100644 --- a/eclass/R-packages.eclass +++ b/eclass/R-packages.eclass @@ -68,9 +68,11 @@ _movelink() { local source=${1} local dest=${2} if [[ -e "${source}" ]]; then - local rp_source="$(realpath ${source} || die)" - mv "${rp_source}" "${dest}" || die - cp -rsf "${dest}" "${rp_source}" || die + local rdir=/usr/$(get_libdir)/R/site-library/${CRAN_PN} + local rp_source="${rdir}/${source}" + insinto ${rdir} + doins -r ${source} + ln -s "${rp_source}" "${dest}" || die fi } @@ -162,11 +164,7 @@ R-packages_src_install() { fi if [[ -e doc ]]; then - pushd doc || die - for i in *; do - _movelink "${i}" "${EDOCDIR}/${i}" - done - popd || die + _movelink doc "${EDOCDIR}"/doc fi rm -f LICENSE || die |