t4k-common-0.1.1.ebuild 947 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Copyright 1999-2013 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils
  5. DESCRIPTION="A library of code shared between tuxmath and tuxtype"
  6. HOMEPAGE="http://tux4kids.alioth.debian.org/tuxmath/download.php"
  7. SRC_URI="http://alioth.debian.org/frs/download.php/3540/t4k_common-${PV}.tar.gz"
  8. LICENSE="GPL-3"
  9. SLOT="0"
  10. KEYWORDS="amd64 x86"
  11. IUSE="static-libs svg"
  12. RDEPEND="dev-libs/libxml2:2
  13. media-libs/libsdl
  14. media-libs/sdl-image
  15. media-libs/sdl-mixer
  16. media-libs/sdl-net
  17. media-libs/sdl-ttf
  18. media-libs/sdl-pango
  19. svg? (
  20. gnome-base/librsvg:2
  21. media-libs/libpng:0
  22. x11-libs/cairo
  23. )"
  24. DEPEND="${RDEPEND}
  25. virtual/pkgconfig"
  26. S=${WORKDIR}/t4k_common-${PV}
  27. src_prepare() {
  28. epatch "${FILESDIR}"/${P}-libpng.patch
  29. }
  30. src_configure() {
  31. econf \
  32. $(usex svg "" "--without-rsvg") \
  33. $(use_enable static-libs static)
  34. }
  35. src_install() {
  36. default
  37. use static-libs || prune_libtool_files --all
  38. }