Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: gui-libs/gtk/
Date: Tue, 04 May 2021 20:12:42
Message-Id: 1620159136.29744120a6b62882342edc5400bf8b17600e52ed.mattst88@gentoo
1 commit: 29744120a6b62882342edc5400bf8b17600e52ed
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 4 14:35:53 2021 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Tue May 4 20:12:16 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29744120
7
8 gui-libs/gtk: Install docs to html/
9
10 Suggested by Chris Mayo to avoid compressing included SVGs and fonts.
11 Thanks for David Michael for the initial patch.
12
13 Closes: https://bugs.gentoo.org/788082
14 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
15
16 gui-libs/gtk/gtk-4.2.1.ebuild | 14 +++++++++++++-
17 1 file changed, 13 insertions(+), 1 deletion(-)
18
19 diff --git a/gui-libs/gtk/gtk-4.2.1.ebuild b/gui-libs/gtk/gtk-4.2.1.ebuild
20 index 2ab650d33e3..0b4e9dad9c1 100644
21 --- a/gui-libs/gtk/gtk-4.2.1.ebuild
22 +++ b/gui-libs/gtk/gtk-4.2.1.ebuild
23 @@ -161,7 +161,19 @@ src_test() {
24
25 src_install() {
26 meson_src_install
27 - mv "${ED}"/usr/share/doc/{gtk4,${P}} || die
28 +
29 + if use gtk-doc ; then
30 + mkdir "${ED}"/usr/share/doc/${PF}/html || die
31 +
32 + local docdirs=( gdk4 gsk4 gtk4 )
33 + use wayland && docdirs+=( gdk4-wayland )
34 + use X && docdirs+=( gdk4-x11 )
35 +
36 + local d
37 + for d in "${docdirs[@]}"; do
38 + mv "${ED}"/usr/share/doc/{${d},${PF}/html/} || die
39 + done
40 + fi
41 }
42
43 pkg_preinst() {