• [gentoo-dev] [PATCH v2 1/2] latex-package.eclass: Properly quote variab

    From =?UTF-8?q?Ulrich=20M=C3=BCller?=@21:1/5 to All on Wed Apr 13 06:00:01 2022
    Bug: https://bugs.gentoo.org/379571
    Signed-off-by: Ulrich Müller <ulm@gentoo.org>
    ---
    eclass/latex-package.eclass | 40 +++++++++++++++++++------------------
    1 file changed, 21 insertions(+), 19 deletions(-)

    diff --git a/eclass/latex-package.eclass b/eclass/latex-package.eclass
    index 359b5177bb37..bee04b607de1 100644
    --- a/eclass/latex-package.eclass
    +++ b/eclass/latex-package.eclass
    @@ -1,4 +1,4 @@
    -# Copyright 1999-2020 Gentoo Authors
    +# Copyright 1999-2022 Gentoo Authors
    # Distributed under the terms of the GNU General Public License v2

    # @ECLASS: latex-package.eclass
    @@ -103,23 +103,24 @@ latex-package_src_doinstall() {
    case ${1} in
    "sh")
    while IFS= read -r -d '' i; do
    - dobin ${i}
    + dobin "${i}"
    done < <(find -maxdepth 1 -type f -name "*.${1}" -print0)
    ;;

    "sty" | "cls" | "fd" | "clo" | "def" | "cfg")
    while IFS= read -r -d '' i; do
    - insinto ${TEXMF}/tex/latex/${PN}
    - doins ${i}
    + insinto "${TEXMF}/tex/latex/${PN}"
    + doins "${i}"
    done < <(find -maxdepth 1 -type f -name "*.${1}" -print0)
  • From =?UTF-8?q?Ulrich=20M=C3=BCller?=@21:1/5 to All on Wed Apr 13 06:00:01 2022
    Create symlinks with dosym -r. Use debug-print-function. Document TEXMF.

    Signed-off-by: Ulrich Müller <ulm@gentoo.org>
    ---
    v2: Assign BDEPEND in EAPI 8

    eclass/latex-package.eclass | 44 +++++++++++++++++++++++--------------
    1 file changed, 27 insertions(+), 17 deletions(-)

    diff --git a/eclass/latex-package.eclass b/eclass/latex-package.eclass
    index bee04b607de1..e04671211824 100644
    --- a/eclass/latex-package.eclass
    +++ b/eclass/latex-package.eclass
    @@ -7,7 +7,7 @@
    # @AUTHOR:
    # Matthew Turk <satai@gentoo.org>
    # Martin Ehmsen <ehmsen@gentoo.org>
    -# @SUPPORTED_EAPIS: 7
    +# @SUPPORTED_EAPIS: 7 8
    # @BLURB: An eclass for easy installation of LaTeX packages
    # @DESCRIPTION:
    # This eClass is designed to be easy to use and implement. The vast majority of
    @@ -51,21 +51,29 @@
    # you must either grab each file individually, or find a place to mirror an
    # archive of them. (iBiblio)

    +case ${EAPI} in
    + 7) inherit eapi8-dosym ;;
    + 8) ;;
    + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
    +esac
    +
    if [[ -z ${_LATEX_PACKAGE_ECLASS} ]]; then
    _LATEX_PACKAGE_ECLASS=1

    RDEPEND="virtual/latex-base"
    -