summaryrefslogtreecommitdiff
path: root/games-board/fruit
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /games-board/fruit
reinit the tree, so we can have metadata
Diffstat (limited to 'games-board/fruit')
-rw-r--r--games-board/fruit/Manifest6
-rw-r--r--games-board/fruit/files/fruit-2.1-gentoo.patch11
-rw-r--r--games-board/fruit/fruit-2.1.ebuild46
-rw-r--r--games-board/fruit/metadata.xml11
4 files changed, 74 insertions, 0 deletions
diff --git a/games-board/fruit/Manifest b/games-board/fruit/Manifest
new file mode 100644
index 000000000000..5f8681d9655a
--- /dev/null
+++ b/games-board/fruit/Manifest
@@ -0,0 +1,6 @@
+AUX fruit-2.1-gentoo.patch 586 SHA256 a6c5fbdaac9d5654f222480d0c3fbba2d52b18690b879290e5df0ee4dd59af1a SHA512 4c226d37f7cf9c2c6abf0b262b9ebe6338ac30ce18333f1a7eece4935fb13ded57e541f9aa15be9dbbe2b67a66287e3b7565c226245fcb57dd62953bf09f8b75 WHIRLPOOL 1a4778081f89912dbd1fa1ecc04159015141410941ef525e9f2b9124f72c3b17a03a11a054ca3499fd1a6275756aaacb8f4b5c355d7b3b0641dee6d796e81d9a
+DIST fruit_21_linux.zip 716762 SHA256 ad13f6099dc2acebf0112c36cc7d38fd4009316ad60ecc294c5e828380dcd2c0 SHA512 80d80141ca3c2a4521b241a750bd237e0971b531bc4e8e89ae3bdcdbb1436b99b35e64f505b9a61413726744646b6b4ce126bcdb53b90adc727f88a50adee889 WHIRLPOOL f167e696c4f9f69af3ca68612b32e3ccae3358f658ef26c2866bd86b83a0930f6e140f9e2aed3320f5fd2bc9788ff3ef48aff5ab51facc3164316d9fc88f901d
+EBUILD fruit-2.1.ebuild 958 SHA256 9ca0605bb69316181a43362883ba4ff3fc0cdde341bd1c4d10ca836208069a89 SHA512 3d1441fc06aab1204d34e309d8c2005d6d738d71b957d4961d54f3b9969b23e961f03239a54a74f13c7cc8734717b0cea350d5978cd5961b93b34be32c926046 WHIRLPOOL c1242b50579586c0d1d6f09446ecadf86d294f7e47db1ca4b3edc97947d053adc78f13f0efe24c1b6206fc8f78a10260134a5e5e34199fd6cb6f2e86ec9ada31
+MISC ChangeLog 2451 SHA256 d04d667705f01c42a009cf7692800d959300535821000e671ad43b04416245bd SHA512 214c0f26fc4540309b7af591e1e4b38e79839b55e076021f15096f0e7c4addb0bce8b9f6aa85d9ab8715f05f079d28572d31d019af556f05ae59861f46fd2a10 WHIRLPOOL b5816657558e235be69d5250a64e0d90bc37b112fcb492286374fe09d063f6d2ad27af6b5202604663951c04dd2490ad966c99875a4c1e7a08ee19b8ba918a54
+MISC ChangeLog-2015 942 SHA256 4f292177fa3943b4994bc983646d660beb65beb75b25657d3194fdbf33714d21 SHA512 9b6fb8a236bc7778abbb6bcdac612c21b50509d9623a71db2d063442ee90cf9686ea155fbeb79dc7d2c91730e175567490541ac22bff1d980f60a11cd8463109 WHIRLPOOL 017320833d2895fe6bbe8fb178b77ed0c015243b914c71edf5151badaa3f99b350a0a5e65fa86db6d81aea92f19e991e81461ae8408cc26cbb974d0120f24a3e
+MISC metadata.xml 330 SHA256 7d1d4032806ba846a1439150e19a7651935f6d1246cf46fa126f96a9ea7120b3 SHA512 f568c54581b78f36c6aaaba340be04f0396dbb62f133426b0dddf4a1ed39b0675fd64b6b2d14f9c41bf49851dc25156bf71566ef9b207570cc7e57a92380c4ef WHIRLPOOL 187c558387d62046a7518008b9236b0e530a1fa8757c653a2eb9c1be9464f2cbe47886c62aa832111c889a0ca3517b300a7a03bf1047ca0e9fc5c3578c71f977
diff --git a/games-board/fruit/files/fruit-2.1-gentoo.patch b/games-board/fruit/files/fruit-2.1-gentoo.patch
new file mode 100644
index 000000000000..bae207f89627
--- /dev/null
+++ b/games-board/fruit/files/fruit-2.1-gentoo.patch
@@ -0,0 +1,11 @@
+--- option.cpp.old 2007-02-07 23:32:25.000000000 +0100
++++ option.cpp 2007-02-07 23:32:51.000000000 +0100
+@@ -29,7 +29,7 @@
+ { "Ponder", true, "false", "check", "", NULL },
+
+ { "OwnBook", true, "true", "check", "", NULL },
+- { "BookFile", true, "book_small.bin", "string", "", NULL },
++ { "BookFile", true, "@GENTOO_DATADIR@/book_small.bin", "string", "", NULL },
+
+ { "NullMove Pruning", true, "Fail High", "combo", "var Always var Fail High var Never", NULL },
+ { "NullMove Reduction", true, "3", "spin", "min 1 max 3", NULL },
diff --git a/games-board/fruit/fruit-2.1.ebuild b/games-board/fruit/fruit-2.1.ebuild
new file mode 100644
index 000000000000..db7aa8211ead
--- /dev/null
+++ b/games-board/fruit/fruit-2.1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils versionator games
+
+MY_PV=$(replace_all_version_separators '')
+MY_P=${PN}_${MY_PV}_linux
+DESCRIPTION="UCI-only chess engine"
+HOMEPAGE="http://arctrix.com/nas/fruit/"
+SRC_URI="http://arctrix.com/nas/${PN}/${MY_P}.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND=""
+DEPEND="app-arch/unzip"
+
+S=${WORKDIR}/${MY_P}/src
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}"-gentoo.patch
+ sed -i \
+ -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \
+ option.cpp || die
+ sed -i \
+ -e '/^CXX/d' \
+ -e '/^LDFLAGS/d' \
+ Makefile || die
+}
+
+src_install() {
+ dogamesbin ${PN}
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins ../book_small.bin
+ dodoc ../readme.txt ../technical_10.txt
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "To use this engine you need to install a UCI chess GUI"
+ elog "e.g. games-board/glchess"
+}
diff --git a/games-board/fruit/metadata.xml b/games-board/fruit/metadata.xml
new file mode 100644
index 000000000000..f9731bb70a84
--- /dev/null
+++ b/games-board/fruit/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+<longdescription lang="en">
+Fruit is a UCI-only chess engine.
+</longdescription>
+</pkgmetadata>