diff options
author | Marek Szuba <marecki@gentoo.org> | 2022-01-07 17:18:15 +0000 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2022-01-07 17:37:20 +0000 |
commit | ff36effdc45a1005db74eab42590d9ebef25680b (patch) | |
tree | b7a9cbd9c63ab9801f29e96790b14f92c024526d /games-engines | |
parent | app-backup/borgmatic: add 1.5.22 (diff) | |
download | gentoo-ff36effdc45a1005db74eab42590d9ebef25680b.tar.gz gentoo-ff36effdc45a1005db74eab42590d9ebef25680b.tar.bz2 gentoo-ff36effdc45a1005db74eab42590d9ebef25680b.zip |
games-engines/love: sync live ebuild with 11.4
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'games-engines')
-rw-r--r-- | games-engines/love/love-9999.ebuild | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/games-engines/love/love-9999.ebuild b/games-engines/love/love-9999.ebuild index 4de07ea8e793..fcc2e07df8e9 100644 --- a/games-engines/love/love-9999.ebuild +++ b/games-engines/love/love-9999.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -LUA_COMPAT=( lua5-{1..3} luajit ) +LUA_COMPAT=( lua5-{1..4} luajit ) inherit lua-single xdg-utils @@ -20,6 +20,7 @@ HOMEPAGE="https://love2d.org/" LICENSE="ZLIB" SLOT="0" +IUSE="gme" REQUIRED_USE="${LUA_REQUIRED_USE}" @@ -28,12 +29,12 @@ RDEPEND="sys-libs/zlib media-libs/freetype media-libs/libmodplug media-libs/libsdl2[joystick,opengl] - media-libs/libogg media-libs/libtheora media-libs/libvorbis media-libs/openal media-sound/mpg123 - virtual/opengl" + virtual/opengl + gme? ( media-libs/game-music-emu )" DEPEND="${RDEPEND}" DOCS=( "readme.md" "changes.txt" ) @@ -46,21 +47,18 @@ src_prepare() { } src_configure() { - econf --with-lua=$(usex lua_single_target_luajit luajit lua) \ + local myeconfargs=( + $(use_enable gme) + --with-lua=$(usex lua_single_target_luajit luajit lua) --with-luaversion=$(ver_cut 1-2 $(lua_get_version)) + ) + econf "${myeconfargs[@]}" } src_install() { default find "${D}" -name '*.la' -delete || die - - if [[ ${SLOT} != 0 ]]; then - mv "${ED}/usr/bin/${PN}" "${ED}/usr/bin/${PN}-${SLOT}" || die - mv "${ED}"/usr/share/applications/love{,"-$SLOT"}.desktop || die - sed -i -e "/^Name=/s/$/ ($SLOT)/" -e "s|/usr/bin/love|/usr/bin/love-$SLOT|" "${ED}/usr/share/applications/love-$SLOT.desktop" || die - rm -r "${ED}"/usr/{lib64/liblove.so,share/{mime/,pixmaps/,icons/,man/}} || die - fi } pkg_postinst() { |