public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Ben Kohler" <bkohler@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/hwinfo/
Date: Tue,  4 Oct 2022 15:35:54 +0000 (UTC)	[thread overview]
Message-ID: <1664897746.4f2cd9cb581c3643136c97bfd1c6dd1a5702839e.bkohler@gentoo> (raw)

commit:     4f2cd9cb581c3643136c97bfd1c6dd1a5702839e
Author:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
AuthorDate: Tue Oct  4 15:24:33 2022 +0000
Commit:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
CommitDate: Tue Oct  4 15:35:46 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f2cd9cb

sys-apps/hwinfo: fix pkgconfig file for musl

Closes: https://bugs.gentoo.org/874819

Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>

 sys-apps/hwinfo/hwinfo-22.1-r1.ebuild | 61 +++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)

diff --git a/sys-apps/hwinfo/hwinfo-22.1-r1.ebuild b/sys-apps/hwinfo/hwinfo-22.1-r1.ebuild
new file mode 100644
index 000000000000..0ca3f0bdb1a3
--- /dev/null
+++ b/sys-apps/hwinfo/hwinfo-22.1-r1.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.1.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}" LIBDIR="/usr/$(get_libdir)"
+}
+
+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}
+}


             reply	other threads:[~2022-10-04 15:35 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-04 15:35 Ben Kohler [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-04-04 10:30 [gentoo-commits] repo/gentoo:master commit in: sys-apps/hwinfo/ WANG Xuerui
2023-12-28 14:16 Ben Kohler
2023-11-02 12:47 Ben Kohler
2023-11-01 19:20 Arthur Zamarin
2023-10-02 14:52 Ben Kohler
2023-09-27 17:56 Ben Kohler
2023-07-08 18:43 Ben Kohler
2023-07-08 18:43 Ben Kohler
2023-06-01 14:46 Ben Kohler
2023-05-19 17:45 Sam James
2023-05-19 17:45 Sam James
2023-01-12 20:47 Ben Kohler
2022-10-04 15:50 Ben Kohler
2022-09-27  7:08 Agostino Sarubbo
2022-09-27  6:05 Jakov Smolić
2022-09-27  6:05 Jakov Smolić
2022-08-12 12:20 Ben Kohler
2022-07-17 13:41 Ben Kohler
2022-06-21 14:26 Ben Kohler
2022-06-21 12:56 Ben Kohler
2022-05-25 16:50 Jakov Smolić
2022-02-19 13:14 Ben Kohler
2022-02-18 17:54 Sam James
2022-02-18 17:47 Sam James
2022-02-18 17:47 Sam James
2022-01-22  6:03 Arthur Zamarin
2022-01-07 17:09 Ben Kohler
2021-09-28 17:33 Ben Kohler
2021-09-28 17:33 Ben Kohler
2021-09-23 18:31 Ben Kohler
2021-09-17  9:20 Agostino Sarubbo
2021-09-17  9:18 Agostino Sarubbo
2021-08-02 13:30 Ben Kohler
2021-07-13 13:44 Ben Kohler
2021-06-25 19:36 Sam James
2021-06-25 19:33 Sam James
2021-06-25 19:32 Sam James
2021-05-25 11:11 Ben Kohler
2021-05-18 14:15 Ben Kohler
2021-04-23 16:13 Sam James
2021-04-22 20:15 Sam James
2021-04-22 20:15 Sam James
2021-03-23 19:41 Ben Kohler
2018-07-23  1:09 Mikle Kolyada
2018-05-27 16:11 Aaron Bauman
2018-05-21 16:18 Mikle Kolyada
2018-03-04 10:12 Sergei Trofimovich
2017-12-18 16:40 Jason Zaman
2016-02-09 14:57 Justin Lecher
2016-02-09 14:39 Justin Lecher
2016-02-09 14:31 Justin Lecher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1664897746.4f2cd9cb581c3643136c97bfd1c6dd1a5702839e.bkohler@gentoo \
    --to=bkohler@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox