summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-board/gnuchess-book')
-rw-r--r--games-board/gnuchess-book/Manifest1
-rw-r--r--games-board/gnuchess-book/gnuchess-book-1.02.ebuild31
-rw-r--r--games-board/gnuchess-book/metadata.xml5
3 files changed, 37 insertions, 0 deletions
diff --git a/games-board/gnuchess-book/Manifest b/games-board/gnuchess-book/Manifest
new file mode 100644
index 00000000000..b25c0c9e16b
--- /dev/null
+++ b/games-board/gnuchess-book/Manifest
@@ -0,0 +1 @@
+DIST book_1.02.pgn.gz 26265281 SHA256 deac77edb061a59249a19deb03da349cae051e52527a6cb5af808d9398d32d44 SHA512 2fda39fae66a2afaf0084bd482465de04a65b842276760cde69cb6649c0d3b90c5341e10b4d344e06983bdc97ec8802582d622290bc419b8742d3cd6dd39688a WHIRLPOOL d49418d5f0ebae424e551be69601d82ba230bff9e503de21ce160241eb5640128e5848ba9dbd72809373df6d66fa0c2031b2780ce58db682732589685d385450
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
+}
diff --git a/games-board/gnuchess-book/metadata.xml b/games-board/gnuchess-book/metadata.xml
new file mode 100644
index 00000000000..d3c2cc926f0
--- /dev/null
+++ b/games-board/gnuchess-book/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>