mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
games-engines/love: sync live ebuild with 11.4
Signed-off-by: Marek Szuba <marecki@gentoo.org>
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user