summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2014-09-01 00:36:56 +0000
committerJulian Ospald <hasufell@gentoo.org>2014-09-01 00:36:56 +0000
commita42c239f6acbc75924b00144783460a500fdd5ee (patch)
tree279641562f44e4381c2a46864c6248ac3c2f89df /games-board
parentversion bump (bug #434148) (diff)
downloadgentoo-2-a42c239f6acbc75924b00144783460a500fdd5ee.tar.gz
gentoo-2-a42c239f6acbc75924b00144783460a500fdd5ee.tar.bz2
gentoo-2-a42c239f6acbc75924b00144783460a500fdd5ee.zip
version bump wrt #506534, convert to python-any-r1
(Portage version: 2.2.12-r1/cvs/Linux x86_64, signed Manifest commit with key BDEED020)
Diffstat (limited to 'games-board')
-rw-r--r--games-board/scid/ChangeLog8
-rw-r--r--games-board/scid/files/scid-4.5.2-gentoo.patch160
-rw-r--r--games-board/scid/scid-4.5.2.ebuild102
3 files changed, 269 insertions, 1 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/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
+}