commit: 91214b8ae170bfff3778a50ad59d7241f794b483
Author: Adrian Ratiu <adrian.ratiu <AT> collabora <DOT> com>
AuthorDate: Sun Mar 24 20:28:22 2024 +0000
Commit: Rui Huang <vowstar <AT> gmail <DOT> com>
CommitDate: Tue Mar 26 00:03:15 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=91214b8a
gui-apps/wob: add systemd use flag
so the service/socket files can be installed, they
are very useful to systemd users who want to start
wob that way.
Signed-off-by: Adrian Ratiu <adrian.ratiu <AT> collabora.com>
gui-apps/wob/metadata.xml | 1 +
gui-apps/wob/wob-0.15.1.ebuild | 14 ++++++++++++--
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/gui-apps/wob/metadata.xml b/gui-apps/wob/metadata.xml
index 253436a94a..e2802550e6 100644
--- a/gui-apps/wob/metadata.xml
+++ b/gui-apps/wob/metadata.xml
@@ -17,5 +17,6 @@
</upstream>
<use>
<flag name="seccomp">Linux kernel syscall filtering</flag>
+ <flag name="systemd">Install systemd service/socket files</flag>
</use>
</pkgmetadata>
diff --git a/gui-apps/wob/wob-0.15.1.ebuild b/gui-apps/wob/wob-0.15.1.ebuild
index e3698417ba..310a793b7a 100644
--- a/gui-apps/wob/wob-0.15.1.ebuild
+++ b/gui-apps/wob/wob-0.15.1.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit meson
+inherit meson systemd
DESCRIPTION="Lightweight overlay volume/backlight/progress/anything bar for
Wayland"
HOMEPAGE="https://github.com/francma/wob"
@@ -12,7 +12,7 @@
SRC_URI="https://github.com/francma/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="ISC"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="+man +seccomp test"
+IUSE="+man +seccomp test systemd"
RESTRICT="!test? ( test )"
RDEPEND="
@@ -37,3 +37,13 @@ src_configure() {
)
meson_src_configure
}
+
+src_install() {
+ meson_src_install
+
+ if use systemd; then
+ insinto $(systemd_get_userunitdir)
+ doins contrib/systemd/${PN}.service
+ doins contrib/systemd/${PN}.socket
+ fi
+}