summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2014-09-19 02:00:11 +0200
committerSebastian Pipping <sebastian@pipping.org>2014-09-19 02:00:11 +0200
commit0d7eb1c40224adf7b1193e6a69c698656f25a96b (patch)
tree9579bc398683a14b6d25c51424722439535974e6 /games-board
parentnet-dns/inadyn-mt: 02.24.43 (diff)
downloadbetagarden-0d7eb1c40224adf7b1193e6a69c698656f25a96b.tar.gz
betagarden-0d7eb1c40224adf7b1193e6a69c698656f25a96b.tar.bz2
betagarden-0d7eb1c40224adf7b1193e6a69c698656f25a96b.zip
games-board/gambit: 0_p27
Diffstat (limited to 'games-board')
-rw-r--r--games-board/gambit/gambit-0_p27.ebuild60
1 files changed, 60 insertions, 0 deletions
diff --git a/games-board/gambit/gambit-0_p27.ebuild b/games-board/gambit/gambit-0_p27.ebuild
new file mode 100644
index 0000000..04ba901
--- /dev/null
+++ b/games-board/gambit/gambit-0_p27.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="5"
+
+CMAKE_IN_SOURCE_BUILD=true
+inherit cmake-utils subversion
+
+DESCRIPTION="Qt-based chess application + engine \"gupta\""
+HOMEPAGE="http://sourceforge.net/projects/gambitchess/"
+ESVN_REPO_URI="svn://svn.code.sf.net/p/gambitchess/code/"
+ESVN_REVISION=${PV/*_p/}
+
+LICENSE="fair"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-qt/qtgui
+ x11-libs/libX11
+ x11-libs/libICE"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"/${PN^}-${PV}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0_p22-path.patch
+ cp "${FILESDIR}"/${PN}-0_p22-engine-makefile engine/gupta/Makefile || die
+
+ rm svn_update_revision_number_header.sh || die
+ sed 's|svn_update_revision_number_header\.sh|/dev/null|' -i CMakeLists.txt || die
+
+ subversion_wc_info # to fill ESVN_WC_REVISION
+ cat <<-HEADER_H > src/svn_revision_number.h
+ #ifndef SVN_REVISION_NUMBER_H
+ #define SVN_REVISION_NUMBER_H
+
+ #define SVN_REVISION_NUMBER ${ESVN_WC_REVISION}
+ #define SVN_REVISION_NUMBER_STRING "${ESVN_WC_REVISION}"
+
+ #endif
+ HEADER_H
+}
+
+src_compile() {
+ cmake-utils_src_compile
+ emake -C engine/gupta || die
+}
+
+src_install() {
+ insinto /usr/share/games/${PN}
+ doins -r data/* || die
+
+ make_desktop_entry ${PN^} ${PN^} /usr/share/games/${PN}/icons/${PN}/gambit-256.png Game || die
+ dodoc doc/contributors.txt || die
+
+ dobin engine/gupta/gupta || die
+ dobin ${PN^} || die
+}