Pop-Up Thingie

>>> Magnum BBS <<<
  • Home
  • Forum
  • Files
  • Log in

  1. Forum
  2. Usenet
  3. LINUX.GENTOO.DEV
  • [gentoo-dev] [PATCH] texlive-common.eclass: Add TEXLIVE_SCRIPTS_W_FILE_

    From Florian Schmaus@21:1/5 to All on Tue Jul 16 11:40:01 2024
    Some scripts are supposed to be installed with file extensions [1, 2]. Add support for declaring those scripts in a new elcass variable TEXLIVE_SCRIPTS_W_FILE_EXT.

    Also use pure-bash functions to retrieve the basename and strip the file extensions. And use "declare -l" to lowercase the value of 'trg',
    instead of 'tr' [3].

    1: https://tug.org/pipermail/tldistro/2024q3/000485.html
    2: https://github.com/TeX-Live/texlive-source/blob/c087bab35570b1d5cb0afd272611a7a4ec3c9e38/texk/texlive/linked_scripts/Makefile.am#L332-L333
    3: https://github.com/TeX-Live/texlive-source/blob/c087bab35570b1d5cb0afd272611a7a4ec3c9e38/texk/texlive/linked_scripts/Makefile.am#L330

    Bug: https://bugs.gentoo.org/934975
    Signed-off-by: Florian Schmaus <flow@gentoo.org>
    ---
    eclass/texlive-common.eclass | 20 ++++++++++++++++++--
    1 file changed, 18 insertions(+), 2 deletions(-)

    diff --git a/eclass/texlive-common.eclass b/eclass/texlive-common.eclass
    index 072581dde78e..36b90a327fde 100644
    --- a/eclass/texlive-common.eclass
    +++ b/eclass/texlive-common.eclass
    @@ -42,6 +42,13 @@ _TEXLIVE_COMMON_ECLASS=1
    # @CODE
    : "${CTAN_MIRROR_URL:="https://mirrors.ctan.org"}"

    +# @ECLASS_VARIABLE: TEXLIVE_SCRIPTS_W_FILE_EXT
    +# @DEFAULT_UNSET
    +# @DESCRIPTION:
    +# If set, contains a space separated list of script names that should be
    +# linked including their file extensions, i.e., without stripping
    +# potentially existing filename extensions from the link's name.
    +
    # @FUNCTION: texlive-common_handle_config_files
    # @DESCRIPTION:
    # Has to be called in src_install after having installed the files in ${D}
    @@ -160,8 +167,17 @@ etexlinks() {
    # Called by app-text/epspdf and texlive-module.eclass.
    dobin_texmf_scripts() {
    while [[ ${#} -gt 0 ]] ; do
    - local trg
    - t
  • Who's Online

  • Recent Visitors

    • Gretchiie
      Mon Sep 15 05:16:29 2025
      from Derry, Nh via Telnet
    • Fred Blogs
      Mon Sep 15 00:03:12 2025
      from Uk via SSH
    • Plume
      Sun Sep 14 09:34:52 2025
      from Uk via Raw
    • Gretchiie
      Sun Sep 14 06:07:30 2025
      from Derry, Nh via Telnet
    • Thlc
      Sat Sep 13 17:11:34 2025
      from Rognac, France via Telnet
    • Thlc
      Sat Sep 13 17:04:03 2025
      from Rognac, France via Telnet
    • Thlc
      Sat Sep 13 16:32:19 2025
      from Rognac, France via SSH
    • Thlc
      Sat Sep 13 15:41:11 2025
      from Rognac, France via SSH
  • System Info

    Sysop: Keyop
    Location: Huddersfield, West Yorkshire, UK
    Users: 546
    Nodes: 16 (2 / 14)
    Uptime: 01:40:53
    Calls: 10,387
    Calls today: 2
    Files: 14,061
    Messages: 6,416,748

© >>> Magnum BBS <<<, 2025