From b3855d37c8eaa6c23d2f63d3f0fa01789e0f8b91 Mon Sep 17 00:00:00 2001 From: Gerben Jan Dijkman Date: Thu, 12 Aug 2021 17:47:35 +0200 Subject: [PATCH] Added gtherm --- sys-power/gtherm/Manifest | 1 + sys-power/gtherm/gtherm-0.0.2.ebuild | 42 ++++++++++++++++++++++++++++ sys-power/gtherm/metadata.xml | 8 ++++++ 3 files changed, 51 insertions(+) create mode 100644 sys-power/gtherm/Manifest create mode 100644 sys-power/gtherm/gtherm-0.0.2.ebuild create mode 100644 sys-power/gtherm/metadata.xml diff --git a/sys-power/gtherm/Manifest b/sys-power/gtherm/Manifest new file mode 100644 index 0000000..2e0a684 --- /dev/null +++ b/sys-power/gtherm/Manifest @@ -0,0 +1 @@ +DIST gtherm-0.0.2.tar.gz 39325 BLAKE2B 4ccf4d080de2c14014e4fac579b11a12e1007c7ed1aaf1d3e45f142e61f28a106d58c287315a3d0417552bab83e3ee8bce9a55cc344a1db0c6a0953a846f0ac7 SHA512 1241c19be3138dbe4e9d223236005a2eb7c1f3dbadd3bb3e083a273a0dd611acaf85e21df2c9d1f7ebe26afdefacfe0f7d2ba8960d18a3224a603b6e91e38a6b diff --git a/sys-power/gtherm/gtherm-0.0.2.ebuild b/sys-power/gtherm/gtherm-0.0.2.ebuild new file mode 100644 index 0000000..e24df31 --- /dev/null +++ b/sys-power/gtherm/gtherm-0.0.2.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +VALA_USE_DEPEND="vapigen" + +inherit meson systemd vala + +DESCRIPTION="A simple daemon to monitor thermal zones and cooling devices" +HOMEPAGE="https://source.puri.sm/Librem5/gtherm" +SRC_URI="https://source.puri.sm/Librem5/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm64" + +IUSE="+introspection +vala" +REQUIRED_USE="vala? ( introspection )" + +DEPEND=" + dev-libs/gobject-introspection + dev-util/gdbus-codegen + vala? ( $(vala_depend) ) +" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${PN}-v${PV}" + +src_prepare() { + eapply_user + use vala && vala_src_prepare +} + +src_install() { + meson_src_install + systemd_newuserunit "${S}"/debian/gthd.user.service "gthd.service" +} + +pkg_postinst() { + systemd_reenable --global gthd +} diff --git a/sys-power/gtherm/metadata.xml b/sys-power/gtherm/metadata.xml new file mode 100644 index 0000000..4fdf310 --- /dev/null +++ b/sys-power/gtherm/metadata.xml @@ -0,0 +1,8 @@ + + + + + gjdijkman@gjdwebserver.nl + Gerben Jan Dijkman + +