public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Alessandro Barbieri" <lssndrbarbieri@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-misc/cpufetch/files/, app-misc/cpufetch/
Date: Tue,  6 Apr 2021 17:53:34 +0000 (UTC)	[thread overview]
Message-ID: <1617731586.f058359a6c6d68abb404455ee5cb6f8524eb23dd.Alessandro-Barbieri@gentoo> (raw)

commit:     f058359a6c6d68abb404455ee5cb6f8524eb23dd
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Tue Apr  6 17:53:06 2021 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> 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 <lssndrbarbieri <AT> 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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>lssndrbarbieri@gmail.com</email>
+		<name>Alessandro Barbieri</name>
+	</maintainer>
+	<upstream>
+		<bugs-to>https://github.com/Dr-Noob/cpufetch/issues</bugs-to>
+		<remote-id type="github">Dr-Noob/cpufetch</remote-id>
+	</upstream>
+</pkgmetadata>


             reply	other threads:[~2021-04-06 17:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-06 17:53 Alessandro Barbieri [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-04-11  2:18 [gentoo-commits] repo/proj/guru:dev commit in: app-misc/cpufetch/files/, app-misc/cpufetch/ Alessandro Barbieri
2021-06-15 23:28 Alessandro Barbieri
2022-04-24 22:16 Alessandro Barbieri

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1617731586.f058359a6c6d68abb404455ee5cb6f8524eb23dd.Alessandro-Barbieri@gentoo \
    --to=lssndrbarbieri@gmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox