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

    From =?UTF-8?q?Ulrich=20M=C3=BCller?=@21:1/5 to All on Mon Apr 11 17:30:01 2022
    Bug: https://bugs.gentoo.org/379571
    Signed-off-by: Ulrich Müller <[email protected]>
    ---
    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 Mon Apr 11 17:30:01 2022
    Create symlinks with dosym -r. Use debug-print-function. Document TEXMF.

    Signed-off-by: Ulrich Müller <[email protected]>
    ---
    eclass/latex-package.eclass | 39 +++++++++++++++++++++----------------
    1 file changed, 22 insertions(+), 17 deletions(-)

    diff --git a/eclass/latex-package.eclass b/eclass/latex-package.eclass
    index bee04b607de1..426444ba0427 100644
    --- a/eclass/latex-package.eclass
    +++ b/eclass/latex-package.eclass
    @@ -7,7 +7,7 @@
    # @AUTHOR:
    # Matthew Turk <[email protected]>
    # Martin Ehmsen <[email protected]>
    -# @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,6 +51,12 @@
    # 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

    @@ -58,14 +64,11 @@ RDEPEND="virtual/latex-base"
    DEPEND="${RDEP