summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2009-10-16 07:12:39 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2009-10-16 07:12:39 +0000
commit09f80585a6459fe35458ca71f206b5d228f439aa (patch)
treedb97a6d2867240c2910a6cfb9f06023cdfcc42bb /games-board
parentVersion bump. (diff)
downloadhistorical-09f80585a6459fe35458ca71f206b5d228f439aa.tar.gz
historical-09f80585a6459fe35458ca71f206b5d228f439aa.tar.bz2
historical-09f80585a6459fe35458ca71f206b5d228f439aa.zip
version bump
Package-Manager: portage-2.1.6.13/cvs/Linux i686
Diffstat (limited to 'games-board')
-rw-r--r--games-board/scid/ChangeLog10
-rw-r--r--games-board/scid/Manifest7
-rw-r--r--games-board/scid/files/scid-4.0-gentoo.patch87
-rw-r--r--games-board/scid/scid-4.0.ebuild85
4 files changed, 186 insertions, 3 deletions
diff --git a/games-board/scid/ChangeLog b/games-board/scid/ChangeLog
index 6152cbdb0106..36d89ba6f94f 100644
--- a/games-board/scid/ChangeLog
+++ b/games-board/scid/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-board/scid
-# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-board/scid/ChangeLog,v 1.17 2008/07/04 06:33:16 tupone Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-board/scid/ChangeLog,v 1.18 2009/10/16 07:12:38 mr_bones_ Exp $
+
+*scid-4.0 (16 Oct 2009)
+
+ 16 Oct 2009; Michael Sterrett <mr_bones_@gentoo.org> +scid-4.0.ebuild,
+ +files/scid-4.0-gentoo.patch:
+ version bump
*scid-3.6.24 (04 Jul 2008)
diff --git a/games-board/scid/Manifest b/games-board/scid/Manifest
index 0ef3332fcf3b..ca5e15a80159 100644
--- a/games-board/scid/Manifest
+++ b/games-board/scid/Manifest
@@ -1,16 +1,21 @@
AUX scid-3.6.1-gentoo.patch 2579 RMD160 3c61f580d4f33d1cc965d647192459c68e6a3d51 SHA1 efe57d95d2117f131a81fbe236da4629a8540a32 SHA256 1e78cbe7e91793412ecd0a5e0b3f5bda3a7c85f96c1eb1ac1f005ebd228815de
AUX scid-3.6.24-gentoo.patch 3307 RMD160 bf81cf59615a167108baee15d2139b3370c7acfd SHA1 6f613a45cf1d85c6e93634320b8285aedacbd46f SHA256 b1e660f9287548e29f378b1d63a4aafb076d933f4bd4af39e89503f3b4d7332d
+AUX scid-4.0-gentoo.patch 2780 RMD160 e0332723fd57c8b6908c395dc47e9112ed9dc279 SHA1 1c0dffa6429e95a8136bcbf2e521590957c095d3 SHA256 416b83947faf5d1eebe9df9620c794984ccdd56842c76a33546c8d1fa94f9a0b
DIST photos.zip 1007488 RMD160 85cd09ca8d2ac910889e0696097d51cf626a2be6 SHA1 5264b461197d6cea29a892996364c37cc8430f8c SHA256 21aca2673df908a5960875872f127e0393bda0ef1db31003dd1c0d31583ff5a4
DIST photos2007.zip 2497894 RMD160 32ee0c51ad47d309e875e1a4e73212408fec0d03 SHA1 3d358c2368f19e9286decb460bff0fbaba7bd99f SHA256 e5700e6775eb7c236bd46e2898719c7de417651d6bb5b9760d19ad9519d84415
DIST ratings.zip 969347 RMD160 f9ede272b5a819d0f931ed61cbfe8c82c141e779 SHA1 573ccbbf581e3553d137e512528ef9a42a2509ad SHA256 bb41a1bf35314231201d2f7d635497002b9dbc6d0f896a611239587a8c1b2830
DIST ratings_2008_4.zip 5449270 RMD160 5326b9cbe00842106894df3e699422c374cda246 SHA1 7c08f53e5c1e2c6b935464c81aeb851370edc6aa SHA256 420b432ef5ce2a5b87c4b7470a722bfcfc676d09a32c6fef949a322e92cf27b7
+DIST ratings_2009_01.ssp.zip 6128619 RMD160 415fdb2cf7534aa222cc651d9abbd4d7c0b2da18 SHA1 4097366ff895e8b41e293b8166c388a4d0fd6ebb SHA256 71a37e53752d6daa402a0cca1c00bf8fb7f5f3d56567472cafc6a1f5c693e35b
DIST scid-3.6.1.tar.gz 2272946 RMD160 ebc660d56fe5e29429586e76904d9238185a1c0c SHA1 a002a42afd46cc59a3c512473891a227d29ecc34 SHA256 42665fba00f9cf8dd7d4e4c13a6b281e3c48d4dcd91d9f78f75b29e3485aaa05
DIST scid-3.6.24.tar.bz2 11817129 RMD160 fac672da2bcbdf6b3ad16b57297b6c3bf17f7cc3 SHA1 82ce0ebfe176971ea8349711d0a4a54590526f82 SHA256 8c86858d5e5133397df45f2b2dfc0c3a4b7a067a31781237ed2d8540255f4269
+DIST scid-4.0.tar.bz2 13658598 RMD160 6553254ac2053ff09f1c6b1c2c1dc49900d0842a SHA1 f7651148cbac9b9cc0681c80a8cb51c0d9b8b0fa SHA256 aee37b7f0a2a960ebacf773e22e97ede775f5a7f20ea27272953369c4f16e821
DIST scid-extras-08232002.tar.bz2 1209029 RMD160 37af53ab29e5a62f10fb9590a4575bd717f1c733 SHA1 10ecf7cfa153bbdb723e9bdf3899b73b433a707b SHA256 24ba1a34e9187d718b0c482245079ffdb0f26099e666b33db051f166d6d3d160
DIST scidlet40k.zip 242632 RMD160 f8303ff4f0106ddbc5e8c19d9cdac69842d991e3 SHA1 2f0f3efe4ee3c8bb78857590b61ff7e449b7b72e SHA256 fbab2a31e37f2d606140144ac1086ece035b991a756eef804a660c8ecb0f56bb
DIST spelling_2008_4.zip 1413905 RMD160 39d3cb6783bbc99403f89107c1bc57bfdc90a8d4 SHA1 7ada64386bd59bdba48b10ba1fdf0661dd9a54ad SHA256 8e8b7e8784b319e352bf013c9863a80276fa8f059d36ba91a845e514c053c09b
+DIST spelling_2009_01.ssp.zip 1557246 RMD160 4917158112873b7f7767d943a106dc8c3b42acc5 SHA1 665acbf7c59d29465051a0ee03fb135ec34fc140 SHA256 e828bbdefc6a07f86b1bedf053352f0a0c6de4d3927cb7b8dcac2cb4f2c83563
EBUILD scid-3.6.1-r2.ebuild 1642 RMD160 1da678454b809e6118460d521fb81f34ea534b9e SHA1 0aaa73c39be3deda3915a90b2639aba1bdf69457 SHA256 eaa7fc40857a0be7877be50f60ef88295dc82ec69208af7d6c7cf0cb31abe579
EBUILD scid-3.6.1.ebuild 1383 RMD160 013effd3baf395431a5f1b2771981b86b187bf9f SHA1 6499cff88b53bfb6bc9ee927d717091dcfdcd041 SHA256 cff207e3914702085fe6a4a3a30637c00b312f834eb33f76c7d373e99519aa7e
EBUILD scid-3.6.24.ebuild 2077 RMD160 23384243f656c6043b0c71c4207daa35c27bcc4f SHA1 c9e900a7b34fc6495c9d93635cb4d8667ec85eed SHA256 93e167b3d5af6c5d531e8708a788896de8f7945418414e8f6feec3157132b71a
-MISC ChangeLog 2523 RMD160 5da0877c7afecc17882e0e3919534138e88bd3cd SHA1 ddb72201aca5dd7c3102063d62ed6b8ada401a4d SHA256 d53e520914f8a6256660ca2d25995a73e71fee77c982b6e3025bfa595923a59f
+EBUILD scid-4.0.ebuild 2164 RMD160 a9b8c161aad3e1cdd0475156ad48edbc440d7b3f SHA1 2d73b5fbb604ec8662458757a152f2666871c150 SHA256 e6b3e24aab56a2dbd89a83e3421ed2d50a491527fd5093d674ac4454ae7b97fb
+MISC ChangeLog 2672 RMD160 c062e7ff69b7f1aef45df91fa0607c9f847affbc SHA1 3b993f7d886e715921cd8a6925b1cd1096921892 SHA256 7f8e81b8cc972d06dccaabe46ae7f8feef58c8700abdd7834a5da5b709c6552f
MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3
diff --git a/games-board/scid/files/scid-4.0-gentoo.patch b/games-board/scid/files/scid-4.0-gentoo.patch
new file mode 100644
index 000000000000..81e50cbc8496
--- /dev/null
+++ b/games-board/scid/files/scid-4.0-gentoo.patch
@@ -0,0 +1,87 @@
+diff -ru scid.orig/engines/togaII1.2.1a/src/Makefile scid/engines/togaII1.2.1a/src/Makefile
+--- scid.orig/engines/togaII1.2.1a/src/Makefile 2009-07-08 04:28:03.000000000 -0400
++++ scid/engines/togaII1.2.1a/src/Makefile 2009-10-16 02:55:19.130622645 -0400
+@@ -16,26 +16,6 @@
+ clean:
+ $(RM) *.o .depend gmon.out fruit togaII
+
+-# general
+-
+-CXX = g++
+-CXXFLAGS = -pipe -Wall
+-LDFLAGS = -lm
+-
+-# C++
+-
+-CXXFLAGS += -fno-exceptions -fno-rtti
+-
+-# optimisation
+-
+-CXXFLAGS += -O3 -fstrict-aliasing
+-CXXFLAGS += -fomit-frame-pointer
+-# CXXFLAGS += -march=athlon-xp # SELECT ME
+-
+-# strip
+-
+-LDFLAGS += -s
+-
+ # dependencies
+
+ $(EXE): $(OBJS)
+diff -ru scid.orig/src/scidlet.cpp scid/src/scidlet.cpp
+--- scid.orig/src/scidlet.cpp 2009-01-06 03:02:08.000000000 -0500
++++ scid/src/scidlet.cpp 2009-10-16 02:58:56.289745835 -0400
+@@ -232,7 +232,7 @@
+ };
+
+ const configT defaultConfig = {
+- (char *) "scidlet.sbk", // bookFileName
++ (char *) "@GENTOO_DATADIR@/scidlet.sbk", // bookFileName
+ (char *) "scidlet.log", // logFileName
+ 16, // hashTableMB
+ 1, // pawnTableMB
+diff -ru scid.orig/tcl/config.tcl scid/tcl/config.tcl
+--- scid.orig/tcl/config.tcl 2008-05-05 03:04:12.000000000 -0400
++++ scid/tcl/config.tcl 2009-10-16 02:56:10.800616475 -0400
+@@ -5,7 +5,7 @@
+ if {$windowsOS} {
+ set scidShareDir $scidExeDir
+ } else {
+- set scidShareDir [file normalize [file join $scidExeDir "../share/scid"]]
++ set scidShareDir "@GENTOO_DATADIR@"
+ }
+
+ if {![info exists scidBooksDir]} {
+diff -ru scid.orig/tcl/start.tcl scid/tcl/start.tcl
+--- scid.orig/tcl/start.tcl 2009-08-25 03:32:55.000000000 -0400
++++ scid/tcl/start.tcl 2009-10-16 02:57:53.763745315 -0400
+@@ -922,7 +922,7 @@
+
+ ### Audio move announcement options:
+
+-set ::utils::sound::soundFolder [file nativename [file join $::scidExeDir sounds]]
++set ::utils::sound::soundFolder "@GENTOO_DATADIR@/sounds"
+ set ::utils::sound::announceNew 0
+ set ::utils::sound::announceForward 0
+ set ::utils::sound::announceBack 0
+@@ -931,7 +931,7 @@
+ if {$windowsOS} {
+ set spellCheckFile [file join $scidDataDir "spelling.ssp"]
+ } else {
+- set spellCheckFile "/usr/local/share/scid/spelling.ssp"
++ set spellCheckFile "@GENTOO_DATADIR@/spelling.ssp"
+ }
+
+ # book configuration
+diff -ru scid.orig/tcl/utils/sound.tcl scid/tcl/utils/sound.tcl
+--- scid.orig/tcl/utils/sound.tcl 2009-08-23 06:08:39.000000000 -0400
++++ scid/tcl/utils/sound.tcl 2009-10-16 02:56:32.590882174 -0400
+@@ -41,7 +41,7 @@
+ variable soundFolder
+
+ ::splash::add "Setting up audio move announcement..."
+- if {[catch {package require snack 2.0}]} {
++ if {[catch {package require snack}]} {
+ set hasSnackPackage 0
+ ::splash::add " Move speech disabled - Snack sound package not found"
+ return
diff --git a/games-board/scid/scid-4.0.ebuild b/games-board/scid/scid-4.0.ebuild
new file mode 100644
index 000000000000..4d12af227471
--- /dev/null
+++ b/games-board/scid/scid-4.0.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-board/scid/scid-4.0.ebuild,v 1.1 2009/10/16 07:12:38 mr_bones_ Exp $
+
+EAPI=2
+inherit eutils toolchain-funcs games
+
+DESCRIPTION="a free chess database application"
+HOMEPAGE="http://scid.sourceforge.net/"
+SRC_URI="mirror://sourceforge/scid/${P}.tar.bz2
+ mirror://sourceforge/scid/spelling_2009_01.ssp.zip
+ mirror://sourceforge/scid/ratings_2009_01.ssp.zip
+ mirror://sourceforge/scid/photos2007.zip
+ mirror://sourceforge/scid/scidlet40k.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+IUSE=""
+
+DEPEND=">=dev-lang/tk-8.3
+ >=sys-libs/zlib-1.1.3
+ app-arch/unzip"
+RDEPEND="${DEPEND}
+ !games-board/chessdb
+ x11-libs/libX11
+ >=dev-lang/python-2.1"
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gentoo.patch
+ sed -i \
+ -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \
+ tcl/config.tcl \
+ tcl/start.tcl \
+ src/scidlet.cpp \
+ || die "sed failed"
+ gzip ../ratings_2009_01.ssp
+}
+
+src_configure() {
+ # configure is not an autotools script
+ ./configure \
+ COMPILE=$(tc-getCXX) \
+ LINK=$(tc-getCXX) \
+ CC=$(tc-getCC) \
+ OPTIMIZE="${CXXFLAGS}" \
+ TCL_INCLUDE="" \
+ BINDIR="${GAMES_BINDIR}" \
+ SHAREDIR="${GAMES_DATADIR}/${PN}" \
+ || die "configure failed"
+}
+
+src_compile() {
+ emake all_scid || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install_scid || die "emake install failed"
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r sounds || die "failed installing sounds"
+
+ dodoc CHANGES ChangeLog README THANKS TODO
+ dohtml help/*.html
+
+ cd ..
+ newins spelling_2009_01.ssp spelling.ssp \
+ || die "Failed installing spelling.ssp"
+ newins ratings_2009_01.ssp.gz ratings.ssp.gz \
+ || die "Failed installing ratings.ssp"
+ doins *.spf \
+ || die "Failed installing photos"
+ newins scidlet40k.sbk scidlet.sbk \
+ || die "Failed installing scidlet.sbk"
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "To enable speech, emerge dev-tcltk/snack"
+ elog "To enable some piece sets, emerge dev-tcltk/tkimg"
+ elog "To enable Xfcc support, emerge dev-tcltk/tdom"
+}