gnurobbo-0.66.ebuild 964 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils games
  5. DESCRIPTION="Robbo, a popular Atari XE/XL game ported to Linux"
  6. HOMEPAGE="http://gnurobbo.sourceforge.net/"
  7. SRC_URI="mirror://sourceforge/gnurobbo/${P}-source.tar.gz"
  8. LICENSE="GPL-2 BitstreamVera"
  9. SLOT="0"
  10. KEYWORDS="amd64 ppc x86"
  11. IUSE=""
  12. DEPEND="media-libs/libsdl[sound,video,joystick]
  13. media-libs/sdl-image[png]
  14. media-libs/sdl-mixer[vorbis]
  15. media-libs/sdl-ttf"
  16. RDEPEND=${DEPEND}
  17. src_prepare() {
  18. epatch "${FILESDIR}"/${P}-underlink.patch
  19. }
  20. src_compile() {
  21. emake \
  22. PACKAGE_DATA_DIR="${GAMES_DATADIR}/${PN}" \
  23. BINDIR="${GAMES_BINDIR}" \
  24. DOCDIR="/usr/share/doc/${PF}"
  25. }
  26. src_install() {
  27. dogamesbin gnurobbo
  28. insinto "${GAMES_DATADIR}/${PN}"
  29. doins -r data/{levels,skins,locales,rob,sounds}
  30. dodoc AUTHORS Bugs ChangeLog README TODO
  31. newicon icon32.png ${PN}.png
  32. make_desktop_entry ${PN} Gnurobbo
  33. prepgamesdirs
  34. }