games-puzzle/tint: Fixed build with sys-libs/ncurses[tinfo]
authorLars Wendler <polynomial-c@gentoo.org>
Wed, 17 Jul 2019 21:51:24 +0000 (23:51 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Wed, 17 Jul 2019 21:52:32 +0000 (23:52 +0200)
Closes: https://bugs.gentoo.org/690074
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
games-puzzle/tint/tint-0.03b-r1.ebuild

index 4b2d9dc72843e7d3dca49edfd9db132e44b26a53..bd16b91c4bbf6f58de62eae0a6835faa019e7880 100644 (file)
@@ -1,7 +1,9 @@
-# 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
 
 MY_P="${P/-/_}"
 DESCRIPTION="Tint Is Not Tetris, a ncurses based clone of the original Tetris(tm) game"
@@ -15,14 +17,17 @@ IUSE=""
 
 DEPEND=">=sys-libs/ncurses-5.4-r1:0="
 RDEPEND="${DEPEND}"
+BDEPEND="virtual/pkgconfig"
 
 PATCHES=( "${FILESDIR}"/${P}-ovflfix.patch )
 
 src_compile() {
+       local PKGCONFIG="$(tc-getPKG_CONFIG)"
        emake \
                STRIP=true \
                CFLAGS="${CFLAGS}" \
                LDFLAGS="${LDFLAGS}" \
+               LDLIBS="$(${PKGCONFIG} --libs ncurses)" \
                localstatedir="/var/lib"
 }