warmux-11.04.1-r1.ebuild 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit autotools eutils
  5. DESCRIPTION="A free Worms clone"
  6. HOMEPAGE="http://gna.org/projects/warmux/"
  7. SRC_URI="http://download.gna.org/warmux/${P}.tar.bz2"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
  11. IUSE="debug nls unicode"
  12. RDEPEND="
  13. dev-libs/libxml2
  14. media-libs/libsdl[joystick,video,X]
  15. media-libs/sdl-image[jpeg,png]
  16. media-libs/sdl-mixer[vorbis]
  17. media-libs/sdl-ttf
  18. media-libs/sdl-net
  19. media-libs/sdl-gfx
  20. media-fonts/dejavu
  21. net-misc/curl
  22. x11-libs/libX11
  23. nls? ( virtual/libintl )
  24. unicode? ( dev-libs/fribidi )"
  25. DEPEND="${RDEPEND}
  26. virtual/pkgconfig
  27. nls? ( sys-devel/gettext )"
  28. S=${WORKDIR}/${PN}-11.04
  29. PATCHES=(
  30. "${FILESDIR}"/${P}-gentoo.patch
  31. "${FILESDIR}"/${P}-zlib.patch
  32. "${FILESDIR}"/${P}-action.patch
  33. "${FILESDIR}"/${P}-gcc47.patch
  34. "${FILESDIR}"/${P}-stat.patch
  35. "${FILESDIR}"/${P}-fix-c++14.patch
  36. )
  37. src_prepare() {
  38. default
  39. eautoreconf
  40. }
  41. src_configure() {
  42. econf \
  43. --with-localedir-name="${EPREFIX}"/usr/share/locale \
  44. --with-datadir-name="${EPREFIX}"/usr/share/${PN} \
  45. --with-font-path="${EPREFIX}"/usr/share/fonts/dejavu/DejaVuSans.ttf \
  46. $(use_enable debug) \
  47. $(use_enable nls) \
  48. $(use_enable unicode fribidi)
  49. }
  50. src_install() {
  51. default
  52. rm -f "${ED%/}"/usr/share/${PN}/font/DejaVuSans.ttf || die
  53. doicon data/icon/warmux.svg
  54. make_desktop_entry warmux Warmux
  55. }