summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-irc')
-rw-r--r--net-irc/irssistats/files/irssistats-0.75-Makefile.patch26
-rw-r--r--net-irc/irssistats/irssistats-0.75-r1.ebuild9
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() {