summaryrefslogtreecommitdiff
path: root/metadata/install-qa-check.d
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /metadata/install-qa-check.d
reinit the tree, so we can have metadata
Diffstat (limited to 'metadata/install-qa-check.d')
-rw-r--r--metadata/install-qa-check.d/60gtk-doc-paths32
1 files changed, 32 insertions, 0 deletions
diff --git a/metadata/install-qa-check.d/60gtk-doc-paths b/metadata/install-qa-check.d/60gtk-doc-paths
new file mode 100644
index 000000000000..866e871c221a
--- /dev/null
+++ b/metadata/install-qa-check.d/60gtk-doc-paths
@@ -0,0 +1,32 @@
+# 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 <gnome@gentoo.org>
+
+gtk_doc_path_check() {
+ [[ -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)
+
+ 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