From 0f642cf46a0e86a99c1be9cbff985b2b5a272143 Mon Sep 17 00:00:00 2001 From: Patrice Clement Date: Fri, 30 Oct 2020 23:31:56 +0100 Subject: net-irc/irssistats: honor LDFLAGS. Closes: https://bugs.gentoo.org/740704 Package-Manager: Portage-3.0.8, Repoman-3.0.2 Signed-off-by: Patrice Clement --- .../files/irssistats-0.75-Makefile.patch | 26 ++++++++++++++++++++++ net-irc/irssistats/irssistats-0.75-r1.ebuild | 9 ++++++-- 2 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 net-irc/irssistats/files/irssistats-0.75-Makefile.patch (limited to 'net-irc/irssistats') diff --git a/net-irc/irssistats/files/irssistats-0.75-Makefile.patch b/net-irc/irssistats/files/irssistats-0.75-Makefile.patch new file mode 100644 index 000000000000..ac91c7deb512 --- /dev/null +++ b/net-irc/irssistats/files/irssistats-0.75-Makefile.patch @@ -0,0 +1,26 @@ +--- a/Makefile 2020-10-30 22:07:33.519994135 -0000 ++++ b/Makefile 2020-10-30 22:26:46.042808724 -0000 +@@ -1,17 +1,18 @@ +-PRE = /usr/local ++CC = gcc ++CFLAGS ?= -O2 -Wall ++PRE = /usr + BIN = $(PRE)/bin + DAT = $(PRE)/share/irssistats/data + DOC = $(PRE)/share/doc/irssistats + MAN = $(PRE)/share/man/man1 +-CFLAGS ?= -O2 + +-irssistats:irssistats.c +- gcc $(CFLAGS) -o irssistats irssistats.c ++irssistats: irssistats.c ++ $(CC) $(CFLAGS) -o irssistats irssistats.c $(LDFLAGS) + + clean: + rm -f irssistats + +-install:irssistats ++install: irssistats + mkdir -p $(BIN) $(DAT) $(DOC) $(MAN) + cp -f irssistats $(BIN) + cp -f data/* $(DAT) diff --git a/net-irc/irssistats/irssistats-0.75-r1.ebuild b/net-irc/irssistats/irssistats-0.75-r1.ebuild index 3f7fd1cb742d..0a674f4d68c6 100644 --- a/net-irc/irssistats/irssistats-0.75-r1.ebuild +++ b/net-irc/irssistats/irssistats-0.75-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -16,8 +16,13 @@ KEYWORDS="amd64 ppc sparc x86" DEPEND="net-irc/irssi" +src_prepare() { + default + eapply "${FILESDIR}/${P}-Makefile.patch" +} + src_compile() { - $(tc-getCC) -o irssistats ${CFLAGS} ${LDFLAGS} irssistats.c + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" } src_install() { -- cgit v1.2.3-65-gdbad