From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1663677-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 0FC4C15852A
	for <garchives@archives.gentoo.org>; Fri, 23 Aug 2024 12:01:17 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 0EC8AE29AF;
	Fri, 23 Aug 2024 12:01:15 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id E214DE29AF
	for <gentoo-commits@lists.gentoo.org>; Fri, 23 Aug 2024 12:01:14 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 1C9E7340C9C
	for <gentoo-commits@lists.gentoo.org>; Fri, 23 Aug 2024 12:01:14 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 76DE918EB
	for <gentoo-commits@lists.gentoo.org>; Fri, 23 Aug 2024 12:01:12 +0000 (UTC)
From: "Yixun Lan" <dlan@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Yixun Lan" <dlan@gentoo.org>
Message-ID: <1724414463.19f0705c6e86b660f36609753f3565c17953af26.dlan@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-power/thermald/
X-VCS-Repository: repo/gentoo
X-VCS-Files: sys-power/thermald/Manifest sys-power/thermald/thermald-2.5.8.ebuild
X-VCS-Directories: sys-power/thermald/
X-VCS-Committer: dlan
X-VCS-Committer-Name: Yixun Lan
X-VCS-Revision: 19f0705c6e86b660f36609753f3565c17953af26
X-VCS-Branch: master
Date: Fri, 23 Aug 2024 12:01:12 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 809af8ce-bacf-4ce7-856f-1e941d416fb1
X-Archives-Hash: 8dcb46d6f34c6c6af09a5c4d6da9cb73

commit:     19f0705c6e86b660f36609753f3565c17953af26
Author:     Yixun Lan <dlan <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 23 11:57:22 2024 +0000
Commit:     Yixun Lan <dlan <AT> gentoo <DOT> org>
CommitDate: Fri Aug 23 12:01:03 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19f0705c

sys-power/thermald: add 2.5.8

Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>

 sys-power/thermald/Manifest              |  1 +
 sys-power/thermald/thermald-2.5.8.ebuild | 55 ++++++++++++++++++++++++++++++++
 2 files changed, 56 insertions(+)

diff --git a/sys-power/thermald/Manifest b/sys-power/thermald/Manifest
index 45a3e78fd27a..d7fe303aa967 100644
--- a/sys-power/thermald/Manifest
+++ b/sys-power/thermald/Manifest
@@ -1 +1,2 @@
 DIST thermald-2.5.7.tar.gz 182761 BLAKE2B d812e1a7e0b55dd5d06ff491183ad0061acb79d2c80a6a248456821676bd3728e28a5d6b23d8fe2565ca8424830f095de8595e85bdfc514f17418af50d7e7284 SHA512 49699eb2a3f3d1197e680a39ecba767a1f11a5d4209671d30152f1e126f7c48b650909c4dd90c496a7857b0fa9ad6fc8c5a849413a8e544b3d5f62d8acfc8268
+DIST thermald-2.5.8.tar.gz 179188 BLAKE2B a00844e0147fdb104881624ba1ecbaa565155e4554b218b04b0edd4434f552e2bcc047e6eaada30b0e63b702a75318392ef8c39a8013003377c3e9ee80e694ab SHA512 d74d487e0fa0b51289b4cda2d9094eef6467993a8ca9ba5e2ac8af2fb8e7b9283116ca0647e604ab4d3c445657b31869201287d5ceace0221f7717b0a2cd244d

diff --git a/sys-power/thermald/thermald-2.5.8.ebuild b/sys-power/thermald/thermald-2.5.8.ebuild
new file mode 100644
index 000000000000..6f4162a4d8a5
--- /dev/null
+++ b/sys-power/thermald/thermald-2.5.8.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools linux-info out-of-source systemd
+
+DESCRIPTION="Thermal daemon for Intel architectures"
+HOMEPAGE="https://github.com/intel/thermal_daemon"
+SRC_URI="https://github.com/intel/thermal_daemon/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+S=${WORKDIR}/thermal_daemon-${PV}
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+	dev-libs/glib:=
+	dev-libs/libxml2:=
+	dev-libs/libevdev
+	sys-power/upower
+	sys-apps/dbus:="
+DEPEND="${RDEPEND}
+	dev-util/gtk-doc
+	dev-util/glib-utils"
+
+DOCS=( thermal_daemon_usage.txt README.txt )
+
+CONFIG_CHECK="~PERF_EVENTS_INTEL_RAPL ~X86_INTEL_PSTATE ~INTEL_POWERCLAMP ~INT340X_THERMAL ~ACPI_THERMAL_REL ~INT3406_THERMAL"
+
+src_prepare() {
+	sed -i -e '/tdrundir/s@\$localstatedir/run@\$runstatedir@' \
+		configure.ac || die
+
+	sed -i -e 's@\$(AM_V_GEN) glib-compile-resources@cd \$(top_srcdir) \&\& &@' \
+		Makefile.am || die
+
+	default
+	eautoreconf
+}
+
+my_src_configure() {
+	ECONF_SOURCE="${S}" econf \
+		--disable-werror \
+		--runstatedir="${EPREFIX}"/run \
+		--with-dbus-power-group=wheel \
+		--with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
+}
+
+my_src_install_all() {
+	einstalldocs
+
+	rm -rf "${ED}"/etc/init || die
+	doinitd "${FILESDIR}"/thermald
+}