From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3E1FD158009 for ; Sun, 18 Jun 2023 19:22:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 77921E087E; Sun, 18 Jun 2023 19:22:22 +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 5ED64E087E for ; Sun, 18 Jun 2023 19:22:22 +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 845CA340FB2 for ; Sun, 18 Jun 2023 19:22:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DB5DCA87 for ; Sun, 18 Jun 2023 19:22:19 +0000 (UTC) From: "Michael Orlitzky" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Orlitzky" Message-ID: <1687116062.03936c131f500d58b0b65f333fa0df5421448459.mjo@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-laptop/tp_smapi/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-laptop/tp_smapi/tp_smapi-0.43-r3.ebuild X-VCS-Directories: app-laptop/tp_smapi/ X-VCS-Committer: mjo X-VCS-Committer-Name: Michael Orlitzky X-VCS-Revision: 03936c131f500d58b0b65f333fa0df5421448459 X-VCS-Branch: master Date: Sun, 18 Jun 2023 19:22:19 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f87e3d1e-6a64-4a89-bb8e-c0703dbe759c X-Archives-Hash: 1af7f9d3f7ec03a1def28116d4a206a9 commit: 03936c131f500d58b0b65f333fa0df5421448459 Author: Michael Orlitzky gentoo org> AuthorDate: Sun Jun 18 18:55:18 2023 +0000 Commit: Michael Orlitzky gentoo org> CommitDate: Sun Jun 18 19:21:02 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03936c13 app-laptop/tp_smapi: migrate to linux-mod-r1.eclass (new revision). In addition: * Dropped the flag-o-matic eclass and the -msse,-mssse3 flag stripping. I think the underlying GCC behavior has changed since bug 492964 was filed. * No more sys-apps/dmidecode dependency. I don't see it in the source code anywhere. Closes: https://bugs.gentoo.org/908728 Signed-off-by: Michael Orlitzky gentoo.org> app-laptop/tp_smapi/tp_smapi-0.43-r3.ebuild | 46 +++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/app-laptop/tp_smapi/tp_smapi-0.43-r3.ebuild b/app-laptop/tp_smapi/tp_smapi-0.43-r3.ebuild new file mode 100644 index 000000000000..bf08d020ede7 --- /dev/null +++ b/app-laptop/tp_smapi/tp_smapi-0.43-r3.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit linux-mod-r1 + +DESCRIPTION="IBM ThinkPad SMAPI BIOS driver" +HOMEPAGE="https://github.com/evgeni/tp_smapi" +SRC_URI="https://github.com/evgeni/tp_smapi/releases/download/tp-smapi/${PV}/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="hdaps" + +pkg_setup() { + if use hdaps; then + local CONFIG_CHECK="~INPUT_UINPUT" + local WARNING_INPUT_UINPUT="Your kernel needs uinput for the hdaps module to perform better" + local CONFIG_CHECK="~!SENSORS_HDAPS" + local ERROR_SENSORS_HDAPS="${P} with USE=hdaps conflicts with in-kernel HDAPS (CONFIG_SENSORS_HDAPS)" + fi + + linux-mod-r1_pkg_setup +} + +src_compile() { + local modlist=( thinkpad_ec tp_smapi ) + local modargs=( KSRC=${KV_DIR} KBUILD=${KV_OUT_DIR} ) + + if use hdaps; then + modlist+=( hdaps ) + modargs+=( HDAPS=1 ) + fi + + linux-mod-r1_src_compile +} + +src_install() { + linux-mod-r1_src_install + + newinitd "${FILESDIR}/${PN}-0.40-initd" smapi + newconfd "${FILESDIR}/${PN}-0.40-confd" smapi +}