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 5DB4B158094 for ; Tue, 21 Jun 2022 12:56:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 69317E0894; Tue, 21 Jun 2022 12:56:46 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 53386E0894 for ; Tue, 21 Jun 2022 12:56:46 +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 4264B3413B5 for ; Tue, 21 Jun 2022 12:56:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7B34E7F for ; Tue, 21 Jun 2022 12:56:43 +0000 (UTC) From: "Ben Kohler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ben Kohler" Message-ID: <1655816187.32d43edfeebc789977b7ce416fd0e176c1198bbc.bkohler@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/hwinfo/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/hwinfo/Manifest sys-apps/hwinfo/hwinfo-21.81.ebuild X-VCS-Directories: sys-apps/hwinfo/ X-VCS-Committer: bkohler X-VCS-Committer-Name: Ben Kohler X-VCS-Revision: 32d43edfeebc789977b7ce416fd0e176c1198bbc X-VCS-Branch: master Date: Tue, 21 Jun 2022 12:56:43 +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: 43da2d74-d8b7-44a6-b0f1-82e76245a9e1 X-Archives-Hash: 24de8467b45f2f82b886fd9961cfb66c commit: 32d43edfeebc789977b7ce416fd0e176c1198bbc Author: Ben Kohler gentoo org> AuthorDate: Wed Jun 15 14:13:41 2022 +0000 Commit: Ben Kohler gentoo org> CommitDate: Tue Jun 21 12:56:27 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32d43edf sys-apps/hwinfo: add 21.81 Signed-off-by: Ben Kohler gentoo.org> sys-apps/hwinfo/Manifest | 1 + sys-apps/hwinfo/hwinfo-21.81.ebuild | 61 +++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) diff --git a/sys-apps/hwinfo/Manifest b/sys-apps/hwinfo/Manifest index fb6d195bae2f..87a4a3565711 100644 --- a/sys-apps/hwinfo/Manifest +++ b/sys-apps/hwinfo/Manifest @@ -1 +1,2 @@ DIST hwinfo-21.80-1.1.src.rpm 968192 BLAKE2B a11a1060137ff89504963c01c4129dcac93e8eea9747ea20272763f648068e8b4fb3f1c31ae761664b1b1ffedf32971b3b27804f125473f0367cc6eed03751bf SHA512 7bf64d9ee6b2381c43ffb22dc5623c8a8ed05c26b4e154c3093a9cb255779a1d482c18cd085b272ce619249743f1c43989337bed142685b4d6c634f4551893ee +DIST hwinfo-21.81-1.2.src.rpm 967952 BLAKE2B bc6938412c3736621f4ab42ed858a34f47dc9fee3ff9ecb1c9ea322ac93cbd897de1be18384ce4474e3f54ae2605baac153dea4c3f243a0557c5d2c5103eb38c SHA512 acd52647de48efe964b6eab8da27c3e44ba27ffedd5ec8b4f891c7684767eadc61018db9c56a528d479045bfe10068ba7d455a4ca48d7896cfa9675ac3ff3cc3 diff --git a/sys-apps/hwinfo/hwinfo-21.81.ebuild b/sys-apps/hwinfo/hwinfo-21.81.ebuild new file mode 100644 index 000000000000..699dfb25c9ed --- /dev/null +++ b/sys-apps/hwinfo/hwinfo-21.81.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit rpm toolchain-funcs + +DESCRIPTION="Hardware detection tool used in SuSE Linux" +HOMEPAGE="https://github.com/openSUSE/hwinfo/" +#Using srpms from SUSE to get pregenerated changelog, otherwise we could use GH +#SRC_URI="https://github.com/openSUSE/hwinfo/archive/${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI="http://download.opensuse.org/tumbleweed/repo/src-oss/src/${P}-1.2.src.rpm" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~riscv ~x86 ~amd64-linux ~x86-linux" +IUSE="" + +RDEPEND=" + amd64? ( dev-libs/libx86emu ) + x86? ( dev-libs/libx86emu )" +DEPEND="${RDEPEND} + sys-devel/flex + >=sys-kernel/linux-headers-2.6.17" + +MAKEOPTS="${MAKEOPTS} -j1" + +src_prepare() { + # Respect AR variable. + sed -i \ + -e 's:ar r:$(AR) r:' \ + src/{,isdn,ids,smp,hd}/Makefile || die + + # Respect LDFLAGS. + sed -i -e 's:$(CC) $(CFLAGS):$(CC) $(LDFLAGS) $(CFLAGS):' src/ids/Makefile || die + + # Respect MAKE variable. Skip forced -pipe and -g. Respect LDFLAGS. + sed -i \ + -e 's:make:$(MAKE):' \ + -e 's:-pipe -g::' \ + -e 's:LDFLAGS.*=:LDFLAGS +=:' \ + Makefile{,.common} || die + # Workaround from Arch, if using source tarballs from github + # echo 'touch changelog' > git2log + default +} + +src_compile() { + tc-export AR + emake CC="$(tc-getCC)" RPM_OPT_FLAGS="${CFLAGS}" +} + +src_install() { + emake DESTDIR="${ED}" LIBDIR="/usr/$(get_libdir)" install + keepdir /var/lib/hardware/udi + + dodoc changelog README* + docinto examples + dodoc doc/example*.c + doman doc/*.{1,8} +}