Skip to content

Commit

Permalink
app-misc/cpufetch: bump and respect LDFLAGS
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/781023
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
  • Loading branch information
Alessandro-Barbieri committed Apr 11, 2021
1 parent 9da6c17 commit 2a973a0
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 53 deletions.
2 changes: 1 addition & 1 deletion 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
Expand Up @@ -3,15 +3,15 @@

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"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
PATCHES=( "${FILESDIR}/makefile.patch" )
PATCHES=( "${FILESDIR}/makefile-${PV}.patch" )
S="${WORKDIR}/${PN}-${COMMIT}"

src_install() {
Expand Down
26 changes: 26 additions & 0 deletions 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)
50 changes: 0 additions & 50 deletions app-misc/cpufetch/files/makefile.patch

This file was deleted.

0 comments on commit 2a973a0

Please sign in to comment.