funnyboat-1.5-r1.ebuild 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 eutils gnome2-utils python-single-r1 games
  6. DESCRIPTION="A side scrolling shooter game starring a steamboat on the sea"
  7. HOMEPAGE="http://funnyboat.sourceforge.net/"
  8. SRC_URI="mirror://sourceforge/${PN}/${P}-src.zip"
  9. LICENSE="GPL-2 MIT"
  10. SLOT="0"
  11. KEYWORDS="amd64 ~ppc x86 ~x86-fbsd"
  12. IUSE=""
  13. REQUIRED_USE="${PYTHON_REQUIRED_USE}"
  14. DEPEND="${PYTHON_DEPS}"
  15. RDEPEND="${DEPEND}
  16. >=dev-python/pygame-1.6.2[${PYTHON_USEDEP}]"
  17. DEPEND="${DEPEND}
  18. app-arch/unzip"
  19. S=${WORKDIR}/${PN}
  20. pkg_setup() {
  21. python-single-r1_pkg_setup
  22. games_pkg_setup
  23. }
  24. src_install() {
  25. insinto "${GAMES_DATADIR}"/${PN}
  26. doins -r data *.py
  27. python_optimize "${ED%/}/${GAMES_DATADIR}"/${PN}
  28. dodoc *.txt
  29. games_make_wrapper ${PN} "${EPYTHON} main.py" "${GAMES_DATADIR}"/${PN}
  30. newicon -s 32 data/kuvake.png ${PN}.png
  31. make_desktop_entry ${PN} "Trip on the Funny Boat"
  32. prepgamesdirs
  33. }
  34. pkg_preinst() {
  35. games_pkg_preinst
  36. gnome2_icon_savelist
  37. }
  38. pkg_postinst() {
  39. games_pkg_postinst
  40. gnome2_icon_cache_update
  41. }
  42. pkg_postrm() {
  43. gnome2_icon_cache_update
  44. }