commit:     b1943d6833bb67144ab2865373c521f10ab52843
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 17 21:51:24 2019 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Wed Jul 17 21:52:32 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1943d68

games-puzzle/tint: Fixed build with sys-libs/ncurses[tinfo]

Closes: https://bugs.gentoo.org/690074
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>

 games-puzzle/tint/tint-0.03b-r1.ebuild | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/games-puzzle/tint/tint-0.03b-r1.ebuild 
b/games-puzzle/tint/tint-0.03b-r1.ebuild
index 4b2d9dc7284..bd16b91c4bb 100644
--- a/games-puzzle/tint/tint-0.03b-r1.ebuild
+++ b/games-puzzle/tint/tint-0.03b-r1.ebuild
@@ -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"
 }
 

Reply via email to