diff options
author | Patrice Clement <monsieurp@gentoo.org> | 2020-10-30 23:31:56 +0100 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2020-10-30 23:32:07 +0100 |
commit | 0f642cf46a0e86a99c1be9cbff985b2b5a272143 (patch) | |
tree | e0b93f30d498d00a4dc2358cea8033cabfb1b6f5 | |
parent | dev-python/pandas: Bump to 1.1.4 (diff) | |
download | gentoo-0f642cf46a0e86a99c1be9cbff985b2b5a272143.tar.gz gentoo-0f642cf46a0e86a99c1be9cbff985b2b5a272143.tar.bz2 gentoo-0f642cf46a0e86a99c1be9cbff985b2b5a272143.zip |
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 <monsieurp@gentoo.org>
-rw-r--r-- | net-irc/irssistats/files/irssistats-0.75-Makefile.patch | 26 | ||||
-rw-r--r-- | net-irc/irssistats/irssistats-0.75-r1.ebuild | 9 |
2 files changed, 33 insertions, 2 deletions
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() { |