gtklife-5.1.ebuild 831 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils games
  5. DESCRIPTION="A Conway's Life simulator for Unix"
  6. HOMEPAGE="http://ironphoenix.org/tril/gtklife/"
  7. SRC_URI="http://ironphoenix.org/tril/${PN}/${P}.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="amd64 hppa ~ppc x86"
  11. IUSE=""
  12. RDEPEND="x11-libs/gtk+:2
  13. dev-libs/glib:2
  14. x11-libs/libX11"
  15. DEPEND="${RDEPEND}
  16. virtual/pkgconfig"
  17. src_prepare() {
  18. epatch "${FILESDIR}"/${P}-link.patch
  19. }
  20. src_configure() {
  21. egamesconf \
  22. --with-gtk2 \
  23. --with-docdir=/usr/share/doc/${PF}/html
  24. }
  25. src_install() {
  26. dogamesbin ${PN}
  27. insinto "${GAMES_DATADIR}"/${PN}
  28. doins -r graphics patterns
  29. newicon icon_48x48.png ${PN}.png
  30. make_desktop_entry ${PN} GtkLife
  31. dohtml doc/*
  32. dodoc AUTHORS README NEWS
  33. prepgamesdirs
  34. }