Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 410303

Summary: games-board/scid-4.2.2 version upgrade from 4.2.2 to 4.3
Product: Gentoo Linux Reporter: nihil39 <nihil39>
Component: [OLD] GamesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: enhancement CC: godfath3rr, nihil39
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://scid.sourceforge.net/
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: games-board/scid-4.3.ebuild
scid-4.3.ebuild.patch
scid-4.3.ebuild.patch

Description nihil39 2012-03-31 09:00:35 UTC
The latest version of scid is 4.3 (since February 2011) while in the portage tree the only available version is 4.2.2. Is it possible to upgrade the ebuild?
Comment 1 Godfath3r 2012-04-02 00:44:36 UTC
I'm attaching a bump ebuild for ver 4.3. It compiles fine. 
Didn't have time to test it in depth though.
Comment 2 Godfath3r 2012-04-02 00:45:17 UTC
Created attachment 307425 [details]
games-board/scid-4.3.ebuild
Comment 3 Godfath3r 2012-04-02 00:45:51 UTC
Comment on attachment 307425 [details]
games-board/scid-4.3.ebuild

># Copyright 1999-2012 Gentoo Foundation
># Distributed under the terms of the GNU General Public License v2
># $Header: /var/cvsroot/gentoo-x86/games-board/scid/scid-4.2.2.ebuild,v 1.9 2012/02/22 13:54:59 tupone Exp $
>
>EAPI=2
>PYTHON_DEPEND="2"
>inherit eutils toolchain-funcs python games
>
>DESCRIPTION="a free chess database application"
>HOMEPAGE="http://scid.sourceforge.net/"
>SRC_URI="mirror://sourceforge/scid/${P}.tar.bz2
>	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=""
>
>DEPEND=">=dev-lang/tk-8.5.10-r1
>	>=sys-libs/zlib-1.2.5-r2
>	app-arch/unzip"
>RDEPEND="${DEPEND}
>	!games-board/chessdb
>	x11-libs/libX11"
>
>S=${WORKDIR}/${PN}
>
>pkg_setup() {
>	python_set_active_version 2
>	games_pkg_setup
>}
>
>src_prepare() {
>	sed -i \
>		-e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \
>		tcl/config.tcl \
>		tcl/start.tcl \
>		src/scidlet.cpp \
>		|| die "sed failed"
>	gzip ../ratings.ssp
>	python_convert_shebangs -r 2 .
>}
>
>src_configure() {
>	# configure is not an autotools script
>	./configure \
>		COMPILE=$(tc-getCXX) \
>		LINK="$(tc-getCXX) ${LDFLAGS}" \
>		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
>
>	newicon svg/scid_app.svg ${PN}.svg
>	make_desktop_entry scid Scid
>
>	cd ..
>	newins spelling.ssp spelling.ssp \
>		|| die "Failed installing spelling.ssp"
>	newins ratings.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"
>}
Comment 4 Godfath3r 2012-04-02 01:01:57 UTC
Sorry for the noise above... If someone could delete it from comments.
Comment 5 Godfath3r 2012-04-02 01:12:33 UTC
Created attachment 307429 [details]
scid-4.3.ebuild.patch
Comment 6 Godfath3r 2012-04-02 01:20:50 UTC
Created attachment 307431 [details, diff]
scid-4.3.ebuild.patch
Comment 7 Tim Harder gentoo-dev 2012-04-02 06:00:37 UTC
What should be looked at instead is replacing scid with scid-vs-pc [1], a fork of scid that is getting much more development action these days.

[1]: http://scidvspc.sourceforge.net/
Comment 8 Godfath3r 2012-04-02 10:15:09 UTC
(In reply to comment #7)
> What should be looked at instead is replacing scid with scid-vs-pc [1], a
> fork of scid that is getting much more development action these days.
> 
> [1]: http://scidvspc.sourceforge.net/

https://bugs.gentoo.org/show_bug.cgi?id=410527
Comment 9 Tupone Alfredo gentoo-dev 2012-05-07 19:29:39 UTC
Bumped. Thanks for report