adonthell-0.3.5-r1.ebuild 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. PYTHON_COMPAT=( python2_7 )
  5. inherit autotools eutils python-single-r1 games
  6. DESCRIPTION="roleplaying game engine"
  7. HOMEPAGE="http://adonthell.linuxgames.com/"
  8. SRC_URI="https://savannah.nongnu.org/download/${PN}/${PN}-src-${PV}.tar.gz"
  9. LICENSE="GPL-2"
  10. SLOT="0"
  11. KEYWORDS="amd64 ppc x86"
  12. IUSE="doc nls"
  13. RDEPEND="${PYTHON_DEPS}
  14. media-libs/sdl-ttf
  15. media-libs/sdl-mixer[vorbis]
  16. media-libs/libsdl:0[X,video,sound]
  17. sys-libs/zlib
  18. media-libs/freetype
  19. media-libs/libogg
  20. media-libs/libvorbis
  21. nls? ( virtual/libintl )"
  22. DEPEND="${RDEPEND}
  23. dev-lang/swig
  24. doc? (
  25. media-gfx/graphviz
  26. app-doc/doxygen
  27. )
  28. nls? ( sys-devel/gettext )"
  29. S=${WORKDIR}/${PN}-${PV/a/}
  30. pkg_setup() {
  31. python-single-r1_pkg_setup
  32. games_pkg_setup
  33. }
  34. src_prepare() {
  35. epatch \
  36. "${FILESDIR}"/${P}-configure.in.patch \
  37. "${FILESDIR}"/${P}-glibc-2.10.patch \
  38. "${FILESDIR}"/${P}-format.patch \
  39. "${FILESDIR}"/${P}-gcc46.patch
  40. sed -i \
  41. -e "/AC_PATH_PROGS/s:python:${EPYTHON}:" \
  42. configure.in || die "sed failed"
  43. rm -f ac{local,include}.m4
  44. eautoreconf
  45. }
  46. src_configure() {
  47. egamesconf \
  48. --disable-dependency-tracking \
  49. --disable-py-debug \
  50. $(use_enable nls) \
  51. $(use_enable doc)
  52. }
  53. src_install() {
  54. emake DESTDIR="${D}" install
  55. keepdir "${GAMES_DATADIR}"/${PN}/games
  56. dodoc AUTHORS ChangeLog FULLSCREEN.howto NEWBIE NEWS README
  57. prepgamesdirs
  58. }