From 6cac5c86403fb7b3274ae91126b5ae98237e3535 Mon Sep 17 00:00:00 2001 From: Sam James Date: Fri, 4 Mar 2022 01:17:33 +0000 Subject: metadata/install-qa-check.d: fix 60gtk-doc-paths check for EAPI 7+ Signed-off-by: Sam James --- metadata/install-qa-check.d/60gtk-doc-paths | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'metadata') diff --git a/metadata/install-qa-check.d/60gtk-doc-paths b/metadata/install-qa-check.d/60gtk-doc-paths index 8c12c2604337..9f927cce8406 100644 --- a/metadata/install-qa-check.d/60gtk-doc-paths +++ b/metadata/install-qa-check.d/60gtk-doc-paths @@ -1,16 +1,16 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # QA check: ensure that gtk-doc files are installed in /usr/share/gtk-doc # Maintainer: GNOME team gtk_doc_path_check() { - [[ -d ${ED}usr/share/doc ]] || return + [[ -d ${ED%/}/usr/share/doc ]] || return local found=() f while read -d '' -r f; do found+=( "${f%/*}" ) - done < <(find "${ED}"usr/share/doc -name '*.devhelp*' -print0 || die) + done < <(find "${ED%/}"/usr/share/doc -name '*.devhelp*' -print0 || die) if [[ ${found[@]} ]]; then eqawarn @@ -19,9 +19,9 @@ gtk_doc_path_check() { eqawarn eqatag -v gtk-doc-paths.invalid-path "${found[@]#${D%/}}" eqawarn - eqawarn "gtk-doc documentation must always be installed into /usr/share/gtk-doc." + eqawarn "gtk-doc documentation must always be installed into ${EPREFIX}/usr/share/gtk-doc." eqawarn "For more details, please see the GNOME team policy page:" - eqawarn "https://wiki.gentoo.org/wiki/Project:GNOME/Gnome_Team_Ebuild_Policies#gtk-doc" + eqawarn "https://wiki.gentoo.org/wiki/Project:GNOME/Gnome_Team_Ebuild_Policies#Handling_gtk-doc_documentation" eqawarn fi } -- cgit v1.2.3-65-gdbad