wargus-2.3.0.ebuild 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils cmake-utils gnome2-utils games
  5. DESCRIPTION="Warcraft II for the Stratagus game engine"
  6. HOMEPAGE="http://wargus.sourceforge.net/"
  7. SRC_URI="https://launchpad.net/${PN}/trunk/2.3/+download/${PN}_${PV}.orig.tar.gz"
  8. LICENSE="GPL-2+"
  9. SLOT="0"
  10. KEYWORDS="amd64 x86"
  11. IUSE=""
  12. RDEPEND="=games-engines/stratagus-${PV}*[theora]
  13. media-libs/libpng:0
  14. sys-libs/zlib
  15. x11-libs/gtk+:2
  16. x11-libs/libX11"
  17. DEPEND="${RDEPEND}
  18. virtual/pkgconfig"
  19. PDEPEND="games-strategy/wargus-data"
  20. S=${WORKDIR}/${PN}_${PV}.orig
  21. src_configure() {
  22. local mycmakeargs=(
  23. -DGAMEDIR="${GAMES_BINDIR}"
  24. -DBINDIR="${GAMES_BINDIR}"
  25. -DSTRATAGUS="${GAMES_BINDIR}"/stratagus
  26. -DICONDIR=/usr/share/icons/hicolor/64x64/apps
  27. )
  28. cmake-utils_src_configure
  29. }
  30. src_compile() {
  31. cmake-utils_src_compile
  32. }
  33. src_install() {
  34. cmake-utils_src_install
  35. prepgamesdirs
  36. }
  37. pkg_preinst() {
  38. games_pkg_preinst
  39. gnome2_icon_savelist
  40. }
  41. pkg_postinst() {
  42. elog "Enabling OpenGL in-game seems to cause segfaults/crashes."
  43. games_pkg_postinst
  44. gnome2_icon_cache_update
  45. }
  46. pkg_postrm() {
  47. gnome2_icon_cache_update
  48. }