summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-board/gnuchess-book/gnuchess-book-1.02.ebuild')
-rw-r--r--games-board/gnuchess-book/gnuchess-book-1.02.ebuild31
1 files changed, 31 insertions, 0 deletions
diff --git a/games-board/gnuchess-book/gnuchess-book-1.02.ebuild b/games-board/gnuchess-book/gnuchess-book-1.02.ebuild
new file mode 100644
index 00000000000..eb7504a449d
--- /dev/null
+++ b/games-board/gnuchess-book/gnuchess-book-1.02.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+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="amd64 ppc ppc64 x86"
+IUSE=""
+RESTRICT="userpriv" # bug #112898
+
+DEPEND=">=games-board/gnuchess-6"
+RDEPEND=${DEPEND}
+
+S=${WORKDIR}
+
+src_compile() {
+ "${GAMES_BINDIR}"/gnuchess --addbook=book_${PV}.pgn || die
+}
+
+src_install() {
+ insinto "${GAMES_DATADIR}/gnuchess"
+ doins book.bin
+ prepgamesdirs
+}