summaryrefslogtreecommitdiff
path: root/sys-apps/hwinfo
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-01-12 23:47:29 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-01-12 23:47:29 +0000
commit175512fa7c74d0e48a7a1b40a6e456435af0481b (patch)
treeefa41b58f0ed5e41f23180a34d30d1cf928be390 /sys-apps/hwinfo
parent4d3b8f8b38eda2e6cfa39c2efcf4f9c4055c2d7d (diff)
gentoo auto-resync : 12:01:2023 - 23:47:29
Diffstat (limited to 'sys-apps/hwinfo')
-rw-r--r--sys-apps/hwinfo/Manifest2
-rw-r--r--sys-apps/hwinfo/hwinfo-22.2.ebuild61
2 files changed, 63 insertions, 0 deletions
diff --git a/sys-apps/hwinfo/Manifest b/sys-apps/hwinfo/Manifest
index c4606c088bf4..67b5fc593c79 100644
--- a/sys-apps/hwinfo/Manifest
+++ b/sys-apps/hwinfo/Manifest
@@ -1,6 +1,8 @@
DIST hwinfo-21.80-1.1.src.rpm 968192 BLAKE2B a11a1060137ff89504963c01c4129dcac93e8eea9747ea20272763f648068e8b4fb3f1c31ae761664b1b1ffedf32971b3b27804f125473f0367cc6eed03751bf SHA512 7bf64d9ee6b2381c43ffb22dc5623c8a8ed05c26b4e154c3093a9cb255779a1d482c18cd085b272ce619249743f1c43989337bed142685b4d6c634f4551893ee
DIST hwinfo-22.1-1.1.src.rpm 969862 BLAKE2B f295c941804d3264b45739fa3d1801c2e31d67ce50f49caafeaae5a4dbf809fcfb9b44eaefee6ac9c61f54c1639fe1cf7ba710a9bbae5c4adbc7b5740e706796 SHA512 83f5d2dc78dfb10987a57a52f194d5db38ec66e73daad8fdf08386b131cf862b6c7bc3404451550f91363bb3d4090e67ca36aeba001f506075e55721004f2759
+DIST hwinfo-22.2-1.1.src.rpm 1063003 BLAKE2B 9c786c7279fea0cbad17399f2f7360fdbb29f597277437edc63c2ca732b54c79f2ba53393a2258c7aa45e79588aa5d133e24f76744d5b62dd6072122432b4708 SHA512 88c60f551891685caf4e13e78eebf8e1023f168ef3542c319b7f9509ef5abd1c1c9acfa69e3af20ea9151e20682fa1e0c26042576bb9aca8ee7c2c71d5d5a60d
EBUILD hwinfo-21.80.ebuild 1561 BLAKE2B f66110bb40f16efaeade743b03ddc26b72cd7b875c4ecf6c4599f1729c0feaab83a3b3f24867630c46c38ccac6ac6010eacc0b8b655f1e3d03af8e4679330ce9 SHA512 b455efce4294dbbcba410c675df5f0c34c4e97b9fa065953db481faa060d51348619f3f6c1030e4eae8336749e717034a73501ecb347f19f03204d2058a133aa
EBUILD hwinfo-22.1-r1.ebuild 1601 BLAKE2B e23d4ce9ba384343871d30a7a171c27344c832cc08d32e6998a981264133e8a6541fa40e953a82c93fa10d2df2e8d1e37e58deae283a6da4b7a1fbb3ad182869 SHA512 466d6106c319ffc4d9f9d5fd1df56ba4e5cb248258484a28c70e7dd8be0156a8b88df4b997a2c3ae13223461331b30e0edf330def3b86cc2c503b92936a896e2
EBUILD hwinfo-22.1.ebuild 1561 BLAKE2B f66110bb40f16efaeade743b03ddc26b72cd7b875c4ecf6c4599f1729c0feaab83a3b3f24867630c46c38ccac6ac6010eacc0b8b655f1e3d03af8e4679330ce9 SHA512 b455efce4294dbbcba410c675df5f0c34c4e97b9fa065953db481faa060d51348619f3f6c1030e4eae8336749e717034a73501ecb347f19f03204d2058a133aa
+EBUILD hwinfo-22.2.ebuild 1601 BLAKE2B bae718118232e68188aa0b6d4d6a8b2b7e823f433be254fce6f1703c64fcab844570598158485d9c21a8ab98d05c3afe28e46c650beec932307eefc75d565849 SHA512 504a9badaac4e265b593291a8c83f2af72bac2a548d501abc3cd97ce6af07853b42c0c6ab6978828c8d259db11da03f977fc82246a21632d5b3affc3ab26c2bb
MISC metadata.xml 335 BLAKE2B 038b3d0d2c3215e9c141823f3578880ecb43da74b991cce36793a6af5b3549603ad1fa95c1bbe477126c3b84f6493099400d8914d94cdbe1c557b0166c0ca43b SHA512 e24489f0c20cc1cd356f7059c4a2a8d02b2f39fcb43df0d685977ce6e1593c134420daf6d940f96f08fd0d19026618d89946e6ff0a24f449be5d5c8910b10581
diff --git a/sys-apps/hwinfo/hwinfo-22.2.ebuild b/sys-apps/hwinfo/hwinfo-22.2.ebuild
new file mode 100644
index 000000000000..a1d640170ff5
--- /dev/null
+++ b/sys-apps/hwinfo/hwinfo-22.2.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2023 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="${EPREFIX}/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}
+}