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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 456E71382C5 for ; Tue, 15 Jun 2021 23:28:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A7A98E0901; Tue, 15 Jun 2021 23:28:33 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5EAFBE0901 for ; Tue, 15 Jun 2021 23:28:32 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5E36E340ED0 for ; Tue, 15 Jun 2021 23:28:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 348D47B2 for ; Tue, 15 Jun 2021 23:28:28 +0000 (UTC) From: "Alessandro Barbieri" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alessandro Barbieri" Message-ID: <1623799705.42cc9f068e29c896d6e9692053e35fc108650435.Alessandro-Barbieri@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-misc/cpufetch/files/, app-misc/cpufetch/ X-VCS-Repository: repo/proj/guru X-VCS-Files: app-misc/cpufetch/Manifest app-misc/cpufetch/cpufetch-0.98.ebuild app-misc/cpufetch/files/cpufetch-0.98-makefile.patch X-VCS-Directories: app-misc/cpufetch/ app-misc/cpufetch/files/ X-VCS-Committer: Alessandro-Barbieri X-VCS-Committer-Name: Alessandro Barbieri X-VCS-Revision: 42cc9f068e29c896d6e9692053e35fc108650435 X-VCS-Branch: dev Date: Tue, 15 Jun 2021 23:28:28 +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: 5616e29d-84b1-4ffd-afcc-35b042d07d1c X-Archives-Hash: cad3eba8bbdbbac6a81f6271e5b8c57b commit: 42cc9f068e29c896d6e9692053e35fc108650435 Author: Alessandro Barbieri gmail com> AuthorDate: Tue Jun 15 23:26:38 2021 +0000 Commit: Alessandro Barbieri gmail com> CommitDate: Tue Jun 15 23:28:25 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=42cc9f06 app-misc/cpufetch: add 0.98 Signed-off-by: Alessandro Barbieri gmail.com> app-misc/cpufetch/Manifest | 1 + app-misc/cpufetch/cpufetch-0.98.ebuild | 28 ++++++++++++++++++++ .../cpufetch/files/cpufetch-0.98-makefile.patch | 30 ++++++++++++++++++++++ 3 files changed, 59 insertions(+) diff --git a/app-misc/cpufetch/Manifest b/app-misc/cpufetch/Manifest index 3f81ed860..a10492fa8 100644 --- a/app-misc/cpufetch/Manifest +++ b/app-misc/cpufetch/Manifest @@ -1 +1,2 @@ DIST cpufetch-0.94_p20210409.tar.gz 303151 BLAKE2B 0ad4d19e1cf07cf9692af4c81183ce7727eaf3638907e812b288070e325a9b8b2f39af611db5eb19a069935ac60238b234173ee20138d8744e919c7c53e68609 SHA512 2f914f37a84e8a43b80770ad4e1b4e7d3679a17a50330198e1d8bb0faff3485a0e667735b5bdf01317d99851530f01165fe80b789059b8668d42d595386e44fd +DIST cpufetch-0.98.tar.gz 304203 BLAKE2B 71376f29337ac981aba993a74259e555d34ae6df0f8a2e04e7659608f2bae18fa6af4c31349601b7347566fd3d4c2ffa7cbf1752bc2b16b6513747201d2a2835 SHA512 e862a0b6472d4942a58359b203037391747f74d991ea71e77a64369695f39e3d9ab8d60c5888703683ce5258426f5211f9e54863649ad796e08c083888d9b076 diff --git a/app-misc/cpufetch/cpufetch-0.98.ebuild b/app-misc/cpufetch/cpufetch-0.98.ebuild new file mode 100644 index 000000000..f0785779e --- /dev/null +++ b/app-misc/cpufetch/cpufetch-0.98.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +DESCRIPTION="Simplistic yet fancy CPU architecture fetching tool" +HOMEPAGE="https://github.com/Dr-Noob/cpufetch" +SRC_URI="https://github.com/Dr-Noob/cpufetch/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${PV}" +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +PATCHES=( "${FILESDIR}/${P}-makefile.patch" ) + +src_prepare() { + default + export CC=$(tc-getCC) +} + +src_install() { + dobin "${PN}" + doman "${PN}.1" + newdoc README.md README + dodoc -r doc/. +} diff --git a/app-misc/cpufetch/files/cpufetch-0.98-makefile.patch b/app-misc/cpufetch/files/cpufetch-0.98-makefile.patch new file mode 100644 index 000000000..16180c59e --- /dev/null +++ b/app-misc/cpufetch/files/cpufetch-0.98-makefile.patch @@ -0,0 +1,30 @@ +--- a/Makefile ++++ b/Makefile +@@ -1,6 +1,4 @@ +-CC ?= gcc +- +-CFLAGS+=-Wall -Wextra -pedantic -fstack-protector-all -pedantic -std=c99 ++CFLAGS+=-Wall -Wextra -pedantic -std=c99 + SANITY_FLAGS=-Wfloat-equal -Wshadow -Wpointer-arith + + PREFIX ?= /usr +@@ -35,17 +33,15 @@ + OUTPUT=cpufetch.exe + endif + +-all: CFLAGS += -O3 + all: $(OUTPUT) + +-debug: CFLAGS += -g -O0 + debug: $(OUTPUT) + +-static: CFLAGS += -static -O3 ++static: CFLAGS += -static + static: $(OUTPUT) + + $(OUTPUT): Makefile $(SOURCE) $(HEADERS) +- $(CC) $(CFLAGS) $(SANITY_FLAGS) $(SOURCE) -o $(OUTPUT) ++ $(CC) $(CFLAGS) $(LDFLAGS) $(SANITY_FLAGS) $(SOURCE) -o $(OUTPUT) + + run: $(OUTPUT) + ./$(OUTPUT)