gemdropx-0.9-r1.ebuild 976 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit games
  5. DESCRIPTION="A puzzle game where it's your job to clear the screen of gems"
  6. HOMEPAGE="http://www.newbreedsoftware.com/gemdropx/"
  7. SRC_URI="ftp://ftp.sonic.net/pub/users/nbs/unix/x/gemdropx/${P}.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="amd64 ppc x86"
  11. IUSE=""
  12. DEPEND=">=media-libs/libsdl-1.2.3-r1[joystick,video]
  13. >=media-libs/sdl-mixer-1.2.1[mod]"
  14. RDEPEND="${DEPEND}"
  15. src_prepare() {
  16. sed -i \
  17. -e '/^CC/d' \
  18. -e '/^CXX/d' \
  19. -e 's/CXX/CC/' \
  20. -e 's/-o/$(LDFLAGS) -o/' \
  21. Makefile || die
  22. find data/ -type d -name .xvpics -exec rm -rf \{\} +
  23. }
  24. src_compile() {
  25. emake \
  26. DATA_PREFIX="${GAMES_DATADIR}/${PN}" \
  27. XTRA_FLAGS="${CFLAGS}"
  28. }
  29. src_install() {
  30. dogamesbin gemdropx
  31. dodir "${GAMES_DATADIR}/${PN}"
  32. cp -r data/* "${D}/${GAMES_DATADIR}/${PN}/" || die
  33. dodoc AUTHORS.txt CHANGES.txt ICON.txt README.txt TODO.txt
  34. prepgamesdirs
  35. }