diff options
author | Julian Ospald <hasufell@gentoo.org> | 2014-09-01 00:37:00 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2014-09-01 00:37:00 +0000 |
commit | a9f74fbaf6cb4b6519848eeb8e19c4c65c4b3a66 (patch) | |
tree | d211f856ad1117768779893d4ba451fa3a179a0f /games-board/scid | |
parent | version bump (bug #434148) (diff) | |
download | historical-a9f74fbaf6cb4b6519848eeb8e19c4c65c4b3a66.tar.gz historical-a9f74fbaf6cb4b6519848eeb8e19c4c65c4b3a66.tar.bz2 historical-a9f74fbaf6cb4b6519848eeb8e19c4c65c4b3a66.zip |
version bump wrt #506534, convert to python-any-r1
Package-Manager: portage-2.2.12-r1/cvs/Linux x86_64
Manifest-Sign-Key: 0xBDEED020
Diffstat (limited to 'games-board/scid')
-rw-r--r-- | games-board/scid/ChangeLog | 8 | ||||
-rw-r--r-- | games-board/scid/Manifest | 27 | ||||
-rw-r--r-- | games-board/scid/files/scid-4.5.2-gentoo.patch | 160 | ||||
-rw-r--r-- | games-board/scid/scid-4.5.2.ebuild | 102 |
4 files changed, 295 insertions, 2 deletions
diff --git a/games-board/scid/ChangeLog b/games-board/scid/ChangeLog index 199c781426b1..8645f53bc806 100644 --- a/games-board/scid/ChangeLog +++ b/games-board/scid/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for games-board/scid # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-board/scid/ChangeLog,v 1.42 2014/03/20 22:20:55 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-board/scid/ChangeLog,v 1.43 2014/09/01 00:36:56 hasufell Exp $ + +*scid-4.5.2 (01 Sep 2014) + + 01 Sep 2014; Julian Ospald <hasufell@gentoo.org> +scid-4.5.2.ebuild, + +files/scid-4.5.2-gentoo.patch: + version bump wrt #506534, convert to python-any-r1 20 Mar 2014; Michael Sterrett <mr_bones_@gentoo.org> -files/scid-4.3-gentoo.patch, -files/scid-4.3-parallelmake.patch, diff --git a/games-board/scid/Manifest b/games-board/scid/Manifest index e5b06de14c52..f429536354d7 100644 --- a/games-board/scid/Manifest +++ b/games-board/scid/Manifest @@ -1,10 +1,35 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + AUX scid-4.4-gentoo.patch 2443 SHA256 c2d394be49d4f15493e88ba269e685123e5e676e974049b320ae4e65f35a593a SHA512 3c658ab05fd6b65860c9436ab602431a08b9694172b39e058f3e873289a0b6e4c54281d7dec7bd1cfe9711764222587228d66458c36c419f30d2b06aab1aec6d WHIRLPOOL c4875472db92c365203d1ac2824c2b46ca37fa4e4dcbe08dfaaf03d206c5b64034278a7a74c2160d878f9ae8705273dc5c7975035921a3767868454ea03bdd6d AUX scid-4.4-parallelmake.patch 467 SHA256 2a5daf858e9061380f4de129407d00fa5c6b8980d7525420e5bbe94f887c969b SHA512 77db5d7330ab05be1ff3cc2d0d610cfe79809405f6b0a1e37d1d1c7b27578346061f3672b17ac28ee45304082752e25b1edc16c879e871a4cac4de1a574b69ae WHIRLPOOL 8093c298f96352a1bf9a59bb760957d45dd6f6ca0899accb09f792ed10b9570e07e0ce99cb20bee0548ad046dd900cc09da9ce1b61036f4f5c3e2f1d80d6837d +AUX scid-4.5.2-gentoo.patch 6162 SHA256 867e9613e345cb1be2b1f1eb9821db2d5d6c4065a2b2f20a6cbc81ca368d75bc SHA512 dd08bd96501aa648588accb13110df2c35e53c9e88e10283a8229beb4046293720e2337d669beb17f588e94b1c7f60635bbe2dfe2c87dd157bdbd2ccdba2cbe5 WHIRLPOOL 6ab5e507abcfb0751175a6acdec3478e9698f1bf4a25381df01391e14f228780413fce9b76394220b9a2e4f142d0caede29b6648128fb75ce5111b60e2df7d49 +DIST Scid-4.5.2.zip 10271344 SHA256 9e371e78c9fa43cbda4d5851b6bad35f72f3f4f538c4bb9b28667d8ba59bbf43 SHA512 161c2ff1b1808c7e6d4ee02b527251d935b4554546385e336c3f7370a1c47891e31b975d59f5da0ed39175365f53b3400c1fffd550ea40caa090f87fbfbe62b7 WHIRLPOOL 7a362d22588542ce96e4b0d9df03a810bfe4c618329958838261eec5dca9431534dedbd58626e335c7c6d266beec1f1e2e1c695f4f903b3d739ecdb7a92cbb3d DIST photos.zip 1007488 SHA256 21aca2673df908a5960875872f127e0393bda0ef1db31003dd1c0d31583ff5a4 SHA512 c04fc810b457d4dbd9a9cfaac90feaa8c32a2abee05e28a79042ae81cb01e8580e2a1cf0abeff230ec2928da883f862b8901d679cb1448fd9ca0923323fbddd6 WHIRLPOOL dbbb8dd4ae37f0d84be929f09e6b583553b6c1cb6e866806388c61c54c09fb31b2a82baa6119b614416aa36dfc5250e63ac9afabbe6c561dcad8e71fe13caa99 DIST ratings.zip 969347 SHA256 bb41a1bf35314231201d2f7d635497002b9dbc6d0f896a611239587a8c1b2830 SHA512 9b2a7280a7e72e2b464cc3da6be82ec9825b11d3c7e2219ab03a711c69f185f7d954eb3acdd441bff210e9296613df79a7e147a2ccbb4ed37b50af762abbd243 WHIRLPOOL a2b9ece83e167f0e1b330e1aa31cc46aa2cc79c3d124f1bcbd0f0edc7f9d434d210fdc78467efd1b7acb6f299a6f3440bc8599c5d7c62a55e5dc694685e56575 DIST scid-4.4.tar.bz2 12403187 SHA256 ba3b01440ed7f16396360aab10a0bfe8354721c05a0a4f9e0031a800b8d781f2 SHA512 c54b27c22f3b7c77d9796d07c75379b45a862d443014439f73a8774e131e3f10f1720e7dba842dc83b6b3cc4d2a475d5ae55ec2053ec1ea0dd4efaf1a8313161 WHIRLPOOL b3f5232b0872b98beed8d8433bf6e84781a347231b7c242808ad8aaed3f8ef2d3d58f88b6ff8e4d9d874b4cb05c4f361f7f570d289162a641d7c5961ac4b8377 DIST scidlet40k.zip 242632 SHA256 fbab2a31e37f2d606140144ac1086ece035b991a756eef804a660c8ecb0f56bb SHA512 e8cb4ca276ca94378f224fad972b0659f3e8159668fa395dcae4be1de6cdd9d29082fdddba393bbea6c909bab4f388042ea05c7dff41edf850d731bc7479850d WHIRLPOOL f0965d6197518c5dda62d5ff73e1052ced68487a738d288522fdb649aab8a63de1b34e0392c7479885164f4245bc8c33618d0206905ba9d2a9cf0ce2e46f9d54 DIST spelling.zip 3147998 SHA256 63d8c8f7b99f6b6d5a4b6d4b0cd0a8e279f19173c98de3a989d7b05ee7dde624 SHA512 394a8835f23336b6f4bebe4e33ab9f64ffa505e9d9bb984de82396e671df0b57b088aab28c5cf648c1a11bc28370b431cb6db54765ac4ab6056a707276ba8f42 WHIRLPOOL f83ecfa03a817f491f25d48fc461156d1b8aea86e800e4ff7dcaa2a233958c7b4b9979d330fe71ba39028554206ec51f7e39344b7ff01194b3ed3fc949fbfbac EBUILD scid-4.4.ebuild 2280 SHA256 65e009339e1dc678a7a6df4a4a8ff3cda42883dd7e7030a4703e57a8000435b0 SHA512 abb6198eb6b98e50dd348e5a483acab3eadf2f382f98bf6805e1a14540f4a50f9677c46cc5385189de1d47c9652f00133c0f9b4b6f4c259481d059d1a085b5ca WHIRLPOOL d5c561e1f4f80a29771ec1c9d598438b657472789c55aa09eeba3168ded8db87ae749f27d6a36f97d7d18606e57ab1e27ef01467a768c63f111ef44a8dd73718 -MISC ChangeLog 5669 SHA256 88707a77e697dbf405bf897550b662161c8bc00bbb608b5d3bb749c720048926 SHA512 705d2c0bbac61133f521f75312cce1457d051ee57e05486a19dd75de4fa9370f3a4baaf66be258f9efed9521f0e77a87751850d34bc89269e2dd53b8eec9db40 WHIRLPOOL 96aa1feb71080267153331fd4531242e76b6f3a410ce9fc956abce0beb3fb250f7719010bbdf003e420b7c9c96110dd5fb00c3d06192518da003af3776f7517a +EBUILD scid-4.5.2.ebuild 2215 SHA256 f5fcafc8766fcac07d7898d1eb891bffd792831c98856350a9bb797eaf64cc8a SHA512 eecfd874cc4789eec87a751a737f9b1a99e081c0f9d1e41afb69e4f589f72ef50fb6db09a6f99dd8aa738229e427f03ea264f34c8d342ad142b463bcfb765150 WHIRLPOOL cd95395335af09271671b06ae3ae97ac124b0815d8e5434b70e8598d9c3ff8883fc38cff3d661c6349c2a76cca2939ca075c66e20391fd9d24ee2f6fc5b1a635 +MISC ChangeLog 5854 SHA256 79b4c2bbe8be8c292582b62143f0a6b491e5d9fb491f26f3141bf04562791a8b SHA512 c3b5337c80a44f889814d716c154cf6b59f530e0b66a66ea300018e478ba3fe5922db08ddb7c7522401481b745a2cc13ebade94181e571693c67d96dfd9bb18b WHIRLPOOL a5c5e9ac2b2b797fc91fc40b80b6abd387018e097c6d274de2e8562f9023294b0389760e31718ff124302ebdbaf4de59ca2476bfd2bfed3afa1ebe8a9abccf3e MISC metadata.xml 158 SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 SHA512 d954564236b67b6ab97846b73f74e715e8f1bec2dba6595e9a5046c2e8c3b93f4879c293f9d1d02d99a533bee56156dae3f31a485697128c51af14cdbfdada8a WHIRLPOOL d03e7293d09d794d61c095a423f945b3644355a247f270a73ca8d30b4dfe9c98244297536bfd1a4bd6c14794aa1152eca20fd83bfdf3e1e74d4f676152d35ada +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0 + +iQJ8BAEBCABmBQJUA7+rXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w +ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQzMDlCNDQ4NjEyNDI4NjA5REVEMDI3MzIy +MjBDRDFDNUJERUVEMDIwAAoJECIM0cW97tAg5V0QAJa2as2SO01ks8qOkuVGL4IB +D/vCRjsgAjQE7fe5cgkoTwnbOeJrx2AAA9WQQTtxGU+n8goni6JJ34bCll+G2OC4 +kPHtKU8Yql9ZRc/sJGY0eCNFAJt/aXiXJD1QyNMfOHOSV6z/MXXSn7DULCMQqSkM +DbkJJUvhz7PGctxMdf0Nmhvqe8Mza0hp6XtZxe+cJokalUTK71Wdc3r9tUcehlfU +to2njY0zuA2s7FBjK/2VFMgvdLiYfRaIbemEPAwP4cdW05NAr/JJygYBd6KNgld3 +9S3hWOHbAw0q6nXpuIScCfMI6O5j2xXnohSHW3kEwNQGT15ugLolCX6a16kUkyZ0 +m+VSfW8as7r/2cgRC4s/nY8mTuhJPtQyImvsv2eMnViqoeiTo35xWA0ZTi6J8dek +NbOWbbgXxpPpljq5ySrHKbSWHe+oEjb/wyZ8+CguWNil/lfD+mCCxgDuW5/gVyp1 +Oa38ccBIQlhbFqUkKXwd2hoLipMo8a52Rx5Mi/15M0jvtm/oNiup8z+fQgI2WZWg +HxfHnC+95DbmISlZlL0ShwdT8f48RqmUUe5WHnY+RrAm2cv8IWUQVmda1rFc/xEC +GZXL3V8u5lXh505hefn/hPPu6KnTtKdX7DrY+ZghvKWpGf3doB8e2+M6O1oCq8Tj +ubUXW7z2PhFOX6pZpIJm +=nqub +-----END PGP SIGNATURE----- diff --git a/games-board/scid/files/scid-4.5.2-gentoo.patch b/games-board/scid/files/scid-4.5.2-gentoo.patch new file mode 100644 index 000000000000..e6470cca1bfb --- /dev/null +++ b/games-board/scid/files/scid-4.5.2-gentoo.patch @@ -0,0 +1,160 @@ +--- engines/togaII1.2.1a/src/Makefile.old 2012-05-06 20:56:56.190522872 +0200 ++++ engines/togaII1.2.1a/src/Makefile 2012-05-06 20:58:20.995568403 +0200 +@@ -18,23 +18,16 @@ + + # 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 + +--- tcl/utils/sound.tcl.old 2012-05-06 21:05:31.475342861 +0200 ++++ tcl/utils/sound.tcl 2012-05-06 21:06:07.066843851 +0200 +@@ -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 +--- Makefile.conf.old 2013-11-28 06:58:08.000000000 +0100 ++++ Makefile.conf 2014-04-18 00:17:05.783340379 +0200 +@@ -193,7 +193,7 @@ + # Small extra programs. Most are written in Tcl using tkscid, but + # a few contributed ones may be in Python or other languages. + # +-SCRIPTS= sc_addmove sc_epgn sc_spell sc_eco sc_import sc_remote sc_tree scidpgn pgnfix spliteco spf2spi ++SCRIPTS= sc_addmove sc_epgn sc_spell sc_eco sc_import sc_remote sc_tree scidpgn pgnfix eco2pgn spliteco spf2spi + + #################### + +@@ -218,25 +218,25 @@ + install: $(INSTALL) + + install_scid: all_scid +- install -m 755 -d $(SHAREDIR) +- install -m 755 -d $(BINDIR) +- install -m 755 scid $(SCRIPTS) $(EXECS) $(BINDIR) +- install -m 644 -p scid.eco $(SHAREDIR) +- install -m 755 -d $(SHAREDIR)/books +- install -m 666 ./books/*.* $(SHAREDIR)/books/ +- install -m 755 -d $(SHAREDIR)/bases +- if test -d ./bases; then install -m 666 ./bases/*.* $(SHAREDIR)/bases/ ; fi +- install -m 755 -d $(SHAREDIR)/html +- cp -r ./html/* $(SHAREDIR)/html/ +- install -m 755 -d $(SHAREDIR)/img/ +- cp -r ./img/* $(SHAREDIR)/img/ ++ install -m 755 -d "$(DESTDIR)$(SHAREDIR)" ++ install -m 755 -d "$(DESTDIR)$(BINDIR)" ++ install -m 755 scid $(SCRIPTS) $(EXECS) "$(DESTDIR)$(BINDIR)" ++ install -m 644 -p scid.eco "$(DESTDIR)$(SHAREDIR)" ++ install -m 755 -d "$(DESTDIR)$(SHAREDIR)/books" ++ install -m 666 ./books/*.* "$(DESTDIR)$(SHAREDIR)/books/" ++ install -m 755 -d "$(DESTDIR)$(SHAREDIR)/bases" ++ if test -d ./bases; then install -m 666 ./bases/*.* "$(DESTDIR)$(SHAREDIR)/bases/" ; fi ++ install -m 755 -d "$(DESTDIR)$(SHAREDIR)/html" ++ cp -r ./html/* "$(DESTDIR)$(SHAREDIR)/html/" ++ install -m 755 -d "$(DESTDIR)$(SHAREDIR)/img/" ++ cp -r ./img/* "$(DESTDIR)$(SHAREDIR)/img/" + + install_engines: all_engines +- install -m 755 -d $(SHAREDIR)/engines +- install -m 755 -d $(SHAREDIR)/engines/phalanx-scid +- install ./engines/phalanx-scid/phalanx-scid $(SHAREDIR)/engines/phalanx-scid +- install -m 755 -d $(SHAREDIR)/engines/togaII1.2.1a +- install ./engines/togaII1.2.1a/src/togaII $(SHAREDIR)/engines/togaII1.2.1a/ ++ install -m 755 -d "$(DESTDIR)$(SHAREDIR)/engines" ++ install -m 755 -d "$(DESTDIR)$(SHAREDIR)/engines/phalanx-scid" ++ install ./engines/phalanx-scid/phalanx-scid "$(DESTDIR)$(SHAREDIR)/engines/phalanx-scid" ++ install -m 755 -d "$(DESTDIR)$(SHAREDIR)/engines/togaII1.2.1a" ++ install ./engines/togaII1.2.1a/src/togaII "$(DESTDIR)$(SHAREDIR)/engines/togaII1.2.1a/" + + install_mac: all + install -m 755 -d dist/Scid.app/Contents/MacOS +@@ -288,25 +288,25 @@ + hdiutil create -fs "HFS+" -volname Scid -srcfolder dist "Scid $(SCID_VERSION) (`sw_vers -productName` `sw_vers -productVersion` `uname -p`).dmg" + + uninstall: +- rm -rf $(SHAREDIR)/engines +- rm -rf $(SHAREDIR)/books +- rm -rf $(SHAREDIR)/bases +- rm -rf $(SHAREDIR)/data/ +- rm -f $(SHAREDIR)/data/scid.eco +- rm -f $(BINDIR)/scid $(BINDIR)/sc_addmove $(BINDIR)/sc_epgn +- rm -f $(BINDIR)/sc_spell $(BINDIR)/sc_eco $(BINDIR)/sc_import +- rm -f $(BINDIR)/sc_remote $(BINDIR)/sc_tree $(BINDIR)/scidpgn +- rm -f $(BINDIR)/pgnfix $(BINDIR)/spliteco +- rm -f $(BINDIR)/pgnscid $(BINDIR)/tkscid +- rm -f $(BINDIR)/scmerge $(BINDIR)/scidlet +- rm -rf $(SHAREDIR)/html ++ rm -rf "$(DESTDIR)$(SHAREDIR)/engines" ++ rm -rf "$(DESTDIR)$(SHAREDIR)/books" ++ rm -rf "$(DESTDIR)$(SHAREDIR)/bases" ++ rm -rf "$(DESTDIR)$(SHAREDIR)/data/" ++ rm -f "$(DESTDIR)$(SHAREDIR)/data/scid.eco" ++ rm -f "$(DESTDIR)$(BINDIR)/scid $(BINDIR)/sc_addmove" "$(DESTDIR)$(BINDIR)/sc_epgn" ++ rm -f "$(DESTDIR)$(BINDIR)/sc_spell" "$(DESTDIR)$(BINDIR)/sc_eco" "$(DESTDIR)$(BINDIR)/sc_import" ++ rm -f "$(DESTDIR)$(BINDIR)/sc_remote" "$(DESTDIR)$(BINDIR)/sc_tree" "$(DESTDIR)$(BINDIR)/scidpgn" ++ rm -f "$(DESTDIR)$(BINDIR)/pgnfix" "$(DESTDIR)$(BINDIR)/spliteco" ++ rm -f "$(DESTDIR)$(BINDIR)/pgnscid" "$(DESTDIR)$(BINDIR)/tkscid" ++ rm -f "$(DESTDIR)$(BINDIR)/scmerge" "$(DESTDIR)$(BINDIR)/scidlet" ++ rm -rf "$(DESTDIR)$(SHAREDIR)/html" + + ### To remove Scid files placed in the BINDIR and SHAREDIR directories, + # type "make distclean". + # + distclean: +- cd $(BINDIR) && rm -f $(EXECS) $(SCRIPTS) +- -rm -f $(SHAREDIR)/scid.eco ++ cd $(DESTDIR)$(BINDIR) && rm -f "$(EXECS)" "$(SCRIPTS)" ++ -rm -f "$(DESTDIR)$(SHAREDIR)/scid.eco" + + ### To remove object and executable files: type "make clean". + # +--- tcl/start.tcl.old 2013-11-28 06:58:08.000000000 +0100 ++++ tcl/start.tcl 2014-04-18 00:37:25.796397765 +0200 +@@ -186,7 +186,7 @@ + + # scidShareDir, scidImgDir, scidBooksDir, scidBasesDir, ecoFile: + # Location of Scid resources +- set scidShareDir [file normalize [file join $scidExeDir "../share/scid"]] ++ set scidShareDir "@GENTOO_DATADIR@" + if {! [file isdirectory $::scidShareDir]} { + set scidShareDir $::scidExeDir + } +@@ -849,7 +849,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 +@@ -858,7 +858,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 --git a/games-board/scid/scid-4.5.2.ebuild b/games-board/scid/scid-4.5.2.ebuild new file mode 100644 index 000000000000..156f7315aa2b --- /dev/null +++ b/games-board/scid/scid-4.5.2.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-board/scid/scid-4.5.2.ebuild,v 1.1 2014/09/01 00:36:56 hasufell Exp $ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) +inherit eutils toolchain-funcs gnome2-utils python-any-r1 games + +DESCRIPTION="a free chess database application" +HOMEPAGE="http://scid.sourceforge.net/" +SRC_URI="mirror://sourceforge/scid/Scid-${PV}.zip + mirror://sourceforge/scid/spelling.zip + mirror://sourceforge/scid/ratings.zip + mirror://sourceforge/scid/photos.zip + mirror://sourceforge/scid/scidlet40k.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +CDEPEND="dev-lang/tk + >=sys-libs/zlib-1.1.3" +RDEPEND="${CDEPEND} + !games-board/chessdb" +DEPEND="${CDEPEND} + ${PYTHON_DEPS} + app-arch/unzip" + +pkg_setup() { + python-any-r1_pkg_setup + games_pkg_setup +} + +src_unpack() { + default + mv scid-code-* ${P} || die +} + +src_prepare() { + edos2unix engines/togaII1.2.1a/src/Makefile + epatch "${FILESDIR}"/${P}-gentoo.patch + sed -i \ + -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \ + tcl/start.tcl \ + src/scidlet.cpp \ + || die "sed failed" + gzip ../ratings.ssp + python_fix_shebang . +} + +src_configure() { + # configure is not an autotools script + ./configure \ + COMPILE="$(tc-getCXX)" \ + LINK="$(tc-getCXX) ${CXXFLAGS} ${LDFLAGS}" \ + CC="$(tc-getCC)" \ + OPTIMIZE="${CXXFLAGS}" \ + TCL_INCLUDE="" \ + BINDIR="${GAMES_BINDIR}" \ + SHAREDIR="${GAMES_DATADIR}/${PN}" \ + || die "configure failed" +} + +src_compile() { + emake all_scid +} + +src_install() { + emake DESTDIR="${D}" install_scid + insinto "${GAMES_DATADIR}"/${PN} + doins -r sounds + + dodoc ChangeLog TODO + dohtml help/*.html + + newicon -s scalable svg/scid_app.svg ${PN}.svg + make_desktop_entry scid Scid + + cd .. || die + doins spelling.ssp ratings.ssp.gz *.spf + newins scidlet40k.sbk scidlet.sbk + + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update + 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" +} + +pkg_postrm() { + gnome2_icon_cache_update +} |