summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2007-02-07 23:11:03 +0000
committerAlfredo Tupone <tupone@gentoo.org>2007-02-07 23:11:03 +0000
commit1d37ec642f195e445ea083a9addbe1702eb2f628 (patch)
tree39c980830b9fee9237d762e6810b2a30810ad1cd /games-board/fruit
parentMade ffmpeg dependency unconditional, thanks Simon Stelling (bug #165836). (diff)
downloadgentoo-2-1d37ec642f195e445ea083a9addbe1702eb2f628.tar.gz
gentoo-2-1d37ec642f195e445ea083a9addbe1702eb2f628.tar.bz2
gentoo-2-1d37ec642f195e445ea083a9addbe1702eb2f628.zip
New ebuild. Bug #108154
(Portage version: 2.1.1-r2)
Diffstat (limited to 'games-board/fruit')
-rw-r--r--games-board/fruit/ChangeLog10
-rw-r--r--games-board/fruit/Manifest20
-rw-r--r--games-board/fruit/files/digest-fruit-2.13
-rw-r--r--games-board/fruit/files/fruit-2.1-gentoo.patch11
-rw-r--r--games-board/fruit/fruit-2.1.ebuild47
-rw-r--r--games-board/fruit/metadata.xml8
6 files changed, 99 insertions, 0 deletions
diff --git a/games-board/fruit/ChangeLog b/games-board/fruit/ChangeLog
new file mode 100644
index 000000000000..8e38b949a705
--- /dev/null
+++ b/games-board/fruit/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for games-board/fruit
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-board/fruit/ChangeLog,v 1.1 2007/02/07 23:11:03 tupone Exp $
+
+*fruit-2.1 (07 Feb 2007)
+
+ 07 Feb 2007; <tupone@gentoo.org> +files/fruit-2.1-gentoo.patch,
+ +metadata.xml, +fruit-2.1.ebuild:
+ New ebuild. Bug #108154 by Kamil Rytarowski
+
diff --git a/games-board/fruit/Manifest b/games-board/fruit/Manifest
new file mode 100644
index 000000000000..7f98fb181c54
--- /dev/null
+++ b/games-board/fruit/Manifest
@@ -0,0 +1,20 @@
+AUX fruit-2.1-gentoo.patch 586 RMD160 b2419c46cff6885d754f0b0223c3f3c97e65179f SHA1 9ba27f15b7983a34500b951fdbf66443d91f2c59 SHA256 a6c5fbdaac9d5654f222480d0c3fbba2d52b18690b879290e5df0ee4dd59af1a
+MD5 324ed5819b099450dbe841b5e03a97b9 files/fruit-2.1-gentoo.patch 586
+RMD160 b2419c46cff6885d754f0b0223c3f3c97e65179f files/fruit-2.1-gentoo.patch 586
+SHA256 a6c5fbdaac9d5654f222480d0c3fbba2d52b18690b879290e5df0ee4dd59af1a files/fruit-2.1-gentoo.patch 586
+DIST fruit_21_linux.zip 716762 RMD160 05fb30041ee85540769c1d0ed6a439caac0d8698 SHA1 7bb23a7871ab3d6e152631dab86051dbba615c57 SHA256 ad13f6099dc2acebf0112c36cc7d38fd4009316ad60ecc294c5e828380dcd2c0
+EBUILD fruit-2.1.ebuild 1047 RMD160 e73c242c9d0252f3241bfa9806996f795ec7b648 SHA1 622fb005d8c17a49beeee3ebde1b694a4f8fad21 SHA256 02f6a4d461a557c1296c5379b12da16028d5a40293f90bf8b490e68fdb280de6
+MD5 f2e339567dc20fe98a998a72ce4734aa fruit-2.1.ebuild 1047
+RMD160 e73c242c9d0252f3241bfa9806996f795ec7b648 fruit-2.1.ebuild 1047
+SHA256 02f6a4d461a557c1296c5379b12da16028d5a40293f90bf8b490e68fdb280de6 fruit-2.1.ebuild 1047
+MISC ChangeLog 293 RMD160 97e806b0ade68ea089fb9971eaafb3624229d64b SHA1 a850bc53957f6f2a9dd726f502b303c65d171c64 SHA256 9724d4376a0788cf363c3b2b933acfb82d0904a3b087e80e6e3eaffc6ecd79e7
+MD5 b7d10c03bfaf96d9a0413a72c39b7656 ChangeLog 293
+RMD160 97e806b0ade68ea089fb9971eaafb3624229d64b ChangeLog 293
+SHA256 9724d4376a0788cf363c3b2b933acfb82d0904a3b087e80e6e3eaffc6ecd79e7 ChangeLog 293
+MISC metadata.xml 239 RMD160 59e1fee557a993be2c5b2eccd6ed2dc15c401d0e SHA1 26fca19b57088eb9ce5209d27fe72b2bbeecb84c SHA256 1081d5cfa392bc23ee6e435947b4d979659b421ea45cddab86e32dd5ac8144f8
+MD5 7f39e8a996a2009fbf826c992a6e5ec5 metadata.xml 239
+RMD160 59e1fee557a993be2c5b2eccd6ed2dc15c401d0e metadata.xml 239
+SHA256 1081d5cfa392bc23ee6e435947b4d979659b421ea45cddab86e32dd5ac8144f8 metadata.xml 239
+MD5 87c19ab8a3546a78b7f1fb4e32c36c30 files/digest-fruit-2.1 235
+RMD160 b5d129e82ec93e8c6dcd156b3126cff12ee1afbf files/digest-fruit-2.1 235
+SHA256 cf4bdd0918585a9006d746d0c54b41fa0cd4b5e4162553a77ce08de3ed6cb667 files/digest-fruit-2.1 235
diff --git a/games-board/fruit/files/digest-fruit-2.1 b/games-board/fruit/files/digest-fruit-2.1
new file mode 100644
index 000000000000..6f504b912ba7
--- /dev/null
+++ b/games-board/fruit/files/digest-fruit-2.1
@@ -0,0 +1,3 @@
+MD5 35e538708a036f58aa88a7acee6a2030 fruit_21_linux.zip 716762
+RMD160 05fb30041ee85540769c1d0ed6a439caac0d8698 fruit_21_linux.zip 716762
+SHA256 ad13f6099dc2acebf0112c36cc7d38fd4009316ad60ecc294c5e828380dcd2c0 fruit_21_linux.zip 716762
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..965d817a420f
--- /dev/null
+++ b/games-board/fruit/fruit-2.1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-board/fruit/fruit-2.1.ebuild,v 1.1 2007/02/07 23:11:03 tupone Exp $
+
+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="~x86"
+IUSE=""
+
+DEPEND="app-arch/unzip"
+
+S=${WORKDIR}/${MY_P}/src
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${P}"-gentoo.patch
+ sed -i -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \
+ option.cpp
+ sed -i -e "/^CXXFLAGS/d" Makefile
+}
+
+src_install() {
+ dogamesbin ${PN} || die "Cannot install ${PN}"
+
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins ../book_small.bin || die "Cannot install book"
+ dodoc ../readme.txt ../technical_10.txt || die "Cannot install doc"
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ einfo "To use this engine you need to install a chess GUI that talk UCI"
+ einfo "emerge games-board/glchess to have one"
+}
diff --git a/games-board/fruit/metadata.xml b/games-board/fruit/metadata.xml
new file mode 100644
index 000000000000..b02037f1efca
--- /dev/null
+++ b/games-board/fruit/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+<longdescription lang="en">
+Fruit is a UCI-only chess engine.
+</longdescription>
+</pkgmetadata>