commit:     0ade25a7a8793d8ee585ab5bf4e69fb4b5c8ad99
Author:     Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Wed Mar  6 09:30:10 2024 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Wed Mar  6 09:32:58 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ade25a7

app-text/texlive-core: make rm conditional, only enable uptex if USE=cjk, style 
fixes

Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 .../{texlive-core-2023-r2.ebuild => texlive-core-2023-r3.ebuild} | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/app-text/texlive-core/texlive-core-2023-r2.ebuild 
b/app-text/texlive-core/texlive-core-2023-r3.ebuild
similarity index 98%
rename from app-text/texlive-core/texlive-core-2023-r2.ebuild
rename to app-text/texlive-core/texlive-core-2023-r3.ebuild
index 829ec0c41671..634b0b626b9c 100644
--- a/app-text/texlive-core/texlive-core-2023-r2.ebuild
+++ b/app-text/texlive-core/texlive-core-2023-r3.ebuild
@@ -21,7 +21,7 @@ SRC_URI="
 "
 
 # Macros that are not a part of texlive-sources or or pulled in from 
collection-binextra
-# but still needed for other packages during installation
+# but still needed for other packages during installation.
 TL_CORE_EXTRA_CONTENTS="
        autosp.r58211
        axodraw2.r58155
@@ -304,7 +304,6 @@ src_configure() {
                $(use_with X x)
                $(use_enable xindy)
                --enable-ptex=no
-               --enable-uptex=no
                --enable-autosp=yes
                --enable-axodraw2=yes
                --enable-devnag=yes
@@ -415,7 +414,9 @@ src_install() {
        # by texmf-update
        rm "${ED}${TEXMF_PATH}/web2c/fmtutil.cnf" || die
 
-       rm "${ED}/usr/bin/"{,u}ptex || die
+       if use cjk; then
+               rm "${ED}/usr/bin/"{,u}ptex || die
+       fi
 
        dobin_texmf_scripts ${TEXLIVE_MODULE_BINSCRIPTS}
 
@@ -427,7 +428,7 @@ src_install() {
        done
 
        # https://bugs.gentoo.org/832139
-    rm "${ED}"/usr/bin/tlmgr || die
+       rm "${ED}"/usr/bin/tlmgr || die
 
        texlive-common_handle_config_files
 

Reply via email to