Also bump EAPI to 7
Closes: https://bugs.gentoo.org/690008
Reported-by: Toralf Förster <toralf@gentoo.org>
Signed-off-by: Sergey Popov <pinkbyte@gentoo.org>
Package-Manager: Portage-2.3.66, Repoman-2.3.11
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
inherit toolchain-funcs
KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
RDEPEND="sys-libs/ncurses:0="
-DEPEND="${RDEPEND}"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+"
PATCHES=( "${FILESDIR}/${P}-makefile.patch" )
--- a/Makefile
+++ b/Makefile
-@@ -1,5 +1,6 @@
-+LIBS += -lncurses -lpthread
+@@ -1,5 +1,7 @@
++PKGCONFIG ?= pkg-config
++LIBS += $(shell $(PKGCONFIG) --libs ncurses) -lpthread
all:
- g++ -O3 -Wall -o clockywock clockywock.cpp -lncurses -lpthread
+ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o clockywock clockywock.cpp $(LIBS)