Gentoo Archives: gentoo-commits

From: Sebastian Pipping <sping@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/betagarden:master commit in: games-board/gambit/
Date: Thu, 25 Sep 2014 17:30:58
Message-Id: 1411666232.d8af79afff73db1772357b5a8b6b5f5da80fdaf4.sping@gentoo
1 commit: d8af79afff73db1772357b5a8b6b5f5da80fdaf4
2 Author: Sebastian Pipping <sebastian <AT> pipping <DOT> org>
3 AuthorDate: Thu Sep 25 17:26:11 2014 +0000
4 Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 25 17:30:32 2014 +0000
6 URL: http://sources.gentoo.org/gitweb/?p=proj/betagarden.git;a=commit;h=d8af79af
7
8 games-board/gambit: 0_p47
9
10 ---
11 games-board/gambit/gambit-0_p47.ebuild | 68 ++++++++++++++++++++++++++++++++++
12 1 file changed, 68 insertions(+)
13
14 diff --git a/games-board/gambit/gambit-0_p47.ebuild b/games-board/gambit/gambit-0_p47.ebuild
15 new file mode 100644
16 index 0000000..922464c
17 --- /dev/null
18 +++ b/games-board/gambit/gambit-0_p47.ebuild
19 @@ -0,0 +1,68 @@
20 +# Copyright 1999-2014 Gentoo Foundation
21 +# Distributed under the terms of the GNU General Public License v2
22 +# $Header: $
23 +
24 +EAPI="5"
25 +
26 +CMAKE_IN_SOURCE_BUILD=true
27 +inherit cmake-utils subversion
28 +
29 +DESCRIPTION="Qt-based chess application + engine \"gupta\""
30 +HOMEPAGE="http://sourceforge.net/projects/gambitchess/"
31 +ESVN_REPO_URI="svn://svn.code.sf.net/p/gambitchess/code/"
32 +ESVN_REVISION=${PV/*_p/}
33 +
34 +LICENSE="CC0-1.0"
35 +SLOT="0"
36 +KEYWORDS="~amd64 ~x86"
37 +IUSE=""
38 +
39 +DEPEND="dev-qt/qtgui
40 + x11-libs/libX11
41 + x11-libs/libICE"
42 +RDEPEND="${DEPEND}"
43 +
44 +S="${WORKDIR}"/${PN^}-${PV}
45 +
46 +src_prepare() {
47 + rm svn_update_revision_number_header.sh || die
48 + sed 's|svn_update_revision_number_header\.sh|/dev/null|' -i CMakeLists.txt || die
49 +
50 + subversion_wc_info # to fill ESVN_WC_REVISION
51 + cat <<-HEADER_H > src/svn_revision_number.h
52 + #ifndef SVN_REVISION_NUMBER_H
53 + #define SVN_REVISION_NUMBER_H
54 +
55 + #define SVN_REVISION_NUMBER ${ESVN_WC_REVISION}
56 + #define SVN_REVISION_NUMBER_STRING "${ESVN_WC_REVISION}"
57 +
58 + #endif
59 + HEADER_H
60 +}
61 +
62 +src_configure() {
63 + local mycmakeargs=(
64 + -DCONFIG_ENABLE_UPDATE_CHECKER=OFF
65 + -DCONFIG_GUPTA_ENGINE_DIRECTORY=/usr/bin/
66 + -DCONFIG_RESOURCE_PATH_PREFIX=/usr/share/games/${PN}/
67 + )
68 +
69 + cmake-utils_src_configure
70 +}
71 +
72 +src_compile() {
73 + cmake-utils_src_compile
74 + emake -C engine/gupta STRIP=/bin/true CFLAGS_RELEASE= release || die
75 +}
76 +
77 +src_install() {
78 + insinto /usr/share/games/${PN}
79 + doins -r data/* || die
80 +
81 + doicon artwork/icons/${PN}/${PN}.svg
82 + make_desktop_entry ${PN}chess ${PN^} ${PN} Game || die
83 + dodoc doc/contributors.txt || die
84 +
85 + dobin engine/gupta/gupta || die
86 + dobin ${PN}chess || die
87 +}