# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit meson systemd DESCRIPTION="UPower-powered power alerter" HOMEPAGE="https://sr.ht/~kennylevinsen/poweralertd/" if [[ ${PV} == 9999 ]]; then inherit git-r3 EGIT_REPO_URI="https://git.sr.ht/~kennylevinsen/poweralertd" else SRC_URI="https://git.sr.ht/~kennylevinsen/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" KEYWORDS="~amd64 ~arm64 ~x86" fi LICENSE="GPL-3" SLOT="0" IUSE="elogind systemd" RDEPEND=" || ( systemd? ( sys-apps/systemd ) elogind? ( sys-auth/elogind ) sys-libs/basu ) sys-power/upower " DEPEND=" ${RDEPEND} " BDEPEND=" app-text/scdoc virtual/pkgconfig " src_configure() { meson_src_configure } src_install() { meson_src_install systemd_newuserunit contrib/systemd-user/poweralertd.service.in poweralertd.service }