summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Schmaus <flow@gentoo.org>2024-01-16 12:42:19 +0100
committerFlorian Schmaus <flow@gentoo.org>2024-01-16 12:42:19 +0100
commit2ecb4d1e62ccd0ad0e14419233d5c4ca424d1547 (patch)
tree3eb2f48126af418cdb53b54c3583c7d32775eb24
parenteclass: reduce diff, minor changes (diff)
downloadtex-overlay-2ecb4d1e62ccd0ad0e14419233d5c4ca424d1547.tar.gz
tex-overlay-2ecb4d1e62ccd0ad0e14419233d5c4ca424d1547.tar.bz2
tex-overlay-2ecb4d1e62ccd0ad0e14419233d5c4ca424d1547.zip
texlive-common.eclass: fix dosym usage
Signed-off-by: Florian Schmaus <flow@gentoo.org>
-rw-r--r--eclass/texlive-common.eclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/eclass/texlive-common.eclass b/eclass/texlive-common.eclass
index 5de5830..066a8f4 100644
--- a/eclass/texlive-common.eclass
+++ b/eclass/texlive-common.eclass
@@ -17,7 +17,6 @@
case ${EAPI} in
7)
inherit eapi8-dosym
- dosym(){ dosym8 "$@"; }
;;
8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
@@ -58,7 +57,10 @@ texlive-common_handle_config_files() {
dodir "/etc/texmf/${rel_dir}.d"
einfo "Moving (and symlinking) ${EPREFIX}${texmf_path}/${f} to ${EPREFIX}/etc/texmf/${rel_dir}.d"
mv "${ED}/${texmf_path}/${f}" "${ED}/etc/texmf/${rel_dir}.d" || die "mv ${f} failed."
- dosym -r "/etc/texmf/${rel_dir}.d/$(basename "${f}")" "${texmf_path}/${f}"
+
+ local dosym=dosym
+ [[ ${EAPI} == 7 ]] && dosym=dosym8
+ ${dosym} -r "/etc/texmf/${rel_dir}.d/$(basename "${f}")" "${texmf_path}/${f}"
done < <(find . -name '*.cnf' -type f -o -name '*.cfg' -type f | sed -e "s:\./::g")
}