summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2021-01-25 14:24:27 +0000
committerMarek Szuba <marecki@gentoo.org>2021-01-25 17:37:36 +0000
commit97039cf3e175068534a5ee2baab6c133865fdaea (patch)
tree469e8d4541d4b3776ffb582e508a9439127d5365 /games-engines/love
parentgames-engines/love: remove old (diff)
downloadgentoo-97039cf3e175068534a5ee2baab6c133865fdaea.tar.gz
gentoo-97039cf3e175068534a5ee2baab6c133865fdaea.tar.bz2
gentoo-97039cf3e175068534a5ee2baab6c133865fdaea.zip
games-engines/love-9999: sync with latest release ebuild
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'games-engines/love')
-rw-r--r--games-engines/love/love-9999.ebuild15
1 files changed, 9 insertions, 6 deletions
diff --git a/games-engines/love/love-9999.ebuild b/games-engines/love/love-9999.ebuild
index 6265299294f3..4de07ea8e793 100644
--- a/games-engines/love/love-9999.ebuild
+++ b/games-engines/love/love-9999.ebuild
@@ -3,7 +3,9 @@
EAPI=7
-inherit xdg-utils
+LUA_COMPAT=( lua5-{1..3} luajit )
+
+inherit lua-single xdg-utils
if [[ ${PV} == 9999* ]]; then
inherit git-r3
@@ -14,15 +16,15 @@ else
fi
DESCRIPTION="A framework for 2D games in Lua"
-HOMEPAGE="http://love2d.org/"
+HOMEPAGE="https://love2d.org/"
LICENSE="ZLIB"
SLOT="0"
-IUSE="+luajit"
+
+REQUIRED_USE="${LUA_REQUIRED_USE}"
RDEPEND="sys-libs/zlib
- !luajit? ( dev-lang/lua:0 )
- luajit? ( dev-lang/luajit:2 )
+ ${LUA_DEPS}
media-libs/freetype
media-libs/libmodplug
media-libs/libsdl2[joystick,opengl]
@@ -44,7 +46,8 @@ src_prepare() {
}
src_configure() {
- econf --with-lua=$(usex luajit luajit lua)
+ econf --with-lua=$(usex lua_single_target_luajit luajit lua) \
+ --with-luaversion=$(ver_cut 1-2 $(lua_get_version))
}
src_install() {