summaryrefslogtreecommitdiff
path: root/games-board/scid
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /games-board/scid
reinit the tree, so we can have metadata
Diffstat (limited to 'games-board/scid')
-rw-r--r--games-board/scid/Manifest11
-rw-r--r--games-board/scid/files/scid-4.6.2-gentoo.patch127
-rw-r--r--games-board/scid/metadata.xml11
-rw-r--r--games-board/scid/scid-4.6.2-r1.ebuild98
-rw-r--r--games-board/scid/scid-4.6.2.ebuild100
5 files changed, 347 insertions, 0 deletions
diff --git a/games-board/scid/Manifest b/games-board/scid/Manifest
new file mode 100644
index 000000000000..7fe345b6be15
--- /dev/null
+++ b/games-board/scid/Manifest
@@ -0,0 +1,11 @@
+AUX scid-4.6.2-gentoo.patch 4508 SHA256 7af8ec02a7c6fefe89b54e28db7b7e5c7ae61b76d040d1e0c32f453685734766 SHA512 52a32a6250b293a0fe145ebd45cf6b4d283f3d883cffa278e9599e36a57c129e0b6ccc2a637f200b5fa1e4b8c8a7956fa63a60ceb5d83ba877ca54920346de83 WHIRLPOOL 38536109a8072f17a9954a0ead89e622122559b928034a50c78cbcc015aca862695b3059646a9d8aa24c2295c709447601fecbb0cda13fe5eae5c40983f20a19
+DIST photos.zip 1007488 SHA256 21aca2673df908a5960875872f127e0393bda0ef1db31003dd1c0d31583ff5a4 SHA512 c04fc810b457d4dbd9a9cfaac90feaa8c32a2abee05e28a79042ae81cb01e8580e2a1cf0abeff230ec2928da883f862b8901d679cb1448fd9ca0923323fbddd6 WHIRLPOOL dbbb8dd4ae37f0d84be929f09e6b583553b6c1cb6e866806388c61c54c09fb31b2a82baa6119b614416aa36dfc5250e63ac9afabbe6c561dcad8e71fe13caa99
+DIST ratings.zip 969347 SHA256 bb41a1bf35314231201d2f7d635497002b9dbc6d0f896a611239587a8c1b2830 SHA512 9b2a7280a7e72e2b464cc3da6be82ec9825b11d3c7e2219ab03a711c69f185f7d954eb3acdd441bff210e9296613df79a7e147a2ccbb4ed37b50af762abbd243 WHIRLPOOL a2b9ece83e167f0e1b330e1aa31cc46aa2cc79c3d124f1bcbd0f0edc7f9d434d210fdc78467efd1b7acb6f299a6f3440bc8599c5d7c62a55e5dc694685e56575
+DIST scid-4.6.2.zip 9768139 SHA256 4c04a7ce8fb44ded1af17aacf7950d8aeab4eb962dd76486dbf4a69307743af7 SHA512 d33f730857362dfefe55aaf395b0fc42087e190743ed63072128509fc6ac33791a4c2f67f89f03ec39170660fc6b7a6804fea084b383cf97cbb21661ce0569b2 WHIRLPOOL a8024ecab40aaf461b33237b362d9efb86c513bf5a49f8b2a64965cdbd1cce5b1f984636779dcab330efdf0adea958b4e45f051093d8c9c446288602951f987f
+DIST scidlet40k.zip 242632 SHA256 fbab2a31e37f2d606140144ac1086ece035b991a756eef804a660c8ecb0f56bb SHA512 e8cb4ca276ca94378f224fad972b0659f3e8159668fa395dcae4be1de6cdd9d29082fdddba393bbea6c909bab4f388042ea05c7dff41edf850d731bc7479850d WHIRLPOOL f0965d6197518c5dda62d5ff73e1052ced68487a738d288522fdb649aab8a63de1b34e0392c7479885164f4245bc8c33618d0206905ba9d2a9cf0ce2e46f9d54
+DIST spelling.zip 3147998 SHA256 63d8c8f7b99f6b6d5a4b6d4b0cd0a8e279f19173c98de3a989d7b05ee7dde624 SHA512 394a8835f23336b6f4bebe4e33ab9f64ffa505e9d9bb984de82396e671df0b57b088aab28c5cf648c1a11bc28370b431cb6db54765ac4ab6056a707276ba8f42 WHIRLPOOL f83ecfa03a817f491f25d48fc461156d1b8aea86e800e4ff7dcaa2a233958c7b4b9979d330fe71ba39028554206ec51f7e39344b7ff01194b3ed3fc949fbfbac
+EBUILD scid-4.6.2-r1.ebuild 1986 SHA256 789e92fb8322980750347fa158ff613a650426cfcc211907ba8dc4e4a5f9db60 SHA512 ba0364fb05c468a6048fdad1fe0462ed0b6d1c979d601de30a7d9b363893b262c89cf86b3a6afac65997e91c3ad26a4e7d5ee47b19073db72ddbc1ec22cf78ee WHIRLPOOL 1ad0d8c3b8dc144b61c8e2564584e47204330e92b3d73baf2a117dfcc31b40a9793fe0e653435c584e5b9a7570bc43a94ca14558df4a9c8232198e475a733ddf
+EBUILD scid-4.6.2.ebuild 2082 SHA256 f07a6aa4c555584835e4526f16cc78a4a0a7837c37e56dc08862b612cb9d8ae2 SHA512 11995a51fcb9330fb7d434079d3877a029fab00ac664d27fbba36405602c9f7aa6465e958c376ba013e1a034d26d09406699fdab38df3a63e7a4d305f854103b WHIRLPOOL b6e53ec3827fd53e377dd637baa3b7fa45461163e84bdf3d69c66dc1a585807a2e99cb2baa5613be3cf07a9b097f170a2fbfe7ed59636834636d6f6a09b4c912
+MISC ChangeLog 3552 SHA256 bab1312482c9be32162913bedc93143eba48b5def8c80831519be15d746951b6 SHA512 87320556e2f816a1750c2efbfb7fbb8b1e3bd6b3559251202d424063cddc86ed16b4b4f3b5ac88c49748b540240d9c43a762a6c1723c6053a43d63bcc0abd641 WHIRLPOOL 8e845ecced8c0807b594d4d5f910216b2d73d18c0a43477c83bf272c4a3c7cdef3dc1f158163b0ba4fc241d983b96a4ad24ef90a733038d7bda924450290145d
+MISC ChangeLog-2015 6807 SHA256 0f0191d5509b16738ecb1dbd0913288e8ba9b1400a055c8311df15a5ebf35f7f SHA512 fea9ce5812e70b441d2f59e0eaa0430efa291e348846115db37717988c7d4c2164bdf6eb5abc7b3fb0eefca23c68ca5008a60a58da7d3f445e6728c3fa761e03 WHIRLPOOL eff4e0fbaabb01832f74f9c09b35a158548a0e6aa78ec5048d30e43eac56d846e823da23f78b018252c375a6b5bdb0eb4f5678ab3a639365f99a7118405cf28e
+MISC metadata.xml 327 SHA256 0a6049327063ade881822bc71f275df33e0479d7024c1531bb0af1ed9b640d70 SHA512 b3551509e319eba4e682673f363044c3f3b7973299618405e6aa29f44a86527e0f397a6baaface9d95806da7ec2c361c152729b753741694fb9c13760433e5c1 WHIRLPOOL 958f0e9fc2b2f74e30d007e1ae77d2690679a95039a7f770f400e25900a926a244694017fe4e2309a836c77927b5ef37c2d7359389961ab60798f95b7c1645a3
diff --git a/games-board/scid/files/scid-4.6.2-gentoo.patch b/games-board/scid/files/scid-4.6.2-gentoo.patch
new file mode 100644
index 000000000000..6afd56b5badf
--- /dev/null
+++ b/games-board/scid/files/scid-4.6.2-gentoo.patch
@@ -0,0 +1,127 @@
+--- scid-4.6.1.orig/engines/togaII1.2.1a/src/Makefile
++++ scid-4.6.1/engines/togaII1.2.1a/src/Makefile
+@@ -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
+
+--- scid-4.6.1.orig/Makefile.conf
++++ scid-4.6.1/Makefile.conf
+@@ -157,32 +157,32 @@
+ install: $(INSTALL)
+
+ install_scid: all_scid
+- install -m 755 -d "$(SHAREDIR)"
+- install -m 755 -d "$(BINDIR)"
+- install -m 755 $(SCRIPTS) $(EXECS) "$(BINDIR)"
+- rm -f "$(BINDIR)/scid"
+- @echo "#!/bin/sh" > "$(BINDIR)/scid"
+- @echo 'exec "$(BINDIR)/tkscid" "$(SHAREDIR)/tcl/start.tcl" "$$@"' >> "$(BINDIR)/scid"
+- chmod 755 "$(BINDIR)/scid"
+- chmod +x "$(BINDIR)/scid"
+- 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 "$(SHAREDIR)/tcl/"
+- cp -r ./tcl/* "$(SHAREDIR)/tcl/"
++ install -m 755 -d "$(DESTDIR)$(SHAREDIR)"
++ install -m 755 -d "$(DESTDIR)$(BINDIR)"
++ install -m 755 $(SCRIPTS) $(EXECS) "$(DESTDIR)$(BINDIR)"
++ rm -f "$(DESTDIR)$(BINDIR)/scid"
++ @echo "#!/bin/sh" > "$(DESTDIR)$(BINDIR)/scid"
++ @echo 'exec "$(BINDIR)/tkscid" "$(SHAREDIR)/tcl/start.tcl" "$$@"' >> "$(DESTDIR)$(BINDIR)/scid"
++ chmod 755 "$(DESTDIR)$(BINDIR)/scid"
++ chmod +x "$(DESTDIR)$(BINDIR)/scid"
++ 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 -m 755 -d "$(DESTDIR)$(SHAREDIR)/tcl/"
++ cp -r ./tcl/* "$(DESTDIR)$(SHAREDIR)/tcl/"
+
+ 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
+--- scid-4.6.1.orig/tcl/options.tcl
++++ scid-4.6.1/tcl/options.tcl
+@@ -598,7 +598,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
+@@ -607,7 +607,7 @@
+ if {$windowsOS} {
+ set spellCheckFile [file join $scidExeDir "spelling.ssp"]
+ } else {
+- set spellCheckFile "/usr/local/share/scid/spelling.ssp"
++ set spellCheckFile "@GENTOO_DATADIR@/spelling.ssp"
+ }
+
+ # book configuration
+--- scid-4.6.1.orig/tcl/start.tcl
++++ scid-4.6.1/tcl/start.tcl
+@@ -93,7 +93,7 @@
+
+ # scidShareDir, scidImgDir, scidTclDir, 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
+ }
+--- scid-4.6.1.orig/tcl/utils/sound.tcl
++++ scid-4.6.1/tcl/utils/sound.tcl
+@@ -43,7 +43,7 @@
+ variable soundFolder
+
+ set hasSound 1
+- if {[catch {package require snack 2.0}]} {
++ if {[catch {package require snack}]} {
+ if {$::windowsOS} {
+ catch {
+ set ::utils::sound::pipe [open "| scidsnd.exe" "r+"]
diff --git a/games-board/scid/metadata.xml b/games-board/scid/metadata.xml
new file mode 100644
index 000000000000..2e8ed33ebd1b
--- /dev/null
+++ b/games-board/scid/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">scid</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-board/scid/scid-4.6.2-r1.ebuild b/games-board/scid/scid-4.6.2-r1.ebuild
new file mode 100644
index 000000000000..f31b6be08e89
--- /dev/null
+++ b/games-board/scid/scid-4.6.2-r1.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+inherit eutils toolchain-funcs gnome2-utils python-any-r1
+
+DESCRIPTION="a free chess database application"
+HOMEPAGE="http://scid.sourceforge.net/"
+SRC_URI="mirror://sourceforge/scid/${P}.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 ~x86"
+IUSE=""
+
+CDEPEND="dev-lang/tk:0
+ dev-tcltk/tkimg
+ >=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
+}
+
+src_unpack() {
+ default
+ mv scid-src ${P} || die
+}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-gentoo.patch
+)
+
+src_prepare() {
+ default
+ edos2unix engines/togaII1.2.1a/src/Makefile
+ sed -i \
+ -e "s:@GENTOO_DATADIR@:/usr/share/${PN}:" \
+ tcl/start.tcl || die
+ sed -i \
+ -e "/COMPILE.*testzlib/s:\$var(COMPILE):$(tc-getCXX):" \
+ configure || die
+ gzip ../ratings.ssp || die
+ 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="/usr/bin" \
+ SHAREDIR="/usr/share/${PN}" || die
+}
+
+src_compile() {
+ emake all_scid
+}
+
+src_install() {
+ emake DESTDIR="${D}" install_scid
+ insinto /usr/share/${PN}
+ doins -r sounds
+
+ dodoc ChangeLog TODO help/*.html
+
+ newicon -s scalable svg/scid_app.svg ${PN}.svg
+ make_desktop_entry scid Scid
+
+ doins ../spelling.ssp ../ratings.ssp.gz ../*.spf
+ newins ../scidlet40k.sbk scidlet.sbk
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+ elog "To enable speech, emerge dev-tcltk/snack"
+ elog "To enable Xfcc support, emerge dev-tcltk/tdom"
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-board/scid/scid-4.6.2.ebuild b/games-board/scid/scid-4.6.2.ebuild
new file mode 100644
index 000000000000..4b8cca9bacac
--- /dev/null
+++ b/games-board/scid/scid-4.6.2.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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/${P}.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 x86"
+IUSE=""
+
+CDEPEND="dev-lang/tk:0
+ dev-tcltk/tkimg
+ >=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-src ${P} || die
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gentoo.patch
+ edos2unix engines/togaII1.2.1a/src/Makefile
+ sed -i \
+ -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \
+ tcl/start.tcl || die
+ sed -i \
+ -e "/COMPILE.*testzlib/s:\$var(COMPILE):$(tc-getCXX):" \
+ configure || die
+ gzip ../ratings.ssp || die
+ 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
+}
+
+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
+
+ 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 Xfcc support, emerge dev-tcltk/tdom"
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}