summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2013-03-05 10:56:31 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2013-03-05 10:56:31 +0000
commit47c4d305c266f28e7e5ffac47161c19e7a3bbbf4 (patch)
tree6a4cb35bef6130f0baa0f9f3353dfeee4a1ec384 /games-misc
parentVersion bump (diff)
downloadgentoo-2-47c4d305c266f28e7e5ffac47161c19e7a3bbbf4.tar.gz
gentoo-2-47c4d305c266f28e7e5ffac47161c19e7a3bbbf4.tar.bz2
gentoo-2-47c4d305c266f28e7e5ffac47161c19e7a3bbbf4.zip
Use pkg-config to query Libs: from ncurses.pc (for eg. -ltinfo) wrt #459652 by Diego Elio Pettenò
(Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)
Diffstat (limited to 'games-misc')
-rw-r--r--games-misc/bsd-games/ChangeLog8
-rw-r--r--games-misc/bsd-games/bsd-games-2.17-r4.ebuild14
2 files changed, 16 insertions, 6 deletions
diff --git a/games-misc/bsd-games/ChangeLog b/games-misc/bsd-games/ChangeLog
index 6d34e8e4d303..57ba5fbed5cd 100644
--- a/games-misc/bsd-games/ChangeLog
+++ b/games-misc/bsd-games/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for games-misc/bsd-games
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-misc/bsd-games/ChangeLog,v 1.47 2010/10/19 08:05:02 tupone Exp $
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-misc/bsd-games/ChangeLog,v 1.48 2013/03/05 10:56:31 ssuominen Exp $
+
+ 05 Mar 2013; Samuli Suominen <ssuominen@gentoo.org> bsd-games-2.17-r4.ebuild:
+ Use pkg-config to query Libs: from ncurses.pc (for eg. -ltinfo) wrt #459652
+ by Diego Elio Pettenò
19 Oct 2010; Tupone Alfredo <tupone@gentoo.org> bsd-games-2.17-r4.ebuild:
Respect LDFLAGS. Bug #331833 by flameeyes@gentoo.org
diff --git a/games-misc/bsd-games/bsd-games-2.17-r4.ebuild b/games-misc/bsd-games/bsd-games-2.17-r4.ebuild
index b7012f78ac1e..740f23d9578a 100644
--- a/games-misc/bsd-games/bsd-games-2.17-r4.ebuild
+++ b/games-misc/bsd-games/bsd-games-2.17-r4.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-misc/bsd-games/bsd-games-2.17-r4.ebuild,v 1.12 2010/10/19 15:55:33 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-misc/bsd-games/bsd-games-2.17-r4.ebuild,v 1.13 2013/03/05 10:56:31 ssuominen Exp $
EAPI=2
-inherit eutils games
+inherit eutils toolchain-funcs games
DEB_PATCH_VER=16
DESCRIPTION="collection of games from NetBSD"
@@ -24,7 +24,8 @@ RDEPEND="!games-misc/wtf
sys-apps/miscfiles"
DEPEND="${RDEPEND}
sys-devel/flex
- sys-devel/bison"
+ sys-devel/bison
+ virtual/pkgconfig"
# Set GAMES_TO_BUILD variable to whatever you want
export GAMES_TO_BUILD=${GAMES_TO_BUILD:=adventure arithmetic atc
@@ -41,6 +42,11 @@ src_prepare() {
"${FILESDIR}"/${P}-bg.patch \
"${FILESDIR}"/${P}-gcc4.patch \
"${FILESDIR}"/${P}-glibc2.10.patch
+
+ # Use pkg-config to query Libs: from ncurses.pc (for eg. -ltinfo) wrt #459652
+ sed -i \
+ -e "/ncurses_lib/s:-lncurses:'$($(tc-getPKG_CONFIG) --libs-only-l ncurses)':" \
+ configure || die
sed -i \
-e "s:/usr/games:${GAMES_BINDIR}:" \