commit: 1c31a12ab95fc7d66b83aae51dfed147cf633090 Author: Michael Palimaka <kensington <AT> gentoo <DOT> org> AuthorDate: Fri Aug 5 16:06:06 2016 +0000 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> CommitDate: Fri Aug 5 16:06:20 2016 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=1c31a12a
kde-plasma/breeze-gtk: install theme for gtk-3.20 breeze-gtk includes multiple theme versions, targeting different GTK versions. Previously the older gtk-3.0 theme was unconditionally installed despite newer versions for gtk-3.18 and gtk-3.20 being available. Upstream commit 93eb6e6ebcb825cd7b740069f02bc6ea3995aa19 changed this behaviour, introducing the build option WITH_GTK3_VERSION to select the appropriate theme version and install it to /usr/share/themes/Breeze/gtk-3.0. This option is not particularly useful for Gentoo as we currently ship both gtk-3.18 (stable) and gtk-3.20 (unstable) and there is no way for us to trigger a breeze-gtk rebuild if the gtk version changes. According to the documentation[1], GTK will search /usr/share/themes/<theme>/gtk-<version> and then earlier versions all the way back to 3.0. We therefore manually install the gtk-3.20 theme version to its versioned directory alonside with the older theme in its default location to ensure that the theme works correctly regardless of GTK version changes. In the future when <gtk-3.20 is removed from the tree we can remove this workaround and build with -DWITH_GTK3_VERSION=3.20 instead. 1: https://developer.gnome.org/gtk3/stable/GtkCssProvider.html#GtkCssProvider.description Package-Manager: portage-2.3.0 kde-plasma/breeze-gtk/breeze-gtk-5.7.49.9999.ebuild | 10 ++++++++++ kde-plasma/breeze-gtk/breeze-gtk-9999.ebuild | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/kde-plasma/breeze-gtk/breeze-gtk-5.7.49.9999.ebuild b/kde-plasma/breeze-gtk/breeze-gtk-5.7.49.9999.ebuild index dd13ca5..a8ec81f 100644 --- a/kde-plasma/breeze-gtk/breeze-gtk-5.7.49.9999.ebuild +++ b/kde-plasma/breeze-gtk/breeze-gtk-5.7.49.9999.ebuild @@ -11,3 +11,13 @@ HOMEPAGE="https://projects.kde.org/projects/kde/workspace/breeze-gtk" LICENSE="LGPL-2.1+" KEYWORDS="" IUSE="" + +src_install() { + kde5_src_install + + insinto /usr/share/themes/Breeze/gtk-3.20 + doins Breeze-gtk/gtk-3.20/gtk.css + + insinto /usr/share/themes/Breeze-Dark/gtk-3.20 + doins Breeze-dark-gtk/gtk-3.20/gtk.css +} diff --git a/kde-plasma/breeze-gtk/breeze-gtk-9999.ebuild b/kde-plasma/breeze-gtk/breeze-gtk-9999.ebuild index dd13ca5..a8ec81f 100644 --- a/kde-plasma/breeze-gtk/breeze-gtk-9999.ebuild +++ b/kde-plasma/breeze-gtk/breeze-gtk-9999.ebuild @@ -11,3 +11,13 @@ HOMEPAGE="https://projects.kde.org/projects/kde/workspace/breeze-gtk" LICENSE="LGPL-2.1+" KEYWORDS="" IUSE="" + +src_install() { + kde5_src_install + + insinto /usr/share/themes/Breeze/gtk-3.20 + doins Breeze-gtk/gtk-3.20/gtk.css + + insinto /usr/share/themes/Breeze-Dark/gtk-3.20 + doins Breeze-dark-gtk/gtk-3.20/gtk.css +}