diff options
author | Matt Turner <mattst88@gentoo.org> | 2021-05-04 10:35:53 -0400 |
---|---|---|
committer | Matt Turner <mattst88@gentoo.org> | 2021-05-04 16:12:16 -0400 |
commit | 29744120a6b62882342edc5400bf8b17600e52ed (patch) | |
tree | c20c697859efeb658b297a3afc7381c06f9fd0a7 /gui-libs | |
parent | mail-client/mutt-2.0.7: version bump (diff) | |
download | gentoo-29744120a6b62882342edc5400bf8b17600e52ed.tar.gz gentoo-29744120a6b62882342edc5400bf8b17600e52ed.tar.bz2 gentoo-29744120a6b62882342edc5400bf8b17600e52ed.zip |
gui-libs/gtk: Install docs to html/
Suggested by Chris Mayo to avoid compressing included SVGs and fonts.
Thanks for David Michael for the initial patch.
Closes: https://bugs.gentoo.org/788082
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'gui-libs')
-rw-r--r-- | gui-libs/gtk/gtk-4.2.1.ebuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/gui-libs/gtk/gtk-4.2.1.ebuild b/gui-libs/gtk/gtk-4.2.1.ebuild index 2ab650d33e30..0b4e9dad9c1a 100644 --- a/gui-libs/gtk/gtk-4.2.1.ebuild +++ b/gui-libs/gtk/gtk-4.2.1.ebuild @@ -161,7 +161,19 @@ src_test() { src_install() { meson_src_install - mv "${ED}"/usr/share/doc/{gtk4,${P}} || die + + if use gtk-doc ; then + mkdir "${ED}"/usr/share/doc/${PF}/html || die + + local docdirs=( gdk4 gsk4 gtk4 ) + use wayland && docdirs+=( gdk4-wayland ) + use X && docdirs+=( gdk4-x11 ) + + local d + for d in "${docdirs[@]}"; do + mv "${ED}"/usr/share/doc/{${d},${PF}/html/} || die + done + fi } pkg_preinst() { |