x11-misc/touchcal: Fixed build with sys-libs/ncurses[tinfo]
authorLars Wendler <polynomial-c@gentoo.org>
Thu, 18 Jul 2019 13:50:48 +0000 (15:50 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Thu, 18 Jul 2019 13:51:03 +0000 (15:51 +0200)
Closes: https://bugs.gentoo.org/690084
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
x11-misc/touchcal/touchcal-0.80.ebuild

index c20620986a9fced351906eaa238fe1d1986c45d8..eed48ddb112c8b3fe6d298adebd6a8e5d2bb5ac5 100644 (file)
@@ -1,7 +1,9 @@
 # Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="6"
+EAPI=7
+
+inherit toolchain-funcs
 
 DESCRIPTION="Touchscreen calibration utility"
 HOMEPAGE="http://touchcal.sourceforge.net/"
@@ -19,3 +21,9 @@ DEPEND="
        x11-libs/libXinerama
 "
 RDEPEND="${DEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+src_compile() {
+       local PKGCONFIG="$(tc-getPKG_CONFIG)"
+       emake LDADD="$(${PKGCONFIG} --libs ncurses)"
+}