diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-01-07 22:48:01 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-01-07 22:48:01 +0000 |
commit | c3bc61051d7f12b4c682efa7a5460bbc8815649e (patch) | |
tree | b6d19e96ba3c397fb8278eeb9b68170db92630ba /games-engines/love/love-9999.ebuild | |
parent | 3517852e3b8a68d1e997770fc0650c5053bafc6c (diff) |
gentoo resync : 07.01.2022
Diffstat (limited to 'games-engines/love/love-9999.ebuild')
-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() { |