xscavenger-1.4.4.ebuild 868 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils toolchain-funcs games
  5. DESCRIPTION="Lode-Runner-like arcade game"
  6. HOMEPAGE="http://www.xdr.com/dash/scavenger.html"
  7. SRC_URI="http://www.xdr.com/dash/${P}.tgz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="amd64 ~ppc x86"
  11. IUSE=""
  12. RDEPEND="x11-libs/libXext"
  13. DEPEND="${RDEPEND}
  14. x11-misc/imake"
  15. S=${WORKDIR}/${P}/src
  16. src_prepare() {
  17. epatch "${FILESDIR}/${PV}-gentoo.patch"
  18. sed -i \
  19. -e "s:GENTOO_DATADIR:${GAMES_DATADIR}:" \
  20. -e "s:GENTOO_BINDIR:${GAMES_BINDIR}:" \
  21. Imakefile \
  22. || die
  23. }
  24. src_configure() {
  25. xmkmf || die
  26. }
  27. src_compile() {
  28. emake \
  29. CC="$(tc-getCC)" \
  30. CDEBUGFLAGS="${CFLAGS}" \
  31. EXTRA_LDOPTIONS="${LDFLAGS}"
  32. }
  33. src_install() {
  34. emake DESTDIR="${D}" install
  35. dodoc ../{CREDITS,DOC,README,TODO,changelog}
  36. prepgamesdirs
  37. }