gambit-1.0.1.ebuild 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="5"
  4. CMAKE_IN_SOURCE_BUILD=true
  5. inherit cmake-utils games
  6. # Switch to ^ when we switch to EAPI=6.
  7. MY_P="G${P:1}"
  8. DESCRIPTION="Qt-based chess application + engine \"gupta\""
  9. HOMEPAGE="https://sourceforge.net/projects/gambitchess/"
  10. SRC_URI="mirror://sourceforge/project/${PN}chess/${MY_P}/${MY_P}-src.tar.bz2"
  11. LICENSE="CC0-1.0"
  12. SLOT="0"
  13. KEYWORDS="~amd64 ~x86"
  14. IUSE=""
  15. DEPEND="dev-qt/qtcore:4
  16. dev-qt/qtgui:4
  17. dev-qt/qtopengl:4
  18. media-libs/mesa
  19. x11-libs/libX11"
  20. RDEPEND="${DEPEND}"
  21. S="${WORKDIR}/${MY_P}-src"
  22. src_configure() {
  23. local mycmakeargs=(
  24. -DCONFIG_ENABLE_UPDATE_CHECKER=OFF
  25. -DCONFIG_GUPTA_ENGINE_DIRECTORY="${GAMES_BINDIR}"/
  26. -DCONFIG_RESOURCE_PATH_PREFIX="${GAMES_DATADIR}"/${PN}/
  27. )
  28. cmake-utils_src_configure
  29. }
  30. src_compile() {
  31. cmake-utils_src_compile
  32. emake -C engine/gupta VERBOSE=1 STRIP=/bin/true CFLAGS_RELEASE= release || die
  33. }
  34. src_install() {
  35. insinto "${GAMES_DATADIR}"/${PN}
  36. doins -r data/* || die
  37. doicon artwork/icons/${PN}/${PN}.svg
  38. # Switch to ^ when we switch to EAPI=6.
  39. make_desktop_entry ${PN}chess G${PN:1} ${PN} Game || die
  40. dodoc doc/contributors.txt || die
  41. dogamesbin engine/gupta/gupta || die
  42. dogamesbin ${PN}chess || die
  43. }