[gentoo-commits] repo/proj/guru:dev commit in: app-misc/cpufetch/files/, app-misc/cpufetch/

2022-04-24 Thread Alessandro Barbieri
commit: bd410ca1c1ab984a18166ebfe63b52885a6340b3
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Sun Apr 24 21:43:40 2022 +
Commit: Alessandro Barbieri  gmail  com>
CommitDate: Sun Apr 24 22:16:28 2022 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=bd410ca1

app-misc/cpufetch: add 1.02, drop 1.00

Signed-off-by: Alessandro Barbieri  gmail.com>

 app-misc/cpufetch/Manifest |  2 +-
 .../{cpufetch-1.00.ebuild => cpufetch-1.02.ebuild} |  6 +--
 ...makefile.patch => cpufetch-1.02-makefile.patch} | 44 +++---
 3 files changed, 26 insertions(+), 26 deletions(-)

diff --git a/app-misc/cpufetch/Manifest b/app-misc/cpufetch/Manifest
index cadda1cda..2cd52201d 100644
--- a/app-misc/cpufetch/Manifest
+++ b/app-misc/cpufetch/Manifest
@@ -1,2 +1,2 @@
-DIST cpufetch-1.00.tar.gz 317439 BLAKE2B 
8fdf21bebfd6d2ef760cc388b6da2d5c0665964ebcad2537e06c1bede40fffb151a5e37665ab52f2ec31f48a25c3aeb895e820b03ab7ec37d50a85e1bdce3a2b
 SHA512 
94be5c5aacf9e5cde4fd4e4b14e433db523821fc27466c599e34c062ca32145edb0c8f84168e07c8a64f591fee1f5ab704d569bb70c53b7523d52f4882b573a1
 DIST cpufetch-1.01.tar.gz 2759620 BLAKE2B 
4d16cc0b1be94706b3e5d9481a2846d8c90807b792212389e7159739952d8df3f3cc02f6e828e53fe17a51ecba4370a273c5152c0af237fa0cededac88c76e3f
 SHA512 
069580b6dd548af394c28b74af72b2979be16a69879c51c42e2f26611ea8bf78412bedb6bbc6ddbfd2f98f8b26f930cc2d8afcc81e4d6494c382cfec9de771c1
+DIST cpufetch-1.02.tar.gz 2767499 BLAKE2B 
041ac6ac304faa6fb2cc71fb4841d8e9a263d57ae6b79e0d6cdcf5149fd6bf0e89135f9f7eeaf25681d4a4ad73861d2eb45883cee1626b0cfa1bc21957110e44
 SHA512 
b548af4dccd632c2899a3b0fd70e67f7abdc4bd66371927876c851168d0df47e23bd8f798d82509b83b268c50b0e9a6697a56f6fcf7772711108e2538cd1c09a

diff --git a/app-misc/cpufetch/cpufetch-1.00.ebuild 
b/app-misc/cpufetch/cpufetch-1.02.ebuild
similarity index 87%
rename from app-misc/cpufetch/cpufetch-1.00.ebuild
rename to app-misc/cpufetch/cpufetch-1.02.ebuild
index 4da777c47..1a73eda56 100644
--- a/app-misc/cpufetch/cpufetch-1.00.ebuild
+++ b/app-misc/cpufetch/cpufetch-1.02.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -10,7 +10,7 @@ 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"
+LICENSE="GPL-2+"
 SLOT="0"
 KEYWORDS="~amd64"
 
@@ -18,7 +18,7 @@ PATCHES=( "${FILESDIR}/${P}-makefile.patch" )
 
 src_prepare() {
default
-   export CC=$(tc-getCC)
+   tc-export CC
 }
 
 src_install() {

diff --git a/app-misc/cpufetch/files/cpufetch-1.00-makefile.patch 
b/app-misc/cpufetch/files/cpufetch-1.02-makefile.patch
similarity index 60%
rename from app-misc/cpufetch/files/cpufetch-1.00-makefile.patch
rename to app-misc/cpufetch/files/cpufetch-1.02-makefile.patch
index a34ed4026..6bca12f1a 100644
--- a/app-misc/cpufetch/files/cpufetch-1.00-makefile.patch
+++ b/app-misc/cpufetch/files/cpufetch-1.02-makefile.patch
@@ -1,14 +1,9 @@
 a/Makefile 2021-08-23 09:31:46.0 +0200
-+++ b/Makefile 2021-10-16 23:40:53.698941777 +0200
-@@ -1,4 +1,3 @@
--CC ?= gcc
- 
- CFLAGS+=-Wall -Wextra -pedantic
- SANITY_FLAGS=-Wfloat-equal -Wshadow -Wpointer-arith
-@@ -16,17 +15,17 @@
-   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
+--- a/Makefile
 b/Makefile
+@@ -23,17 +23,17 @@
+   HEADERS += $(SRC_DIR)freq/freq.h
+   CFLAGS += -pthread
+ endif
 -  CFLAGS += -DARCH_X86 -std=c99 -fstack-protector-all
 +  CFLAGS += -DARCH_X86 -std=c99
else ifeq ($(arch), $(filter $(arch), ppc64le ppc64 ppcle ppc))
@@ -26,26 +21,31 @@
  
os := $(shell uname -s)
ifeq ($(os), Darwin)
-@@ -51,20 +50,17 @@
+@@ -58,18 +58,8 @@
OUTPUT=cpufetch.exe
  endif
  
--all: CFLAGS += -O3
+-all: CFLAGS += -O2
  all: $(OUTPUT)
  
 -debug: CFLAGS += -g -O0
- debug: $(OUTPUT)
- 
--static: CFLAGS += -static -O3
-+static: CFLAGS += -static
- static: $(OUTPUT)
- 
--strict: CFLAGS += -O3 -Werror -fsanitize=undefined -D_FORTIFY_SOURCE=2
- strict: $(OUTPUT)
+-debug: $(OUTPUT)
+-
+-static: CFLAGS += -static -O2
+-static: $(OUTPUT)
+-
+-strict: CFLAGS += -O2 -Werror -fsanitize=undefined -D_FORTIFY_SOURCE=2
+-strict: $(OUTPUT)
+-
+ freq_nov.o: Makefile $(SRC_DIR)freq/freq_nov.c $(SRC_DIR)freq/freq_nov.h 
$(SRC_DIR)freq/freq.h
+   $(CC) $(CFLAGS) $(SANITY_FLAGS) -c -pthread $(SRC_DIR)freq/freq_nov.c 
-o $@
+ 
+@@ -80,7 +70,7 @@
+   $(CC) $(CFLAGS) $(SANITY_FLAGS) -c -mavx512f -pthread 
$(SRC_DIR)freq/freq_avx512.c -o $@
  
  $(OUTPUT): Makefile $(SOURCE) 

[gentoo-commits] repo/proj/guru:dev commit in: app-misc/cpufetch/files/, app-misc/cpufetch/

2021-06-15 Thread Alessandro Barbieri
commit: 42cc9f068e29c896d6e9692053e35fc108650435
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Tue Jun 15 23:26:38 2021 +
Commit: Alessandro Barbieri  gmail  com>
CommitDate: Tue Jun 15 23:28:25 2021 +
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 0..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 0..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)



[gentoo-commits] repo/proj/guru:dev commit in: app-misc/cpufetch/files/, app-misc/cpufetch/

2021-04-10 Thread Alessandro Barbieri
commit: 2a973a043afbbb9c420ef1ab0d8b7548b77ed485
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Sun Apr 11 02:17:56 2021 +
Commit: Alessandro Barbieri  gmail  com>
CommitDate: Sun Apr 11 02:18:24 2021 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2a973a04

app-misc/cpufetch: bump and respect LDFLAGS

Closes: https://bugs.gentoo.org/781023
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Alessandro Barbieri  gmail.com>

 app-misc/cpufetch/Manifest |  2 +-
 ...10406.ebuild => cpufetch-0.94_p20210409.ebuild} |  4 +-
 .../cpufetch/files/makefile-0.94_p20210409.patch   | 26 +++
 app-misc/cpufetch/files/makefile.patch | 50 --
 4 files changed, 29 insertions(+), 53 deletions(-)

diff --git a/app-misc/cpufetch/Manifest b/app-misc/cpufetch/Manifest
index 31e76acc3..3f81ed860 100644
--- a/app-misc/cpufetch/Manifest
+++ b/app-misc/cpufetch/Manifest
@@ -1 +1 @@
-DIST cpufetch-0.94_p20210406.tar.gz 302546 BLAKE2B 
799ba717ad799b9762623d668d842af793f375f04625dd3ec12e262eb0b0e6ab15b70f1f9dc59e26cd4cca75558fd9a2923c4c8e19aca77102a86a2847d62258
 SHA512 
1bdae50bb07e2d090b5f30f0b83a86a1d3e7755f284abd454be908626f1625712ab4a6129a9fadd17596a1248f03dd4c0131abe1e3df12ff06825793d19f678e
+DIST cpufetch-0.94_p20210409.tar.gz 303151 BLAKE2B 
0ad4d19e1cf07cf9692af4c81183ce7727eaf3638907e812b288070e325a9b8b2f39af611db5eb19a069935ac60238b234173ee20138d8744e919c7c53e68609
 SHA512 
2f914f37a84e8a43b80770ad4e1b4e7d3679a17a50330198e1d8bb0faff3485a0e667735b5bdf01317d99851530f01165fe80b789059b8668d42d595386e44fd

diff --git a/app-misc/cpufetch/cpufetch-0.94_p20210406.ebuild 
b/app-misc/cpufetch/cpufetch-0.94_p20210409.ebuild
similarity index 83%
rename from app-misc/cpufetch/cpufetch-0.94_p20210406.ebuild
rename to app-misc/cpufetch/cpufetch-0.94_p20210409.ebuild
index 305f33ba4..a51f7908d 100644
--- a/app-misc/cpufetch/cpufetch-0.94_p20210406.ebuild
+++ b/app-misc/cpufetch/cpufetch-0.94_p20210409.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-COMMIT="ec2ad4fef60b0e26f40b818a3968de7e83fb466c"
+COMMIT="8f2f3d3a1652b87162f763a88a5070cf25c2e6d7"
 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"
@@ -11,7 +11,7 @@ 
SRC_URI="https://github.com/Dr-Noob/cpufetch/archive/${COMMIT}.tar.gz -> ${P}.ta
 LICENSE="MIT"
 SLOT="0"
 KEYWORDS="~amd64"
-PATCHES=( "${FILESDIR}/makefile.patch" )
+PATCHES=( "${FILESDIR}/makefile-${PV}.patch" )
 S="${WORKDIR}/${PN}-${COMMIT}"
 
 src_install() {

diff --git a/app-misc/cpufetch/files/makefile-0.94_p20210409.patch 
b/app-misc/cpufetch/files/makefile-0.94_p20210409.patch
new file mode 100644
index 0..175ea34ce
--- /dev/null
+++ b/app-misc/cpufetch/files/makefile-0.94_p20210409.patch
@@ -0,0 +1,26 @@
+--- a/Makefile 2021-04-11 04:01:08.508885689 +0200
 b/Makefile 2021-04-11 04:02:33.680269181 +0200
+@@ -1,6 +1,4 @@
+-CC=gcc
+-
+-CFLAGS=-Wall -Wextra -Werror -pedantic -fstack-protector-all -pedantic 
-std=c99
++CFLAGS+=-Wall -Wextra -pedantic -std=c99
+ SANITY_FLAGS=-Wfloat-equal -Wshadow -Wpointer-arith
+ 
+ PREFIX ?= /usr
+@@ -37,14 +35,12 @@
+ 
+ all: $(OUTPUT)
+ 
+-debug: CFLAGS += -g -O0
+ debug: $(OUTPUT)
+ 
+-release: CFLAGS += -static -O3
+ release: $(OUTPUT)
+ 
+ $(OUTPUT): Makefile $(SOURCE) $(HEADERS)
+-  $(CC) $(CFLAGS) $(SANITY_FLAGS) $(SOURCE) -o $(OUTPUT)
++  $(CC) $(CFLAGS) $(LDFLAGS) $(SANITY_FLAGS) $(SOURCE) -o $(OUTPUT)
+ 
+ run: $(OUTPUT)
+   ./$(OUTPUT)

diff --git a/app-misc/cpufetch/files/makefile.patch 
b/app-misc/cpufetch/files/makefile.patch
deleted file mode 100644
index 579726579..0
--- a/app-misc/cpufetch/files/makefile.patch
+++ /dev/null
@@ -1,50 +0,0 @@
 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
-@@ 

[gentoo-commits] repo/proj/guru:dev commit in: app-misc/cpufetch/files/, app-misc/cpufetch/

2021-04-06 Thread Alessandro Barbieri
commit: f058359a6c6d68abb404455ee5cb6f8524eb23dd
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Tue Apr  6 17:53:06 2021 +
Commit: Alessandro Barbieri  gmail  com>
CommitDate: Tue Apr  6 17:53:06 2021 +
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 0..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 0..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 0..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 0..8b0770685
--- /dev/null
+++ b/app-misc/cpufetch/metadata.xml
@@ -0,0 +1,12 @@
+
+http://www.gentoo.org/dtd/metadata.dtd;>
+
+   
+   lssndrbarbi...@gmail.com
+   Alessandro Barbieri
+   
+   
+   https://github.com/Dr-Noob/cpufetch/issues
+   Dr-Noob/cpufetch
+   
+