clanbomber-2.1.1-r1.ebuild 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit autotools eutils
  5. DESCRIPTION="Bomberman-like multiplayer game"
  6. HOMEPAGE="https://savannah.nongnu.org/projects/clanbomber/"
  7. SRC_URI="http://download.savannah.gnu.org/releases/${PN}/${P}.tar.lzma"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ~ppc ~x86"
  11. IUSE=""
  12. RDEPEND="
  13. dev-libs/boost
  14. media-fonts/dejavu
  15. media-libs/libsdl[sound,joystick,video]
  16. media-libs/sdl-gfx
  17. media-libs/sdl-image[png]
  18. media-libs/sdl-mixer
  19. media-libs/sdl-ttf"
  20. DEPEND="${RDEPEND}
  21. virtual/pkgconfig"
  22. DOCS=( AUTHORS ChangeLog ChangeLog.hg IDEAS NEWS QUOTES README TODO )
  23. PATCHES=(
  24. "${FILESDIR}"/${P}-automake112.patch
  25. "${FILESDIR}"/${P}-boost150.patch
  26. )
  27. src_prepare() {
  28. default
  29. sed -i -e 's/menuentry//' src/Makefile.am || die
  30. eautoreconf
  31. }
  32. src_install() {
  33. default
  34. newicon src/pics/cup2.png ${PN}.png
  35. make_desktop_entry ${PN}2 ClanBomber2
  36. rm -f "${D}/usr/share/${PN}/fonts/DejaVuSans-Bold.ttf" || die
  37. dosym /usr/share/fonts/dejavu/DejaVuSans-Bold.ttf \
  38. /usr/share/${PN}/fonts/DejaVuSans-Bold.ttf
  39. }