diff options
author | Adrian Ratiu <adrian.ratiu@collabora.com> | 2024-03-24 22:28:22 +0200 |
---|---|---|
committer | Adrian Ratiu <adrian.ratiu@collabora.com> | 2024-03-26 02:03:15 +0200 |
commit | 91214b8ae170bfff3778a50ad59d7241f794b483 (patch) | |
tree | 90da52c172a3d8a49e438ca7d9df5a75602eedf7 /gui-apps/wob | |
parent | sys-boot/mkusb: new package (diff) | |
download | guru-91214b8ae170bfff3778a50ad59d7241f794b483.tar.gz guru-91214b8ae170bfff3778a50ad59d7241f794b483.tar.bz2 guru-91214b8ae170bfff3778a50ad59d7241f794b483.zip |
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@collabora.com>
Diffstat (limited to 'gui-apps/wob')
-rw-r--r-- | gui-apps/wob/metadata.xml | 1 | ||||
-rw-r--r-- | 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 253436a94..e2802550e 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 e3698417b..310a793b7 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 +} |