Gentoo Archives: gentoo-commits

From: Theo Anderson <telans@××××××.de>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: app-misc/cpufetch/files/, app-misc/cpufetch/
Date: Thu, 17 Jun 2021 05:55:51
Message-Id: 1623799705.42cc9f068e29c896d6e9692053e35fc108650435.telans@gentoo
1 commit: 42cc9f068e29c896d6e9692053e35fc108650435
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Tue Jun 15 23:26:38 2021 +0000
4 Commit: Theo Anderson <telans <AT> posteo <DOT> de>
5 CommitDate: Tue Jun 15 23:28:25 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=42cc9f06
7
8 app-misc/cpufetch: add 0.98
9
10 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
11
12 app-misc/cpufetch/Manifest | 1 +
13 app-misc/cpufetch/cpufetch-0.98.ebuild | 28 ++++++++++++++++++++
14 .../cpufetch/files/cpufetch-0.98-makefile.patch | 30 ++++++++++++++++++++++
15 3 files changed, 59 insertions(+)
16
17 diff --git a/app-misc/cpufetch/Manifest b/app-misc/cpufetch/Manifest
18 index 3f81ed860..a10492fa8 100644
19 --- a/app-misc/cpufetch/Manifest
20 +++ b/app-misc/cpufetch/Manifest
21 @@ -1 +1,2 @@
22 DIST cpufetch-0.94_p20210409.tar.gz 303151 BLAKE2B 0ad4d19e1cf07cf9692af4c81183ce7727eaf3638907e812b288070e325a9b8b2f39af611db5eb19a069935ac60238b234173ee20138d8744e919c7c53e68609 SHA512 2f914f37a84e8a43b80770ad4e1b4e7d3679a17a50330198e1d8bb0faff3485a0e667735b5bdf01317d99851530f01165fe80b789059b8668d42d595386e44fd
23 +DIST cpufetch-0.98.tar.gz 304203 BLAKE2B 71376f29337ac981aba993a74259e555d34ae6df0f8a2e04e7659608f2bae18fa6af4c31349601b7347566fd3d4c2ffa7cbf1752bc2b16b6513747201d2a2835 SHA512 e862a0b6472d4942a58359b203037391747f74d991ea71e77a64369695f39e3d9ab8d60c5888703683ce5258426f5211f9e54863649ad796e08c083888d9b076
24
25 diff --git a/app-misc/cpufetch/cpufetch-0.98.ebuild b/app-misc/cpufetch/cpufetch-0.98.ebuild
26 new file mode 100644
27 index 000000000..f0785779e
28 --- /dev/null
29 +++ b/app-misc/cpufetch/cpufetch-0.98.ebuild
30 @@ -0,0 +1,28 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit toolchain-funcs
37 +
38 +DESCRIPTION="Simplistic yet fancy CPU architecture fetching tool"
39 +HOMEPAGE="https://github.com/Dr-Noob/cpufetch"
40 +SRC_URI="https://github.com/Dr-Noob/cpufetch/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
41 +S="${WORKDIR}/${PN}-${PV}"
42 +LICENSE="MIT"
43 +SLOT="0"
44 +KEYWORDS="~amd64"
45 +
46 +PATCHES=( "${FILESDIR}/${P}-makefile.patch" )
47 +
48 +src_prepare() {
49 + default
50 + export CC=$(tc-getCC)
51 +}
52 +
53 +src_install() {
54 + dobin "${PN}"
55 + doman "${PN}.1"
56 + newdoc README.md README
57 + dodoc -r doc/.
58 +}
59
60 diff --git a/app-misc/cpufetch/files/cpufetch-0.98-makefile.patch b/app-misc/cpufetch/files/cpufetch-0.98-makefile.patch
61 new file mode 100644
62 index 000000000..16180c59e
63 --- /dev/null
64 +++ b/app-misc/cpufetch/files/cpufetch-0.98-makefile.patch
65 @@ -0,0 +1,30 @@
66 +--- a/Makefile
67 ++++ b/Makefile
68 +@@ -1,6 +1,4 @@
69 +-CC ?= gcc
70 +-
71 +-CFLAGS+=-Wall -Wextra -pedantic -fstack-protector-all -pedantic -std=c99
72 ++CFLAGS+=-Wall -Wextra -pedantic -std=c99
73 + SANITY_FLAGS=-Wfloat-equal -Wshadow -Wpointer-arith
74 +
75 + PREFIX ?= /usr
76 +@@ -35,17 +33,15 @@
77 + OUTPUT=cpufetch.exe
78 + endif
79 +
80 +-all: CFLAGS += -O3
81 + all: $(OUTPUT)
82 +
83 +-debug: CFLAGS += -g -O0
84 + debug: $(OUTPUT)
85 +
86 +-static: CFLAGS += -static -O3
87 ++static: CFLAGS += -static
88 + static: $(OUTPUT)
89 +
90 + $(OUTPUT): Makefile $(SOURCE) $(HEADERS)
91 +- $(CC) $(CFLAGS) $(SANITY_FLAGS) $(SOURCE) -o $(OUTPUT)
92 ++ $(CC) $(CFLAGS) $(LDFLAGS) $(SANITY_FLAGS) $(SOURCE) -o $(OUTPUT)
93 +
94 + run: $(OUTPUT)
95 + ./$(OUTPUT)