forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
60gtk-doc-paths
32 lines (26 loc) · 978 Bytes
/
60gtk-doc-paths
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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 <[email protected]>
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