diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2007-07-13 22:31:08 +0000 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2007-07-13 22:31:08 +0000 |
commit | b5870d7ce9e92f3d5ece8493260566e6426ad1a3 (patch) | |
tree | ec9420e569ee99255f8bd709813f236bd9bf9d41 /games-board | |
parent | Adding games-board/chessdb tb4 use flag (load 4-piece table bases) (diff) | |
download | gentoo-2-b5870d7ce9e92f3d5ece8493260566e6426ad1a3.tar.gz gentoo-2-b5870d7ce9e92f3d5ece8493260566e6426ad1a3.tar.bz2 gentoo-2-b5870d7ce9e92f3d5ece8493260566e6426ad1a3.zip |
New package, requested with bug #169841
(Portage version: 2.1.2.9)
Diffstat (limited to 'games-board')
-rw-r--r-- | games-board/chessdb/ChangeLog | 10 | ||||
-rw-r--r-- | games-board/chessdb/Manifest | 21 | ||||
-rw-r--r-- | games-board/chessdb/chessdb-3.6.18.ebuild | 71 | ||||
-rw-r--r-- | games-board/chessdb/files/chessdb-3.6.18-gentoo.patch | 62 | ||||
-rw-r--r-- | games-board/chessdb/files/digest-chessdb-3.6.18 | 6 | ||||
-rw-r--r-- | games-board/chessdb/metadata.xml | 18 |
6 files changed, 188 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..8439ce886a1c --- /dev/null +++ b/games-board/chessdb/Manifest @@ -0,0 +1,21 @@ +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 1597 RMD160 4e0f35c6f55b2d213d96a6aa831878bc57b1f727 SHA1 53b878c41ded3907e75b3eb852e5a851401f88e9 SHA256 66dd6808eb3217735943a15b07d9735053def6a03090a2383949e2d96a50d023 +MD5 ebcf29f5e02c16ed605c6c87e5250ac1 chessdb-3.6.18.ebuild 1597 +RMD160 4e0f35c6f55b2d213d96a6aa831878bc57b1f727 chessdb-3.6.18.ebuild 1597 +SHA256 66dd6808eb3217735943a15b07d9735053def6a03090a2383949e2d96a50d023 chessdb-3.6.18.ebuild 1597 +MISC ChangeLog 357 RMD160 83fe5dbf1ccb26cbc940d9b59d9b775f85d9ad27 SHA1 e380e38481e79ef5d34d3848a717b17909e9fdef SHA256 3462191de522c7addd0b8792e37fd192aea464c72ff44aedcc59ff7f0fe25de5 +MD5 24835c3907b55bff7006e9b1d782a900 ChangeLog 357 +RMD160 83fe5dbf1ccb26cbc940d9b59d9b775f85d9ad27 ChangeLog 357 +SHA256 3462191de522c7addd0b8792e37fd192aea464c72ff44aedcc59ff7f0fe25de5 ChangeLog 357 +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 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> |