# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-board/gnuchess-book/gnuchess-book-1.00.ebuild,v 1.4 2005/07/06 21:49:48 herbs Exp $ inherit games DESCRIPTION="Opening book for gnuchess" HOMEPAGE="http://www.gnu.org/software/chess/chess.html" SRC_URI="mirror://gnu/chess/book_${PV}.pgn.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="alpha ~amd64 ppc sparc x86" IUSE="" DEPEND="games-board/gnuchess" S="${WORKDIR}" src_compile() { echo -e "book add book_${PV}.pgn"$'\n'"quit" | ${GAMES_BINDIR}/gnuchess \ || die "generation failed" } src_install() { insinto "${GAMES_DATADIR}/gnuchess" doins book.dat || die "doins failed" prepgamesdirs }