xblast-2.10.4.ebuild 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit autotools games
  5. # Change these as releases changes
  6. IMAGES="images-2005-01-06"
  7. LEVELS="levels-2005-01-06"
  8. MODELS="models-2005-01-06"
  9. MUSICS="musics-2005-01-06"
  10. SOUNDS="sounds"
  11. DESCRIPTION="Bomberman clone w/network support for up to 6 players"
  12. HOMEPAGE="http://xblast.sourceforge.net/"
  13. SRC_URI="mirror://sourceforge/xblast/${P}.tar.gz
  14. mirror://sourceforge/xblast/${IMAGES}.tar.gz
  15. mirror://sourceforge/xblast/${LEVELS}.tar.gz
  16. mirror://sourceforge/xblast/${MODELS}.tar.gz
  17. mirror://sourceforge/xblast/${MUSICS}.tar.gz
  18. mirror://sourceforge/xblast/${SOUNDS}.tar.gz"
  19. LICENSE="GPL-2"
  20. SLOT="0"
  21. KEYWORDS="amd64 ppc x86"
  22. IUSE=""
  23. RDEPEND="x11-libs/libICE
  24. x11-libs/libX11
  25. media-libs/libpng:0"
  26. DEPEND="${RDEPEND}
  27. x11-libs/libXt"
  28. src_prepare() {
  29. eautoreconf #255857
  30. }
  31. src_configure() {
  32. egamesconf \
  33. --with-otherdatadir="${GAMES_DATADIR}"/${PN} \
  34. --enable-sound
  35. }
  36. src_install() {
  37. local IMAGE_INSTALL_DIR="${GAMES_DATADIR}/${PN}/image"
  38. default
  39. # Images
  40. dodir "${IMAGE_INSTALL_DIR}"
  41. cp -pPR "${WORKDIR}/${IMAGES}"/* "${D}/${IMAGE_INSTALL_DIR}" || die
  42. # Levels
  43. insinto "${GAMES_DATADIR}/xblast/level"
  44. doins "${WORKDIR}/${LEVELS}"/*
  45. # Models
  46. insinto "${GAMES_DATADIR}/xblast/image/sprite"
  47. doins "${WORKDIR}/${MODELS}"/*
  48. # Music and sound
  49. insinto "${GAMES_DATADIR}/xblast/sounds"
  50. doins "${WORKDIR}/${MUSICS}"/* "${WORKDIR}/${SOUNDS}"/*
  51. # Cleanup
  52. find "${D}" -name Imakefile -exec rm \{\} \;
  53. prepgamesdirs
  54. }