commit:     ff36effdc45a1005db74eab42590d9ebef25680b
Author:     Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Fri Jan  7 17:18:15 2022 +0000
Commit:     Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Fri Jan  7 17:37:20 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff36effd

games-engines/love: sync live ebuild with 11.4

Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>

 games-engines/love/love-9999.ebuild | 24 +++++++++++-------------
 1 file 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() {

Reply via email to