blob: 1464fcd1db3190145be00b811b53973bbbfa5065 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Copyright 1999-2010 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.8 2010/01/14 22:33:53 mr_bones_ Exp $
EAPI=2
inherit eutils games
DESCRIPTION="An ncurses-based mastermind clone"
HOMEPAGE="http://freshmeat.net/projects/braincurses/"
SRC_URI="mirror://sourceforge/braincurses/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~ppc ppc64 x86"
IUSE=""
DEPEND=""
src_prepare() {
epatch "${FILESDIR}"/${P}-gcc43.patch \
"${FILESDIR}"/${P}-as-needed.patch
# fix buffer overflow (bug #301033)
sed -i \
-e 's/guessLabel\[2/guessLabel[3/' \
curses/windows.cpp \
|| die 'sed failed'
}
src_install() {
dogamesbin braincurses || die "dogamesbin failed"
dodoc README THANKS Changelog
prepgamesdirs
}
|