• [gentoo-dev] [PATCH] texlive-common.eclass: add EAPI 8

    From Thomas Bracht Laumann Jespersen@21:1/5 to All on Sat Apr 8 16:40:01 2023
    Signed-off-by: Thomas Bracht Laumann Jespersen <t@laumann.xyz>
    ---

    As an initial step in the work to add texlive 2023, let's start with adding EAPI
    8 support to texlive-common.eclass.

    Needs a consideration for dosym -r in one place, and also changes a test block with single brackets to double brackets.

    eclass/texlive-common.eclass | 9 ++++++---
    1 file changed, 6 insertions(+), 3 deletions(-)

    diff --git a/eclass/texlive-common.eclass b/eclass/texlive-common.eclass
    index f43d10926857..d9d9caf364f4 100644
    --- a/eclass/texlive-common.eclass
    +++ b/eclass/texlive-common.eclass
    @@ -1,176 +1,179 @@
    # Copyright 1999-2023 Gentoo Authors
    # Distributed under the terms of the GNU General Public License v2

    # @ECLASS: texlive-common.eclass
    # @MAINTAINER:
    # tex@gentoo.org
    # @AUTHOR:
    # Original Author: Alexis Ballier <aballier@gentoo.org>
    -# @SUPPORTED_EAPIS: 7
    +# @SUPPORTED_EAPIS: 7 8
    # @BLURB: Provide various functions used by both texlive-core and texlive modules
    # @DESCRIPTION:
    # Purpose: Provide various functions used by both texlive-core
  • From Ulrich Mueller@21:1/5 to All on Sat Apr 8 17:40:01 2023
    On Sat, 08 Apr 2023, Thomas Bracht Laumann Jespersen wrote:

    - [ -f "${mark}" ]
    + [[ -f "${mark}" ]]

    The quotes are no longer needed in [[ ]].

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Thomas Bracht Laumann Jespersen@21:1/5 to All on Sat Apr 8 21:40:01 2023
    - [ -f "${mark}" ]
    + [[ -f "${mark}" ]]

    The quotes are no longer needed in [[ ]].

    ack. Will include in a v2.

    I'll also add a patch to add EAPI 8 to texlive-module.eclass.

    -- Thomas

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Thomas Bracht Laumann Jespersen@21:1/5 to All on Sun Apr 9 18:00:01 2023
    Signed-off-by: Thomas Bracht Laumann Jespersen <t@laumann.xyz>
    ---
    v1 -> v2:

    * remove unnecessary quotation in [[ .. ]] construct as per ulm's feedback

    * add debug-print-function to all functions (just seems like a potentially
    useful addition)

    * remove blank line between function docs and declaration

    eclass/texlive-common.eclass | 23 +++++++++++++----------
    1 file changed, 13 insertions(+), 10 deletions(-)

    diff --git a/eclass/texlive-common.eclass b/eclass/texlive-common.eclass
    index f43d10926857..401ccce31519 100644
    --- a/eclass/texlive-common.eclass
    +++ b/eclass/texlive-common.eclass
    @@ -1,176 +1,179 @@
    # Copyright 1999-2023 Gentoo Authors
    # Distributed under the terms of the GNU General Public License v2

    # @ECLASS: texlive-common.eclass
    # @MAINTAINER:
    # tex@gentoo.org
    # @AUTHOR:
    # Original Author: Alexis Ballier <aballier@gentoo.org>
    -# @SUPPORTED_EAPIS: 7
    +# @SUPPORTED_EAPIS: 7 8
    # @BLURB: Provide various functions used by both texlive-core and texlive modules
    # @DESCRIPTION:
    # Purpose: Provide various functions u
  • From Thomas Bracht Laumann Jespersen@21:1/5 to All on Sun Apr 9 18:00:01 2023
    Signed-off-by: Thomas Bracht Laumann Jespersen <t@laumann.xyz>
    ---
    Does not appear to need any additional EAPI 8 considerations. Add debug-print-function lines to all functions.

    eclass/texlive-module.eclass | 23 +++++++++++++++--------
    1 file changed, 15 insertions(+), 8 deletions(-)

    diff --git a/eclass/texlive-module.eclass b/eclass/texlive-module.eclass
    index fea4003c37a8..b0e48587bb68 100644
    --- a/eclass/texlive-module.eclass
    +++ b/eclass/texlive-module.eclass
    @@ -1,453 +1,460 @@
    # Copyright 1999-2023 Gentoo Authors
    # Distributed under the terms of the GNU General Public License v2

    # @ECLASS: texlive-module.eclass
    # @MAINTAINER:
    # tex@gentoo.org
    # @AUTHOR:
    # Original Author: Alexis Ballier <aballier@gentoo.org>
    -# @SUPPORTED_EAPIS: 7
    +# @SUPPORTED_EAPIS: 7 8
    # @BLURB: Provide generic install functions so that modular texlive's texmf ebuild will only have to inherit this eclass
    # @DESCRIPTION:
    # Purpose: Provide generic install functions so that modular texlive's texmf ebuilds will
    # only have to inherit this eclass.
    # Ebuilds
  • From Thomas Bracht Laumann Jespersen@21:1/5 to All on Wed Apr 12 21:20:01 2023
    Signed-off-by: Thomas Bracht Laumann Jespersen <t@laumann.xyz>
    ---

    v2 -> v3:
    * Change ${@} to $@

    eclass/texlive-common.eclass | 23 +++++++++++++----------
    1 file changed, 13 insertions(+), 10 deletions(-)

    diff --git a/eclass/texlive-common.eclass b/eclass/texlive-common.eclass
    index f43d10926857..02ac9d72784a 100644
    --- a/eclass/texlive-common.eclass
    +++ b/eclass/texlive-common.eclass
    @@ -1,176 +1,179 @@
    # Copyright 1999-2023 Gentoo Authors
    # Distributed under the terms of the GNU General Public License v2

    # @ECLASS: texlive-common.eclass
    # @MAINTAINER:
    # tex@gentoo.org
    # @AUTHOR:
    # Original Author: Alexis Ballier <aballier@gentoo.org>
    -# @SUPPORTED_EAPIS: 7
    +# @SUPPORTED_EAPIS: 7 8
    # @BLURB: Provide various functions used by both texlive-core and texlive modules
    # @DESCRIPTION:
    # Purpose: Provide various functions used by both texlive-core and texlive
    # modules.
    #
    # Note that this eclass *must* not assume the presence of any standard tex too

    case ${EAPI} in
    7) inherit eapi8-dosym ;;
    + 8) ;;
    *) die "${ECLASS}: EA