diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-09-02 14:09:07 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-09-02 14:09:07 +0100 |
commit | b17a3ef12038de50228bade1f05502c74e135321 (patch) | |
tree | 9026dffec53f92cba48ca9a500a4f778e6304380 /games-board/gambit/gambit-1.0.4-r1.ebuild | |
parent | 3cf7c3ef441822c889356fd1812ebf2944a59851 (diff) |
gentoo resync : 02.09.2020
Diffstat (limited to 'games-board/gambit/gambit-1.0.4-r1.ebuild')
-rw-r--r-- | games-board/gambit/gambit-1.0.4-r1.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/games-board/gambit/gambit-1.0.4-r1.ebuild b/games-board/gambit/gambit-1.0.4-r1.ebuild new file mode 100644 index 000000000000..fd20cc73c5d7 --- /dev/null +++ b/games-board/gambit/gambit-1.0.4-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2020 Gentoo Authors +# 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[X(+)] + x11-libs/libX11" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${MY_P}-src" + +PATCHES=( + "${FILESDIR}"/${P}-compile-flags.patch +) + +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 +} |