luola-1.3.2-r1.ebuild 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit eutils autotools gnome2-utils
  5. DESCRIPTION="A 2D multiplayer arcade game resembling V-Wing"
  6. HOMEPAGE="https://freecode.com/projects/luola"
  7. SRC_URI="mirror://gentoo/${P}.tar.gz
  8. mirror://gentoo/stdlevels-6.0.tar.gz
  9. mirror://gentoo/nostalgia-1.2.tar.gz"
  10. LICENSE="GPL-2"
  11. SLOT="0"
  12. KEYWORDS="~amd64 ~ppc ~x86"
  13. IUSE=""
  14. RDEPEND="media-libs/libsdl[X,sound,joystick,video]
  15. media-libs/sdl-gfx
  16. media-libs/sdl-image[jpeg,png]
  17. media-libs/sdl-mixer
  18. media-libs/sdl-ttf"
  19. DEPEND="${RDEPEND}"
  20. PATCHES=(
  21. "${FILESDIR}"/${P}-underlink.patch
  22. )
  23. src_prepare() {
  24. default
  25. eautoreconf
  26. }
  27. src_configure() {
  28. econf --enable-sound
  29. }
  30. src_install() {
  31. emake DESTDIR="${D}" install
  32. insinto /usr/share/${PN}/levels
  33. doins "${WORKDIR}"/*.{lev,png}
  34. dodoc AUTHORS ChangeLog DATAFILE FAQ LEVELFILE README TODO \
  35. RELEASENOTES.txt ../README.Nostalgia
  36. newdoc ../README README.stdlevels
  37. doicon -s 64 luola.png
  38. make_desktop_entry luola Luola
  39. }
  40. pkg_preinst() {
  41. gnome2_icon_savelist
  42. }
  43. pkg_postinst() {
  44. gnome2_icon_cache_update
  45. }
  46. pkg_postrm() {
  47. gnome2_icon_cache_update
  48. }