games-util/itch-bin: update EAPI 7 -> 8, small fixes

Signed-off-by: Ronny (tastytea) Gutbrod <gentoo@tastytea.de>
This commit is contained in:
Ronny (tastytea) Gutbrod
2023-03-09 23:29:33 +01:00
parent 65df02e16e
commit 3602cf6f86

View File

@@ -1,7 +1,7 @@
# Copyright 2020-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
inherit desktop xdg
@@ -34,9 +34,9 @@ RDEPEND="
"
QA_PREBUILT="
/opt/itch-bin/itch
/opt/itch-bin/libvk_swiftshader.so
!system-ffmpeg? ( /opt/itch-bin/libffmpeg.so )
opt/itch-bin/itch
opt/itch-bin/libvk_swiftshader.so
!system-ffmpeg? ( opt/itch-bin/libffmpeg.so )
"
S="${WORKDIR}"
@@ -45,13 +45,15 @@ src_install() {
local destdir="${EPREFIX}/opt/${PN}"
insinto "${destdir}"
doins -r locales resources
doins *.pak *.dat *.bin *.json version libvk_swiftshader.so
doins ./*.pak ./*.dat ./*.bin ./*.json version libvk_swiftshader.so
if use system-ffmpeg; then # bug 710944
rm libffmpeg.so || die
ln -s "${EPREFIX}/usr/$(get_libdir)/chromium/libffmpeg.so" || die
dosym -r "${EPREFIX}/usr/$(get_libdir)/chromium/libffmpeg.so" \
${destdir}/libffmpeg.so
else
doins libffmpeg.so
fi
doins libffmpeg.so
exeinto "${destdir}"
doexe itch