mgorny      15/06/09 10:43:40

  Added:                60gtk-doc-paths
  Log:
  Add a QA check for mis-installed gtk-doc files

Revision  Changes    Path
1.1                  metadata/install-qa-check.d/60gtk-doc-paths

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/metadata/install-qa-check.d/60gtk-doc-paths?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/metadata/install-qa-check.d/60gtk-doc-paths?rev=1.1&content-type=text/plain

Index: 60gtk-doc-paths
===================================================================
# Copyright 1999-2015 Gentoo Foundation
# 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 <[email protected]>

gtk_doc_path_check() {
        local found=() f
        while read -d '' -r f; do
                found+=( "${f%/*}" )
        done < <(find "${ED}"usr/share/doc -name '*.devhelp*' -print0)

        if [[ ${found[@]} ]]; then
                eqawarn
                eqawarn "This package seems to install gtk-doc documentation 
into the following"
                eqawarn "location(s):"
                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 "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
        fi
}

gtk_doc_path_check
: # guarantee successful exit

# vim:ft=sh




Reply via email to