summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2007-07-13 22:31:08 +0000
committerAlfredo Tupone <tupone@gentoo.org>2007-07-13 22:31:08 +0000
commit48b6528fb0bb0af989cc9ce9f64365df15665b90 (patch)
treec0d4a43b7aebcfdee36ea3182bf0bafc3405db62 /games-board
parentAdding games-board/chessdb tb4 use flag (load 4-piece table bases) (diff)
downloadhistorical-48b6528fb0bb0af989cc9ce9f64365df15665b90.tar.gz
historical-48b6528fb0bb0af989cc9ce9f64365df15665b90.tar.bz2
historical-48b6528fb0bb0af989cc9ce9f64365df15665b90.zip
New package, requested with bug #169841
Package-Manager: portage-2.1.2.9
Diffstat (limited to 'games-board')
-rw-r--r--games-board/chessdb/ChangeLog10
-rw-r--r--games-board/chessdb/Manifest31
-rw-r--r--games-board/chessdb/chessdb-3.6.18.ebuild71
-rw-r--r--games-board/chessdb/files/chessdb-3.6.18-gentoo.patch62
-rw-r--r--games-board/chessdb/files/digest-chessdb-3.6.186
-rw-r--r--games-board/chessdb/metadata.xml18
6 files changed, 198 insertions, 0 deletions
diff --git a/games-board/chessdb/ChangeLog b/games-board/chessdb/ChangeLog
new file mode 100644
index 000000000000..4b0e798681bc
--- /dev/null
+++ b/games-board/chessdb/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for games-board/chessdb
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-board/chessdb/ChangeLog,v 1.1 2007/07/13 22:31:08 tupone Exp $
+
+*chessdb-3.6.18 (13 Jul 2007)
+
+ 13 Jul 2007; Tupone Alfredo <tupone@gentoo.org>
+ +files/chessdb-3.6.18-gentoo.patch, +metadata.xml, +chessdb-3.6.18.ebuild:
+ New package, requested with bug #169841 by Ali Polatel <hawking@gentoo.org>
+
diff --git a/games-board/chessdb/Manifest b/games-board/chessdb/Manifest
new file mode 100644
index 000000000000..ed704e973e04
--- /dev/null
+++ b/games-board/chessdb/Manifest
@@ -0,0 +1,31 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX chessdb-3.6.18-gentoo.patch 2546 RMD160 7d6e8bf1dc01d8fa8f9e1a85756b26934a175f60 SHA1 37c7d3a70fb3d628c943b5e63659133ef68edc66 SHA256 28475d1598a47d806036128610846e80d1cfa702a63aaf1b711d93edb0a93d04
+MD5 d292eb1e33806efbe302249eec01654e files/chessdb-3.6.18-gentoo.patch 2546
+RMD160 7d6e8bf1dc01d8fa8f9e1a85756b26934a175f60 files/chessdb-3.6.18-gentoo.patch 2546
+SHA256 28475d1598a47d806036128610846e80d1cfa702a63aaf1b711d93edb0a93d04 files/chessdb-3.6.18-gentoo.patch 2546
+DIST 4-piece-tablebases.zip 30799501 RMD160 c59961176dbdca328f0a797da8ceff7832eca4c8 SHA1 3ce9cd54705626d386c3b325451d71bdfcc7e8a3 SHA256 86706176cf3fe38caefbef6ac7331500bec3571677f240d3844adfa26681c07d
+DIST ChessDB-3.6.18.tar.gz 10183596 RMD160 7806b05f9215f0032484c6461d7e3f718d5f5528 SHA1 456ff217ebdb0f6231a507ce737747c964f77f6e SHA256 7c8dbaaba64d7b2b8131720da5a657cac297a4f1eb9710286b372e22d95d9ee6
+EBUILD chessdb-3.6.18.ebuild 1700 RMD160 117415ed14f5f1a871f43a1eca01003591bfbc45 SHA1 8205603bc025ede1dd6c88b9d1a3f33971eb8e3e SHA256 d83504a32c3d062397182d662b41f8e6874bcb9a22729402b31a70f837eeff0f
+MD5 3ccd7e36ec28391977d931707ec3103f chessdb-3.6.18.ebuild 1700
+RMD160 117415ed14f5f1a871f43a1eca01003591bfbc45 chessdb-3.6.18.ebuild 1700
+SHA256 d83504a32c3d062397182d662b41f8e6874bcb9a22729402b31a70f837eeff0f chessdb-3.6.18.ebuild 1700
+MISC ChangeLog 448 RMD160 9b07395ae08043ad5c4451caa27cab9455e28891 SHA1 a97ea536814228bd4a859bbfdc4db88b385ffe82 SHA256 4ee515603e935b126993bcc541f108a15fb902bcb3f6fd150e6dafbb71cd43c5
+MD5 8e9d405f1ac2d0536fad7a31094adfaf ChangeLog 448
+RMD160 9b07395ae08043ad5c4451caa27cab9455e28891 ChangeLog 448
+SHA256 4ee515603e935b126993bcc541f108a15fb902bcb3f6fd150e6dafbb71cd43c5 ChangeLog 448
+MISC metadata.xml 954 RMD160 7de9d0f069a0290fdd7eda457005abbb2a32bde8 SHA1 007b7a6bb21c7ccba75b2b52f05db9e99cc2c117 SHA256 5b25b73cfc341535cc14fcc0268540fc84070461f9f9921f4cdc2f8b8e407404
+MD5 7e892fc9b0367a4f4138e7f81108448f metadata.xml 954
+RMD160 7de9d0f069a0290fdd7eda457005abbb2a32bde8 metadata.xml 954
+SHA256 5b25b73cfc341535cc14fcc0268540fc84070461f9f9921f4cdc2f8b8e407404 metadata.xml 954
+MD5 28a0e2aa0e919f57670599c4a8d87716 files/digest-chessdb-3.6.18 503
+RMD160 439220800058d89d6d9e29e0b910bcce1c1b58bb files/digest-chessdb-3.6.18 503
+SHA256 637343b60400c6c0e9526c30f00e5fbc4a49fc31b20fb93f5ee62c2bc3b01a6b files/digest-chessdb-3.6.18 503
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.7 (GNU/Linux)
+
+iD8DBQFGl/0yRmMZkarFlIwRAtezAKCqWE189waEdQoeYOeuNXSqB58dggCcDC3r
+74OTWVxtoEi9miHQqpEbWGM=
+=aO/i
+-----END PGP SIGNATURE-----
diff --git a/games-board/chessdb/chessdb-3.6.18.ebuild b/games-board/chessdb/chessdb-3.6.18.ebuild
new file mode 100644
index 000000000000..f6b3268da454
--- /dev/null
+++ b/games-board/chessdb/chessdb-3.6.18.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-board/chessdb/chessdb-3.6.18.ebuild,v 1.1 2007/07/13 22:31:08 tupone Exp $
+
+inherit toolchain-funcs eutils games
+
+MY_PN=ChessDB
+MY_P=${MY_PN}-${PV}
+
+DESCRIPTION="A free Chess Database"
+HOMEPAGE="http://chessdb.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz
+ tb4? ( mirror://sourceforge/${PN}/4-piece-tablebases.zip )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="tb4"
+
+RDEPEND="dev-lang/tk"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${P}"-gentoo.patch
+ sed -i \
+ -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \
+ -e "s:@snack_path@:/usr/lib/snack2.2:" \
+ tcl/start.tcl || die "sed failed"
+}
+
+src_compile() {
+ ./configure BINDIR="${GAMES_BINDIR}" \
+ COMPILE=$(tc-getCXX) \
+ CC=$(tc-getCC) \
+ LINK=$(tc-getCXX) \
+ OPTIMIZE="${CXXFLAGS}" \
+ SHAREDIR="${GAMES_DATADIR}/${PN}" \
+ SOUNDSDIR="${GAMES_DATADIR}/${PN}/sounds" \
+ TBDIR="${GAMES_DATADIR}/${PN}/tablebases" \
+ MANDIR="/usr/share/man" \
+ WARNINGS="" || die "econf failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ if use tb4; then
+ insinto "${GAMES_DATADIR}/${PN}"/tablebases
+ doins ../*.emd || die "doins failed"
+ fi
+
+ dodoc BUGS CONTRIBUTORS ChangeLog NEWS README THANKS THANKS.Shane TODO
+ dohtml -r html-help/*
+
+ doicon ${PN}.ico
+ make_desktop_entry ${PN} ChessDB /usr/share/pixmaps/${PN}.ico
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "To enable speech, just emerge dev-tcltk/snack"
+}
diff --git a/games-board/chessdb/files/chessdb-3.6.18-gentoo.patch b/games-board/chessdb/files/chessdb-3.6.18-gentoo.patch
new file mode 100644
index 000000000000..b39957d12ce6
--- /dev/null
+++ b/games-board/chessdb/files/chessdb-3.6.18-gentoo.patch
@@ -0,0 +1,62 @@
+--- Makefile.conf.old 2007-07-11 23:58:57.000000000 +0200
++++ Makefile.conf 2007-07-12 00:01:32.000000000 +0200
+@@ -227,14 +227,14 @@
+ # for all users, and put extra files in $SHAREDIR, type "make install".
+ #
+ install: all
+- install -m 755 -d $(SHAREDIR)
++ install -m 755 -d $(DESTDIR)$(SHAREDIR)
+ install -m 755 -d $(DESTDIR)$(BINDIR)
+- install -m 755 -d $(SOUNDSDIR)
+- install -m 755 -d $(TBDIR)
+- install -m 755 -d $(MANDIR)/man6
+- -install -m 644 -p $(SOUNDS) $(SOUNDSDIR)
+-# -install -m 644 -p $(TABLEBASES) $(TBDIR)
+- install -m 644 -p $(MAN6) $(MANDIR)/man6
++ install -m 755 -d $(DESTDIR)$(SOUNDSDIR)
++ install -m 755 -d $(DESTDIR)$(TBDIR)
++ install -m 755 -d $(DESTDIR)$(MANDIR)/man6
++ -install -m 644 -p $(SOUNDS) $(DESTDIR)$(SOUNDSDIR)
++# -install -m 644 -p $(TABLEBASES) $(DESTDIR)$(TBDIR)
++ install -m 644 -p $(MAN6) $(DESTDIR)$(MANDIR)/man6
+ install -m 755 chessdb $(SCRIPTS) $(EXECS) $(DESTDIR)$(BINDIR)
+ -install -m 755 -d $(DESTDIR)$(SHAREDIR)
+ -install -m 644 -p chessdb.eco ratings.ssp $(DESTDIR)$(SHAREDIR)
+--- tcl/start.tcl.old 2007-07-13 08:10:20.000000000 +0200
++++ tcl/start.tcl 2007-07-13 08:15:07.000000000 +0200
+@@ -17,7 +17,7 @@
+ # The "\" at the end of the comment line below is necessary! It means
+ # that the "exec" line is a comment to Tcl/Tk, but not to /bin/sh.
+ # The next line restarts using tkchessdb: \
+-exec tkchessdb "$0" "$@"
++TCLLIBPATH="@snack_path@ $TCLLIBPATH" exec tkchessdb "$0" "$@"
+
+ # For the above to work, tkchessdb must be in a directory in your PATH.
+ # Alternatively, you can set the first line to start tkchessdb directly
+@@ -147,13 +147,13 @@
+ if {$windowsOS} {
+ set ecoFile [file join $chessdbDataDir "chessdb.eco"]
+ } else {
+- set ecoFile "/usr/local/share/chessdb/chessdb.eco"
++ set ecoFile "@GENTOO_DATADIR@/chessdb.eco"
+ }
+
+ if {$windowsOS} {
+ set defaultTBDIR [file nativename [file join $::chessdbExeDir "tablebases"]]
+ } else {
+- set defaultTBDIR "/usr/local/share/chessdb/tablebases"
++ set defaultTBDIR "@GENTOO_DATADIR@/tablebases"
+ }
+
+ # boardSizes: a list of the available board sizes.
+@@ -692,8 +692,8 @@
+ set ::utils::sound::soundFolder [file nativename [file join $::chessdbExeDir sounds]]
+ set spellCheckFile [file nativename [file join $chessdbDataDir "ratings.ssp"] ]
+ } else {
+- set spellCheckFile "/usr/local/share/chessdb/ratings.ssp"
+- set ::utils::sound::soundFolder "/usr/local/share/chessdb/sounds"
++ set spellCheckFile "@GENTOO_DATADIR@/ratings.ssp"
++ set ::utils::sound::soundFolder "@GENTOO_DATADIR@/sounds"
+ }
+
+ # Engines data:
diff --git a/games-board/chessdb/files/digest-chessdb-3.6.18 b/games-board/chessdb/files/digest-chessdb-3.6.18
new file mode 100644
index 000000000000..f018a3ea8b08
--- /dev/null
+++ b/games-board/chessdb/files/digest-chessdb-3.6.18
@@ -0,0 +1,6 @@
+MD5 83253de8919e2b791824b54c70a4925c 4-piece-tablebases.zip 30799501
+RMD160 c59961176dbdca328f0a797da8ceff7832eca4c8 4-piece-tablebases.zip 30799501
+SHA256 86706176cf3fe38caefbef6ac7331500bec3571677f240d3844adfa26681c07d 4-piece-tablebases.zip 30799501
+MD5 6aee2e4eca26576cbe6e63dc6b8d55db ChessDB-3.6.18.tar.gz 10183596
+RMD160 7806b05f9215f0032484c6461d7e3f718d5f5528 ChessDB-3.6.18.tar.gz 10183596
+SHA256 7c8dbaaba64d7b2b8131720da5a657cac297a4f1eb9710286b372e22d95d9ee6 ChessDB-3.6.18.tar.gz 10183596
diff --git a/games-board/chessdb/metadata.xml b/games-board/chessdb/metadata.xml
new file mode 100644
index 000000000000..5c06ef2d7617
--- /dev/null
+++ b/games-board/chessdb/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+<longdescription lang="en">
+ChessDB is a free chess database which can be used on Microsoft Windows, Linux,
+Apple Macs running OS X, FreeBSD, as well as most if not all modern UNIX
+versions.
+The program has translations into English, Spanish, Czech, Dutch, French,
+German, Hungarian, Italian, Norwegian, Polish, Portuguese, Russian, Serbian
+and Swedish. The documentation is excellent, although currently most is
+only in English, but this situation is changing rapidly.
+ChessDB is based very heavily on the highly successful Scid which was the
+premier free chess database. There are a large number of features. in ChessDB.
+It is not a cut-down/light/crippled (call it what you want) version of an
+expensive commercial product, but you get a complete fully functional program.
+</longdescription>
+</pkgmetadata>