logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

love-0.7.2-r1.ebuild (928B)


  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils games
  5. DESCRIPTION="A framework for 2D games in Lua"
  6. HOMEPAGE="https://love2d.org/"
  7. SRC_URI="https://www.bitbucket.org/rude/${PN}/downloads/${P}-linux-src.tar.gz"
  8. LICENSE="ZLIB"
  9. SLOT="0.7"
  10. KEYWORDS="~amd64 ~x86"
  11. IUSE=""
  12. RDEPEND="dev-games/physfs
  13. dev-lang/lua:*[deprecated]
  14. media-libs/devil[mng,png,tiff]
  15. media-libs/freetype
  16. media-libs/libmodplug
  17. media-libs/libsdl[joystick,opengl]
  18. media-libs/libvorbis
  19. media-libs/openal
  20. media-sound/mpg123
  21. virtual/opengl"
  22. DEPEND="${RDEPEND}
  23. media-libs/libmng
  24. media-libs/tiff"
  25. S=${WORKDIR}/${PN}-HEAD
  26. src_prepare() {
  27. epatch "${FILESDIR}"/${PN}-0.8.0-freetype2.patch
  28. }
  29. src_install() {
  30. DOCS="readme.txt changes.txt" \
  31. default
  32. if [[ "${SLOT}" != "0" ]]; then
  33. mv "${ED}${GAMES_BINDIR}"/${PN} \
  34. "${ED}${GAMES_BINDIR}"/${PN}-${SLOT} || die
  35. fi
  36. }