# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-board/gnuchess/gnuchess-5.07.ebuild,v 1.10 2006/01/23 21:08:08 corsair Exp $ inherit eutils games DESCRIPTION="Console based chess interface" HOMEPAGE="http://www.gnu.org/software/chess/chess.html" SRC_URI="mirror://gnu/chess/${P}.tar.gz" KEYWORDS="alpha amd64 ppc ~ppc64 sparc x86" LICENSE="GPL-2" SLOT="0" IUSE="readline" DEPEND="readline? ( sys-libs/readline )" src_unpack() { unpack ${A} epatch "${FILESDIR}"/gnuchess-gcc4.patch } src_compile() { egamesconf \ --disable-dependency-tracking \ $(use_with readline) \ || die emake || die "emake failed" } src_install () { make DESTDIR="${D}" install || die "make install failed" dodoc AUTHORS ChangeLog NEWS TODO doc/README prepgamesdirs }