diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2022-06-28 22:01:26 +0200 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2022-06-28 22:10:00 +0200 |
commit | b4d9af5ab7b05c599af5bd7c37a3c17876bb1ab8 (patch) | |
tree | d4b2cd94cf9a1b98630335d4b3e09559379e6c98 /sys-apps/cpuid | |
parent | dev-libs/intel-compute-runtime: add patch to remove `-D_FORTIFY_SOURCE=2` con... (diff) | |
download | gentoo-b4d9af5ab7b05c599af5bd7c37a3c17876bb1ab8.tar.gz gentoo-b4d9af5ab7b05c599af5bd7c37a3c17876bb1ab8.tar.bz2 gentoo-b4d9af5ab7b05c599af5bd7c37a3c17876bb1ab8.zip |
sys-apps/cpuid: add 20220620
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'sys-apps/cpuid')
-rw-r--r-- | sys-apps/cpuid/Manifest | 1 | ||||
-rw-r--r-- | sys-apps/cpuid/cpuid-20220620.ebuild | 35 | ||||
-rw-r--r-- | sys-apps/cpuid/files/cpuid-20220620-makefile.patch | 37 |
3 files changed, 73 insertions, 0 deletions
diff --git a/sys-apps/cpuid/Manifest b/sys-apps/cpuid/Manifest index bb7da4475442..519d498c327a 100644 --- a/sys-apps/cpuid/Manifest +++ b/sys-apps/cpuid/Manifest @@ -1 +1,2 @@ DIST cpuid-20220224.src.tar.gz 130706 BLAKE2B 78e0d8296ffafa6eb5a668561bb5c1834c8cffd020f0c052438381f72cddbfe8e85c3e4d662c6aff5224a0b147cd5e20cbce2240f791f2c857c4f584c87b4359 SHA512 7cf41d2429d442b4dfd5d369e394c11916352e16fc56852ea4af71945192903482bc45c38367ff5ae3f8d386ffc65cc61a9b0bec4594589a057557daf54d8562 +DIST cpuid-20220620.src.tar.gz 134487 BLAKE2B 37beeeef5bbeed47d762f093a568e18ac06b32b4c8c4d763656c5310c78b949c60aaf4e874b15485af15be1e31c389692a0ab277a95a0dcb0b66a7dbece50a52 SHA512 e06db43fb12efa1d112267993754965b8a2b07c914766a46a0fe6fdcf023606cfb132eac575726ad9ed7d0e6fc53d728a6d3d3d7abf2f484f002825c791da7b9 diff --git a/sys-apps/cpuid/cpuid-20220620.ebuild b/sys-apps/cpuid/cpuid-20220620.ebuild new file mode 100644 index 000000000000..0f77190b474c --- /dev/null +++ b/sys-apps/cpuid/cpuid-20220620.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="Linux tool to dump x86 CPUID information about the CPUs" +HOMEPAGE="http://www.etallen.com/cpuid.html" +SRC_URI="http://www.etallen.com/${PN}/${P}.src.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" + +BDEPEND=" + app-arch/gzip + dev-lang/perl +" + +DOCS=( "ChangeLog" "FUTURE" ) + +PATCHES=( "${FILESDIR}/${PN}-20220620-makefile.patch" ) + +src_prepare() { + default + + tc-export CC +} + +src_install() { + emake BUILDROOT="${ED}" install + + einstalldocs +} diff --git a/sys-apps/cpuid/files/cpuid-20220620-makefile.patch b/sys-apps/cpuid/files/cpuid-20220620-makefile.patch new file mode 100644 index 000000000000..301ba988f7c1 --- /dev/null +++ b/sys-apps/cpuid/files/cpuid-20220620-makefile.patch @@ -0,0 +1,37 @@ +--- a/Makefile ++++ b/Makefile +@@ -1,11 +1,11 @@ +-CFLAGS+=-g ++CFLAGS+= + CPPFLAGS?= + LDFLAGS?= + ifneq (,$(findstring arch=i386,$(CFLAGS))) + CISA=-m32 + endif + CFL=$(CPPFLAGS) $(CFLAGS) $(CISA) -Wall -W -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wimplicit-fallthrough -Wunused-parameter -Wundef -D_FILE_OFFSET_BITS=64 -DVERSION=$(VERSION) +-INSTALL_STRIP=-s ++INSTALL_STRIP= + + PACKAGE=cpuid + VERSION=20220620 +@@ -40,7 +40,7 @@ + + BUILDROOT=$(DESTDIR) + +-default: $(PROG) $(PROG).man.gz cpuinfo2cpuid cpuinfo2cpuid.man.gz ++default: $(PROG) cpuinfo2cpuid + + $(PROG): cpuid.c Makefile + $(CC) $(CFL) $(LDFLAGS) -o $@ cpuid.c +@@ -56,9 +56,9 @@ + + install: $(PROG) $(PROG).man.gz cpuinfo2cpuid cpuinfo2cpuid.man.gz + install -D $(INSTALL_STRIP) -m 755 $(PROG) $(BUILDROOT)/usr/bin/$(PROG) +- install -D -m 444 $(PROG).man.gz $(BUILDROOT)/usr/share/man/man1/$(PROG).1.gz ++ install -D -m 444 $(PROG).man $(BUILDROOT)/usr/share/man/man1/$(PROG).1 + install -D -m 755 cpuinfo2cpuid $(BUILDROOT)/usr/bin/cpuinfo2cpuid +- install -D -m 444 cpuinfo2cpuid.man.gz $(BUILDROOT)/usr/share/man/man1/cpuinfo2cpuid.1.gz ++ install -D -m 444 cpuinfo2cpuid.man $(BUILDROOT)/usr/share/man/man1/cpuinfo2cpuid.1 + + clean: + rm -f $(PROG) $(PROG).i386 $(PROG).x86_64 |