• [gentoo-dev] [PATCH v3 2/2] latex-package.eclass: Support EAPI 8

    From =?UTF-8?q?Ulrich=20M=C3=BCller?=@21:1/5 to All on Wed Apr 13 15:20:01 2022
    - BDEPEND instead of DEPEND (partially reverts commit 595611085bc5)
    - Document TEXMF
    - Create symlinks with dosym -r
    - Use debug-print-function

    Signed-off-by: Ulrich Müller <ulm@gentoo.org>
    ---
    v3: Use BDEPEND instead of RDEPEND also in EAPI 7

    eclass/latex-package.eclass | 41 +++++++++++++++++++++----------------
    1 file changed, 23 insertions(+), 18 deletions(-)

    diff --git a/eclass/latex-package.eclass b/eclass/latex-package.eclass
    index bee04b607de1..784254aecf4f 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,24 @@
    # 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="v