summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2015-06-09 10:43:40 +0000
committerMichał Górny <mgorny@gentoo.org>2015-06-09 10:43:40 +0000
commit523f636e7a23b1b82d28044b443f672e9a73bf32 (patch)
tree80a9f086fe26d7a78cc390dd35748025d6d99a26
parentVersion bump for Gnome 3.16. (diff)
downloadhistorical-523f636e7a23b1b82d28044b443f672e9a73bf32.tar.gz
historical-523f636e7a23b1b82d28044b443f672e9a73bf32.tar.bz2
historical-523f636e7a23b1b82d28044b443f672e9a73bf32.zip
Add a QA check for mis-installed gtk-doc files
-rw-r--r--metadata/install-qa-check.d/60gtk-doc-paths30
1 files changed, 30 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..81730d1b8deb
--- /dev/null
+++ b/metadata/install-qa-check.d/60gtk-doc-paths
@@ -0,0 +1,30 @@
+# 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() {
+ 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