summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'gnome-extra/cinnamon-session/cinnamon-session-5.2.0.ebuild')
-rw-r--r--gnome-extra/cinnamon-session/cinnamon-session-5.2.0.ebuild18
1 files changed, 17 insertions, 1 deletions
diff --git a/gnome-extra/cinnamon-session/cinnamon-session-5.2.0.ebuild b/gnome-extra/cinnamon-session/cinnamon-session-5.2.0.ebuild
index 002c659ae87b..c89d9864b142 100644
--- a/gnome-extra/cinnamon-session/cinnamon-session-5.2.0.ebuild
+++ b/gnome-extra/cinnamon-session/cinnamon-session-5.2.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -65,6 +65,22 @@ src_configure() {
meson_src_configure
}
+src_install() {
+ # A bit icky. Let the docs be installed in the wrong dir, then
+ # install them to the correct dir.
+ local dbus_doc_dir="${ED}/usr/share/doc/cinnamon-session/dbus"
+ use doc && local HTML_DOCS=( "$dbus_doc_dir" )
+
+ meson_src_install
+
+ # Clean-up the incorrectly installed docs.
+ # Fail if unhandled (new) files are encountered.
+ if use doc; then
+ rm -r "$dbus_doc_dir" || die
+ rm -d "${ED}/usr/share/doc/cinnamon-session" || die
+ fi
+}
+
pkg_postinst() {
xdg_icon_cache_update
gnome2_schemas_update