Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-board/scid/
Date: Mon, 01 Aug 2016 21:10:10
Message-Id: 1470085793.4c5e86df37efa8c86ecb01bcb8ed60b6e8acb809.wizardedit@gentoo
1 commit: 4c5e86df37efa8c86ecb01bcb8ed60b6e8acb809
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 1 21:08:33 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 1 21:09:53 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c5e86df
7
8 games-board/scid: remove deprecated games eclass
9
10 Also update to EAPI 6
11
12 Gentoo-Bug: https://bugs.gentoo.org/574082
13
14 Package-Manager: portage-2.3.0
15
16 games-board/scid/scid-4.6.2-r1.ebuild | 99 +++++++++++++++++++++++++++++++++++
17 1 file changed, 99 insertions(+)
18
19 diff --git a/games-board/scid/scid-4.6.2-r1.ebuild b/games-board/scid/scid-4.6.2-r1.ebuild
20 new file mode 100644
21 index 0000000..4699cfc
22 --- /dev/null
23 +++ b/games-board/scid/scid-4.6.2-r1.ebuild
24 @@ -0,0 +1,99 @@
25 +# Copyright 1999-2016 Gentoo Foundation
26 +# Distributed under the terms of the GNU General Public License v2
27 +# $Id$
28 +
29 +EAPI=6
30 +PYTHON_COMPAT=( python2_7 )
31 +inherit eutils toolchain-funcs gnome2-utils python-any-r1
32 +
33 +DESCRIPTION="a free chess database application"
34 +HOMEPAGE="http://scid.sourceforge.net/"
35 +SRC_URI="mirror://sourceforge/scid/${P}.zip
36 + mirror://sourceforge/scid/spelling.zip
37 + mirror://sourceforge/scid/ratings.zip
38 + mirror://sourceforge/scid/photos.zip
39 + mirror://sourceforge/scid/scidlet40k.zip"
40 +
41 +LICENSE="GPL-2"
42 +SLOT="0"
43 +KEYWORDS="~amd64 ~ppc ~x86"
44 +IUSE=""
45 +
46 +CDEPEND="dev-lang/tk:0
47 + dev-tcltk/tkimg
48 + >=sys-libs/zlib-1.1.3"
49 +RDEPEND="${CDEPEND}
50 + !games-board/chessdb"
51 +DEPEND="${CDEPEND}
52 + ${PYTHON_DEPS}
53 + app-arch/unzip"
54 +
55 +pkg_setup() {
56 + python-any-r1_pkg_setup
57 +}
58 +
59 +src_unpack() {
60 + default
61 + mv scid-src ${P} || die
62 +}
63 +
64 +PATCHES=(
65 + "${FILESDIR}"/${P}-gentoo.patch
66 +)
67 +
68 +src_prepare() {
69 + default
70 + edos2unix engines/togaII1.2.1a/src/Makefile
71 + sed -i \
72 + -e "s:@GENTOO_DATADIR@:/usr/share/${PN}:" \
73 + tcl/start.tcl || die
74 + sed -i \
75 + -e "/COMPILE.*testzlib/s:\$var(COMPILE):$(tc-getCXX):" \
76 + configure || die
77 + gzip ../ratings.ssp || die
78 + python_fix_shebang .
79 +}
80 +
81 +src_configure() {
82 + # configure is not an autotools script
83 + ./configure \
84 + COMPILE="$(tc-getCXX)" \
85 + LINK="$(tc-getCXX) ${CXXFLAGS} ${LDFLAGS}" \
86 + CC="$(tc-getCC)" \
87 + OPTIMIZE="${CXXFLAGS}" \
88 + TCL_INCLUDE="" \
89 + BINDIR="/usr/bin" \
90 + SHAREDIR="/usr/share/${PN}" || die
91 +}
92 +
93 +src_compile() {
94 + emake all_scid
95 +}
96 +
97 +src_install() {
98 + emake DESTDIR="${D}" install_scid
99 + insinto /usr/share/${PN}
100 + doins -r sounds
101 +
102 + dodoc ChangeLog TODO help/*.html
103 +
104 + newicon -s scalable svg/scid_app.svg ${PN}.svg
105 + make_desktop_entry scid Scid
106 +
107 + doins ../spelling.ssp ../ratings.ssp.gz ../*.spf
108 + newins ../scidlet40k.sbk scidlet.sbk
109 +}
110 +
111 +pkg_preinst() {
112 + gnome2_icon_savelist
113 +}
114 +
115 +pkg_postinst() {
116 + gnome2_icon_cache_update
117 + elog "To enable speech, emerge dev-tcltk/snack"
118 + elog "To enable Xfcc support, emerge dev-tcltk/tdom"
119 +}
120 +
121 +pkg_postrm() {
122 + gnome2_icon_cache_update
123 +}