epiar-0.5-r1.ebuild 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit flag-o-matic eutils games
  5. DESCRIPTION="A space adventure/combat game"
  6. HOMEPAGE="http://epiar.net/"
  7. SRC_URI="mirror://sourceforge/epiar/${P}.0-src.zip"
  8. LICENSE="GPL-2 LGPL-2.1"
  9. SLOT="0"
  10. KEYWORDS="ppc x86 ~x86-fbsd"
  11. IUSE=""
  12. RDEPEND="media-libs/libsdl[video]
  13. media-libs/sdl-image[png]"
  14. DEPEND="${RDEPEND}
  15. x11-libs/libX11
  16. virtual/opengl
  17. app-arch/unzip"
  18. S=${WORKDIR}
  19. src_prepare() {
  20. sed -i \
  21. -e "/^CFLAGS/s:-pg -g:${CFLAGS} ${LDFLAGS}:" \
  22. Makefile.linux || die
  23. epatch \
  24. "${FILESDIR}"/${P}-paths.patch \
  25. "${FILESDIR}"/${P}-gcc41.patch \
  26. "${FILESDIR}"/${P}-Makefile.linux.patch \
  27. "${FILESDIR}"/${P}-underlink.patch
  28. sed -i \
  29. -e "s:GENTOO_DATADIR:${GAMES_DATADIR}/${PN}/:" \
  30. src/main.c || die
  31. }
  32. src_compile() {
  33. emake -f Makefile.linux
  34. }
  35. src_install() {
  36. dogamesbin epiar
  37. insinto "${GAMES_DATADIR}"/${PN}
  38. doins -r missions *.eaf
  39. keepdir "${GAMES_DATADIR}"/${PN}/plugins
  40. dodoc AUTHORS ChangeLog README
  41. prepgamesdirs
  42. }