bloboats-1.0.2.ebuild 1.1 KB

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 games
  5. DESCRIPTION="arcade-like boat racing game combining platform jumpers and elastomania / x-moto like games"
  6. HOMEPAGE="http://bloboats.dy.fi/"
  7. SRC_URI="http://mirror.kapsi.fi/bloboats.dy.fi/${P}.tar.gz"
  8. LICENSE="GPL-2 CC-Sampling-Plus-1.0"
  9. SLOT="0"
  10. KEYWORDS="amd64 x86"
  11. IUSE=""
  12. DEPEND="media-libs/libsdl[opengl,video]
  13. media-libs/sdl-mixer[vorbis]
  14. media-libs/sdl-image[png]
  15. media-libs/sdl-net
  16. virtual/opengl
  17. virtual/glu
  18. media-libs/libvorbis"
  19. RDEPEND="${DEPEND}"
  20. src_prepare() {
  21. epatch "${FILESDIR}"/${P}-warnings.patch
  22. sed -i \
  23. -e "/PREFIX/s://:${D}:" \
  24. -e "/DATADIR/s:/usr/games/bloboats/data:${GAMES_DATADIR}/${PN}:" \
  25. -e "/BINARYDIR/s:/usr/bin:${GAMES_BINDIR}:" \
  26. -e "/CONFIGDIR/s:/etc:${GAMES_SYSCONFDIR}:" \
  27. -e "/CXXFLAGS_DEFAULT/s:-O2:${CXXFLAGS} \$(LDFLAGS):" \
  28. -e "/^CXX[ _]/d" \
  29. -e '/STRIP/d' \
  30. Makefile || die
  31. }
  32. src_install() {
  33. dogamesbin bin/bloboats
  34. insinto "${GAMES_DATADIR}"/${PN}
  35. doins -r data/*
  36. insinto "$GAMES_SYSCONFDIR"
  37. doins bloboats.dirs
  38. dodoc readme.txt
  39. prepgamesdirs
  40. }