commit:     326dfe4e8b879e2b0d4d8c577a75b12e9d503cbe
Author:     DMLhope <605811524 <AT> qq <DOT> com>
AuthorDate: Tue Apr 30 03:09:24 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Mon May  6 10:46:35 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=326dfe4e

gui-apps/lan-mouse: Install desktop,icon,service files

Signed-off-by: DMLhope <605811524 <AT> qq.com>
Closes: https://github.com/gentoo/guru/pull/173
Signed-off-by: David Roman <davidroman96 <AT> gmail.com>

 gui-apps/lan-mouse/lan-mouse-0.7.3.ebuild | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/gui-apps/lan-mouse/lan-mouse-0.7.3.ebuild 
b/gui-apps/lan-mouse/lan-mouse-0.7.3.ebuild
index ab370364a8..6b1b354952 100644
--- a/gui-apps/lan-mouse/lan-mouse-0.7.3.ebuild
+++ b/gui-apps/lan-mouse/lan-mouse-0.7.3.ebuild
@@ -270,7 +270,14 @@ CRATES="
        [email protected]
 "
 
-inherit cargo
+inherit cargo desktop systemd xdg
+
+DEPEND="
+       gui-libs/libadwaita
+       gui-libs/gtk
+       x11-themes/hicolor-icon-theme
+"
+RDEPEND="${DEPEND}"
 
 DESCRIPTION="Software KVM Switch / mouse & keyboard sharing software for Local 
Area Networks"
 HOMEPAGE="https://github.com/feschber/lan-mouse";
@@ -287,3 +294,10 @@ LICENSE+="
 "
 SLOT="0"
 KEYWORDS="~amd64"
+
+src_install() {
+       cargo_src_install
+       doicon -s scalable resources/de.feschber.LanMouse.svg
+       domenu de.feschber.LanMouse.desktop
+       systemd_douserunit service/lan-mouse.service
+}

Reply via email to