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 DE8531382C5 for ; Tue, 6 Apr 2021 17:53:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 12876E0924; Tue, 6 Apr 2021 17:53:38 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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 B8032E0924 for ; Tue, 6 Apr 2021 17:53:37 +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 8B800335C29 for ; Tue, 6 Apr 2021 17:53:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DBBCA633 for ; Tue, 6 Apr 2021 17:53:34 +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: <1617731586.f058359a6c6d68abb404455ee5cb6f8524eb23dd.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.94_p20210406.ebuild app-misc/cpufetch/files/makefile.patch app-misc/cpufetch/metadata.xml X-VCS-Directories: app-misc/cpufetch/ app-misc/cpufetch/files/ X-VCS-Committer: Alessandro-Barbieri X-VCS-Committer-Name: Alessandro Barbieri X-VCS-Revision: f058359a6c6d68abb404455ee5cb6f8524eb23dd X-VCS-Branch: dev Date: Tue, 6 Apr 2021 17:53:34 +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: 121a4285-976c-4769-8fd3-26e54d7731f8 X-Archives-Hash: 5ebec55019650013e7c7cd6128e3b430 commit: f058359a6c6d68abb404455ee5cb6f8524eb23dd Author: Alessandro Barbieri gmail com> AuthorDate: Tue Apr 6 17:53:06 2021 +0000 Commit: Alessandro Barbieri gmail com> CommitDate: Tue Apr 6 17:53:06 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f058359a app-misc/cpufetch: new package Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Alessandro Barbieri gmail.com> app-misc/cpufetch/Manifest | 1 + app-misc/cpufetch/cpufetch-0.94_p20210406.ebuild | 22 +++++++++++ app-misc/cpufetch/files/makefile.patch | 50 ++++++++++++++++++++++++ app-misc/cpufetch/metadata.xml | 12 ++++++ 4 files changed, 85 insertions(+) diff --git a/app-misc/cpufetch/Manifest b/app-misc/cpufetch/Manifest new file mode 100644 index 000000000..31e76acc3 --- /dev/null +++ b/app-misc/cpufetch/Manifest @@ -0,0 +1 @@ +DIST cpufetch-0.94_p20210406.tar.gz 302546 BLAKE2B 799ba717ad799b9762623d668d842af793f375f04625dd3ec12e262eb0b0e6ab15b70f1f9dc59e26cd4cca75558fd9a2923c4c8e19aca77102a86a2847d62258 SHA512 1bdae50bb07e2d090b5f30f0b83a86a1d3e7755f284abd454be908626f1625712ab4a6129a9fadd17596a1248f03dd4c0131abe1e3df12ff06825793d19f678e diff --git a/app-misc/cpufetch/cpufetch-0.94_p20210406.ebuild b/app-misc/cpufetch/cpufetch-0.94_p20210406.ebuild new file mode 100644 index 000000000..305f33ba4 --- /dev/null +++ b/app-misc/cpufetch/cpufetch-0.94_p20210406.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +COMMIT="ec2ad4fef60b0e26f40b818a3968de7e83fb466c" +DESCRIPTION="Simplistic yet fancy CPU architecture fetching tool" +HOMEPAGE="https://github.com/Dr-Noob/cpufetch" +SRC_URI="https://github.com/Dr-Noob/cpufetch/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +PATCHES=( "${FILESDIR}/makefile.patch" ) +S="${WORKDIR}/${PN}-${COMMIT}" + +src_install() { + dobin "${PN}" + doman "${PN}.8" + newdoc README.md README + dodoc -r doc/. +} diff --git a/app-misc/cpufetch/files/makefile.patch b/app-misc/cpufetch/files/makefile.patch new file mode 100644 index 000000000..579726579 --- /dev/null +++ b/app-misc/cpufetch/files/makefile.patch @@ -0,0 +1,50 @@ +--- a/Makefile 2021-04-06 13:22:22.028931508 +0200 ++++ b/Makefile 2021-04-06 19:43:34.577370616 +0200 +@@ -1,6 +1,4 @@ +-CXX=gcc +- +-CXXFLAGS=-Wall -Wextra -Werror -pedantic -fstack-protector-all -pedantic -std=c99 ++CFLAGS += -Wall -Wextra -pedantic -std=c99 + SANITY_FLAGS=-Wfloat-equal -Wshadow -Wpointer-arith + + SRC_COMMON=src/common/ +@@ -14,12 +12,12 @@ + SRC_DIR=src/x86/ + SOURCE += $(COMMON_SRC) $(SRC_DIR)cpuid.c $(SRC_DIR)apic.c $(SRC_DIR)cpuid_asm.c $(SRC_DIR)uarch.c + HEADERS += $(COMMON_HDR) $(SRC_DIR)cpuid.h $(SRC_DIR)apic.h $(SRC_DIR)cpuid_asm.h $(SRC_DIR)uarch.h +- CXXFLAGS += -DARCH_X86 ++ CFLAGS += -DARCH_X86 + else + SRC_DIR=src/arm/ + SOURCE += $(COMMON_SRC) $(SRC_DIR)midr.c $(SRC_DIR)uarch.c $(SRC_DIR)soc.c $(SRC_DIR)udev.c + HEADERS += $(COMMON_HDR) $(SRC_DIR)midr.h $(SRC_DIR)uarch.h $(SRC_DIR)soc.h $(SRC_DIR)udev.c $(SRC_DIR)socs.h +- CXXFLAGS += -DARCH_ARM -Wno-unused-parameter ++ CFLAGS += -DARCH_ARM -Wno-unused-parameter + endif + + OUTPUT=cpufetch +@@ -28,21 +26,20 @@ + SRC_DIR=src/x86/ + SOURCE += $(COMMON_SRC) $(SRC_DIR)cpuid.c $(SRC_DIR)apic.c $(SRC_DIR)cpuid_asm.c $(SRC_DIR)uarch.c + HEADERS += $(COMMON_HDR) $(SRC_DIR)cpuid.h $(SRC_DIR)apic.h $(SRC_DIR)cpuid_asm.h $(SRC_DIR)uarch.h +- CXXFLAGS += -DARCH_X86 ++ CFLAGS += -DARCH_X86 + SANITY_FLAGS += -Wno-pedantic-ms-format + OUTPUT=cpufetch.exe + endif + + all: $(OUTPUT) + +-debug: CXXFLAGS += -g -O0 ++debug: CFLAGS += -g -O0 + debug: $(OUTPUT) + +-release: CXXFLAGS += -static -O3 + release: $(OUTPUT) + + $(OUTPUT): Makefile $(SOURCE) $(HEADERS) +- $(CXX) $(CXXFLAGS) $(SANITY_FLAGS) $(SOURCE) -o $(OUTPUT) ++ $(CC) $(CFLAGS) $(SANITY_FLAGS) $(SOURCE) -o $(OUTPUT) + + run: $(OUTPUT) + ./$(OUTPUT) diff --git a/app-misc/cpufetch/metadata.xml b/app-misc/cpufetch/metadata.xml new file mode 100644 index 000000000..8b0770685 --- /dev/null +++ b/app-misc/cpufetch/metadata.xml @@ -0,0 +1,12 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + + https://github.com/Dr-Noob/cpufetch/issues + Dr-Noob/cpufetch + +