summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-board/gambit')
-rw-r--r--games-board/gambit/Manifest1
-rw-r--r--games-board/gambit/gambit-1.0.4.ebuild56
2 files changed, 57 insertions, 0 deletions
diff --git a/games-board/gambit/Manifest b/games-board/gambit/Manifest
index 23c6a71904ea..c351c6c27c02 100644
--- a/games-board/gambit/Manifest
+++ b/games-board/gambit/Manifest
@@ -1,2 +1,3 @@
DIST Gambit-1.0.1-src.tar.bz2 1909190 BLAKE2B c53cee8ef368bdd4cd191a766c1549a0328b638f7f9bb2147e7087ef86b48107a458b9935eee120cc4fbf7aca932e68b93136af23dc7ebfc1a2bfbab8228d664 SHA512 749af3305ddd83742bc9ae908f8a9ccd09cb49879abb632d46e828b8ba4b68b68533f63fcf7b14a7e16719343de824f2c9be6e35e2bccc88a11f600854d16bf7
DIST Gambit-1.0.3-src.tar.bz2 1902202 BLAKE2B 8b4d830466f5894819c82a3b4657d193a1caa82f5cd6902dff8047e4c6731d8e0996806c88ab5f2990303e372eddff60dd085f6f839f4ba2d09ceca9b4ce5603 SHA512 c4d26849d9318b5c404f26c8ac2c09e64417e44e8a8786b9640fe76dd16d70d1ebbba2866e1d9e79efecab948f39cda9664c8eecad0f024782a8345be3acd6c9
+DIST Gambit-1.0.4-src.tar.xz 1675576 BLAKE2B 4545bee38509d44f80af874473ff562b441e570be3681b166b064574e12bfad8b8a2fb5043b9d0b9089160de2d97407160336cb58864168232cf0921244cf92d SHA512 9ba12e0e9598e2b08228aa009690e6a05677916dcea1413a42be20d620accbe7cef4f4300e3ccc5d4d99e37c7fb85d923df8f5fa9146ee8049bbde2ce66ab7a9
diff --git a/games-board/gambit/gambit-1.0.4.ebuild b/games-board/gambit/gambit-1.0.4.ebuild
new file mode 100644
index 000000000000..28abd503a2c2
--- /dev/null
+++ b/games-board/gambit/gambit-1.0.4.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+CMAKE_IN_SOURCE_BUILD=true
+inherit cmake-utils
+
+MY_P="${P^}"
+
+DESCRIPTION="Qt-based chess application + engine \"gupta\""
+HOMEPAGE="https://sourceforge.net/projects/gambitchess/"
+SRC_URI="mirror://sourceforge/project/${PN}chess/${MY_P}/${MY_P}-src.tar.xz"
+
+LICENSE="CC0-1.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtopengl:5
+ dev-qt/qtwidgets:5
+ media-libs/mesa
+ x11-libs/libX11"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}-src"
+
+src_configure() {
+ local mycmakeargs=(
+ -DCONFIG_ENABLE_UPDATE_CHECKER=OFF
+ -DCONFIG_GUPTA_ENGINE_DIRECTORY=/usr/bin
+ -DCONFIG_RESOURCE_PATH_PREFIX=/usr/share/${PN}/
+ )
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+ emake -C engine/gupta VERBOSE=1 STRIP=/bin/true CFLAGS_RELEASE= release
+}
+
+src_install() {
+ insinto /usr/share/${PN}
+ doins -r data/*
+
+ doicon artwork/icons/${PN}/${PN}.svg
+ make_desktop_entry ${PN}chess ${PN^} ${PN} Game
+ dodoc doc/contributors.txt
+
+ dobin engine/gupta/gupta
+ dobin ${PN}chess
+}