summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2009-02-09 15:26:41 +0000
committerAlfredo Tupone <tupone@gentoo.org>2009-02-09 15:26:41 +0000
commit452fef071ed216caa5ba0a1f06da01153bf6596c (patch)
tree4d63ab87d0f57b2539dac69e2a3e2c4476c704ce /games-puzzle/braincurses
parentVersion bump (diff)
downloadgentoo-2-452fef071ed216caa5ba0a1f06da01153bf6596c.tar.gz
gentoo-2-452fef071ed216caa5ba0a1f06da01153bf6596c.tar.bz2
gentoo-2-452fef071ed216caa5ba0a1f06da01153bf6596c.zip
Fix --as-needed bug #247420
(Portage version: 2.1.6.4/cvs/Linux 2.6.27-gentoo-r8 x86_64)
Diffstat (limited to 'games-puzzle/braincurses')
-rw-r--r--games-puzzle/braincurses/ChangeLog9
-rw-r--r--games-puzzle/braincurses/braincurses-0.5b.ebuild14
-rw-r--r--games-puzzle/braincurses/files/braincurses-0.5b-as-needed.patch27
3 files changed, 41 insertions, 9 deletions
diff --git a/games-puzzle/braincurses/ChangeLog b/games-puzzle/braincurses/ChangeLog
index 291fe114cad8..8f591c02846c 100644
--- a/games-puzzle/braincurses/ChangeLog
+++ b/games-puzzle/braincurses/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for games-puzzle/braincurses
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-puzzle/braincurses/ChangeLog,v 1.8 2008/05/01 10:34:46 nyhm Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/braincurses/ChangeLog,v 1.9 2009/02/09 15:26:40 tupone Exp $
+
+ 09 Feb 2009; Alfredo Tupone <tupone@gentoo.org>
+ +files/braincurses-0.5b-as-needed.patch, braincurses-0.5b.ebuild:
+ Fix --as-needed bug #247420 by flameeyes@gentoo.org.
+ Patch from Kevin Pyle
01 May 2008; Tristan Heaven <nyhm@gentoo.org>
+files/braincurses-0.5b-gcc43.patch, braincurses-0.5b.ebuild:
diff --git a/games-puzzle/braincurses/braincurses-0.5b.ebuild b/games-puzzle/braincurses/braincurses-0.5b.ebuild
index 7d03d30fc8c4..c3870f70ab40 100644
--- a/games-puzzle/braincurses/braincurses-0.5b.ebuild
+++ b/games-puzzle/braincurses/braincurses-0.5b.ebuild
@@ -1,7 +1,8 @@
-# Copyright 1999-2008 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-puzzle/braincurses/braincurses-0.5b.ebuild,v 1.6 2008/05/01 10:34:46 nyhm Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/braincurses/braincurses-0.5b.ebuild,v 1.7 2009/02/09 15:26:40 tupone Exp $
+EAPI=2
inherit eutils games
DESCRIPTION="An ncurses-based mastermind clone"
@@ -13,12 +14,11 @@ SLOT="0"
KEYWORDS="amd64 ~ppc ppc64 x86"
IUSE=""
-DEPEND="sys-libs/ncurses"
+DEPEND=""
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}"/${P}-gcc43.patch
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gcc43.patch \
+ "${FILESDIR}"/${P}-as-needed.patch
}
src_install() {
diff --git a/games-puzzle/braincurses/files/braincurses-0.5b-as-needed.patch b/games-puzzle/braincurses/files/braincurses-0.5b-as-needed.patch
new file mode 100644
index 000000000000..d1f36152403f
--- /dev/null
+++ b/games-puzzle/braincurses/files/braincurses-0.5b-as-needed.patch
@@ -0,0 +1,27 @@
+--- Makefile.old 2009-02-09 16:04:47.000000000 +0100
++++ Makefile 2009-02-09 16:14:41.000000000 +0100
+@@ -1,22 +1,9 @@
+ # Makefile for braincurses game
+ # written by Brian Derr
+
+-CC=g++
+-CFLAGS=-Wall
+-CURSES_LIBS=-lncurses
++LDLIBS=-lncurses
+
+-ncurses: curses/windows.o braincurses.o
+- ${CC} ${CURSES_LIBS} ${CFLAGS} -o braincurses curses/windows.o \
+- braincurses.o
+-
+-windows.o: windows.cpp
+- ${CC} ${CFLAGS} -c curses/windows.cpp
+-
+-braincurses.o: braincurses.cpp
+- ${CC} ${CFLAGS} -c braincurses.cpp
+-
+-#top_scores.o: top_scores.cpp
+-# ${CC} ${CFLAGS} -c top_scores.cpp
++braincurses: curses/windows.cpp braincurses.cpp
+
+ install:
+ install -o root -g root braincurses /usr/local/bin/