From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BD10915838C for ; Tue, 16 Jan 2024 11:42:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 04D57E2AA0; Tue, 16 Jan 2024 11:42:28 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D5A3CE2AA0 for ; Tue, 16 Jan 2024 11:42:27 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EE2D9343268 for ; Tue, 16 Jan 2024 11:42:26 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 57DFA97B for ; Tue, 16 Jan 2024 11:42:25 +0000 (UTC) From: "Florian Schmaus" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Florian Schmaus" Message-ID: <1705405339.2ecb4d1e62ccd0ad0e14419233d5c4ca424d1547.flow@gentoo> Subject: [gentoo-commits] proj/tex-overlay:main commit in: eclass/ X-VCS-Repository: proj/tex-overlay X-VCS-Files: eclass/texlive-common.eclass X-VCS-Directories: eclass/ X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: 2ecb4d1e62ccd0ad0e14419233d5c4ca424d1547 X-VCS-Branch: main Date: Tue, 16 Jan 2024 11:42:25 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 43f965eb-ae7f-4f24-a9fa-eb9b313740c7 X-Archives-Hash: 3f728520fdff1ac7668e0f4b1c26f209 commit: 2ecb4d1e62ccd0ad0e14419233d5c4ca424d1547 Author: Florian Schmaus gentoo org> AuthorDate: Tue Jan 16 11:42:19 2024 +0000 Commit: Florian Schmaus gentoo org> CommitDate: Tue Jan 16 11:42:19 2024 +0000 URL: https://gitweb.gentoo.org/proj/tex-overlay.git/commit/?id=2ecb4d1e texlive-common.eclass: fix dosym usage Signed-off-by: Florian Schmaus gentoo.org> eclass/texlive-common.eclass | 6 ++++-- 1 file 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") }