rafkill-1.2.3-r1.ebuild 849 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit eutils scons-utils toolchain-funcs
  5. DESCRIPTION="Space shoot-em-up game"
  6. HOMEPAGE="http://raptorv2.sourceforge.net/"
  7. SRC_URI="mirror://sourceforge/raptorv2/${P}.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ~ppc ~x86"
  11. IUSE=""
  12. DEPEND="<media-libs/allegro-5
  13. media-libs/aldumb"
  14. RDEPEND=${DEPEND}
  15. PATCHES=(
  16. "${FILESDIR}"/${P}-build.patch
  17. "${FILESDIR}"/${P}-gcc43.patch
  18. "${FILESDIR}"/${P}-gcc47.patch
  19. "${FILESDIR}"/${P}-ldflags.patch
  20. )
  21. src_prepare() {
  22. default
  23. rm -f {data,music}/.sconsign || die
  24. sed -i \
  25. -e "/^#define INSTALL_DIR/s:\.:/usr/share:" \
  26. src/defs.cpp || die
  27. }
  28. src_compile() {
  29. tc-export CXX
  30. escons
  31. }
  32. src_install() {
  33. dobin ${PN}
  34. insinto /usr/share/${PN}
  35. doins -r data music
  36. dodoc README
  37. }