fceux-2.2.2-r1.ebuild 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils scons-utils games
  5. DESCRIPTION="A portable Famicom/NES emulator, an evolution of the original FCE Ultra"
  6. HOMEPAGE="http://fceux.com/"
  7. SRC_URI="mirror://sourceforge/fceultra/${P}.src.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="amd64 x86"
  11. IUSE="gtk logo +lua +opengl"
  12. DEPEND="lua? ( dev-lang/lua:0 )
  13. media-libs/libsdl[opengl?,video]
  14. logo? ( media-libs/gd[png] )
  15. opengl? ( virtual/opengl )
  16. gtk? ( x11-libs/gtk+:3 )
  17. sys-libs/zlib[minizip]"
  18. RDEPEND=${DEPEND}
  19. src_prepare() {
  20. epatch "${FILESDIR}"/${P}-warnings.patch
  21. }
  22. src_compile() {
  23. escons \
  24. GTK=0 \
  25. CREATE_AVI=1 \
  26. SYSTEM_LUA=1 \
  27. SYSTEM_MINIZIP=1 \
  28. $(use_scons gtk GTK3) \
  29. $(use_scons logo LOGO) \
  30. $(use_scons opengl OPENGL) \
  31. $(use_scons lua LUA)
  32. }
  33. src_install() {
  34. dogamesbin bin/fceux
  35. doman documentation/fceux.6
  36. docompress -x /usr/share/doc/${PF}/documentation /usr/share/doc/${PF}/fceux.chm
  37. dodoc -r Authors changelog.txt TODO-SDL bin/fceux.chm documentation
  38. rm -f "${D}/usr/share/doc/${PF}/documentation/fceux.6"
  39. make_desktop_entry fceux FCEUX
  40. doicon fceux.png
  41. prepgamesdirs
  42. }