summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-01-31 05:33:22 +0000
committerSam James <sam@gentoo.org>2022-01-31 23:59:58 +0000
commit9d673238b37622d80ea52de2aa512c6c50e7fa16 (patch)
tree003daadd155e8cdd560d904b71914908616d3a45 /eclass
parentdev-python/pip: Bump to 22.0.2 (diff)
downloadgentoo-9d673238b37622d80ea52de2aa512c6c50e7fa16.tar.gz
gentoo-9d673238b37622d80ea52de2aa512c6c50e7fa16.tar.bz2
gentoo-9d673238b37622d80ea52de2aa512c6c50e7fa16.zip
texlive-common.eclass: respect EPREFIX in symlink creation
Closes: https://bugs.gentoo.org/832408 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/texlive-common.eclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/texlive-common.eclass b/eclass/texlive-common.eclass
index 1fe33444f1e5..40e2c3530510 100644
--- a/eclass/texlive-common.eclass
+++ b/eclass/texlive-common.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: texlive-common.eclass
@@ -19,7 +19,7 @@ _TEXLIVE_COMMON_ECLASS=1
case ${EAPI:-0} in
[0-6]) die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}" ;;
- 7) ;;
+ 7) inherit eapi8-dosym ;;
*) die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}" ;;
esac
@@ -46,7 +46,7 @@ texlive-common_handle_config_files() {
dodir /etc/texmf/$(dirname ${f}).d
einfo "Moving (and symlinking) ${EPREFIX}${TEXMF_PATH}/${f} to ${EPREFIX}/etc/texmf/$(dirname ${f}).d"
mv "${ED}/${TEXMF_PATH}/${f}" "${ED}/etc/texmf/$(dirname ${f}).d" || die "mv ${f} failed."
- dosym /etc/texmf/$(dirname ${f}).d/$(basename ${f}) ${TEXMF_PATH}/${f}
+ dosym8 -r /etc/texmf/$(dirname ${f}).d/$(basename ${f}) ${TEXMF_PATH}/${f}
done < <(find -name '*.cnf' -type f -o -name '*.cfg' -type f | sed -e "s:\./::g")
}