commit: 21bb8280314df3c51a74c8bf2c964a018424f66f Author: Remigiusz Micielski <rmicielski <AT> purelymail <DOT> com> AuthorDate: Sun Dec 3 09:27:50 2023 +0000 Commit: Remigiusz Micielski <remigiusz.micielski <AT> gmail <DOT> com> CommitDate: Sun Dec 3 09:30:44 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=21bb8280
gui-libs/xdg-desktop-portal-hyprland: install missing files Closes: https://bugs.gentoo.org/918925 Signed-off-by: Remigiusz Micielski <rmicielski <AT> purelymail.com> .../xdg-desktop-portal-hyprland-1.2.2.ebuild | 23 ++++++++++++++++++++-- .../xdg-desktop-portal-hyprland-1.2.5.ebuild | 23 ++++++++++++++++++++-- 2 files changed, 42 insertions(+), 4 deletions(-) diff --git a/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-1.2.2.ebuild b/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-1.2.2.ebuild index d48d4a07ed..4c9eb4dc37 100644 --- a/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-1.2.2.ebuild +++ b/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-1.2.2.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit cmake toolchain-funcs +inherit systemd cmake toolchain-funcs DESCRIPTION="xdg-desktop-portal backend for hyprland" HOMEPAGE="https://github.com/hyprwm/xdg-desktop-portal-hyprland" @@ -83,7 +83,26 @@ src_compile() { } src_install() { + LIBEXEC="/usr/libexec" + SYSTEMD_SERVICE="${S}/contrib/systemd/xdg-desktop-portal-hyprland.service" + DBUS_SERVICE="${S}/org.freedesktop.impl.portal.desktop.hyprland.service" + cmake_src_install - exeinto /usr/libexec + + exeinto $LIBEXEC doexe "${BUILD_DIR}/xdg-desktop-portal-hyprland" + + insinto /usr/share/xdg-desktop-portal/portals + doins "${S}/hyprland.portal" + + # systemd service + sed -i "s|@libexecdir@|${LIBEXEC}|g" "${SYSTEMD_SERVICE}.in" + mv "${SYSTEMD_SERVICE}.in" "${SYSTEMD_SERVICE}" || die + systemd_douserunit "${SYSTEMD_SERVICE}" + + # dbus service + sed -i "s|@libexecdir@|${LIBEXEC}|g" "${DBUS_SERVICE}.in" + mv "${DBUS_SERVICE}.in" "${DBUS_SERVICE}" + insinto /usr/share/dbus-1/services/ + doins "${DBUS_SERVICE}" } diff --git a/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-1.2.5.ebuild b/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-1.2.5.ebuild index d48d4a07ed..4c9eb4dc37 100644 --- a/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-1.2.5.ebuild +++ b/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-1.2.5.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit cmake toolchain-funcs +inherit systemd cmake toolchain-funcs DESCRIPTION="xdg-desktop-portal backend for hyprland" HOMEPAGE="https://github.com/hyprwm/xdg-desktop-portal-hyprland" @@ -83,7 +83,26 @@ src_compile() { } src_install() { + LIBEXEC="/usr/libexec" + SYSTEMD_SERVICE="${S}/contrib/systemd/xdg-desktop-portal-hyprland.service" + DBUS_SERVICE="${S}/org.freedesktop.impl.portal.desktop.hyprland.service" + cmake_src_install - exeinto /usr/libexec + + exeinto $LIBEXEC doexe "${BUILD_DIR}/xdg-desktop-portal-hyprland" + + insinto /usr/share/xdg-desktop-portal/portals + doins "${S}/hyprland.portal" + + # systemd service + sed -i "s|@libexecdir@|${LIBEXEC}|g" "${SYSTEMD_SERVICE}.in" + mv "${SYSTEMD_SERVICE}.in" "${SYSTEMD_SERVICE}" || die + systemd_douserunit "${SYSTEMD_SERVICE}" + + # dbus service + sed -i "s|@libexecdir@|${LIBEXEC}|g" "${DBUS_SERVICE}.in" + mv "${DBUS_SERVICE}.in" "${DBUS_SERVICE}" + insinto /usr/share/dbus-1/services/ + doins "${DBUS_SERVICE}" }
