media-video/aegisub: sync live ebuild

Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
David Seifert
2025-05-17 10:06:12 +02:00
parent c8ac2f4ac8
commit 59f82c4a7e

View File

@@ -1,7 +1,7 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
LUA_COMPAT=( luajit )
LUA_REQ_USE="lua52compat"
@@ -26,13 +26,16 @@ fi
LICENSE="BSD MIT"
SLOT="0"
IUSE="+alsa debug +fftw openal portaudio pulseaudio spell test +uchardet"
REQUIRED_USE="
${LUA_REQUIRED_USE}
|| ( alsa openal portaudio pulseaudio )"
RESTRICT="test"
# aegisub bundles luabins (https://github.com/agladysh/luabins).
# Unfortunately, luabins upstream is practically dead since 2010.
# Thus unbundling luabins isn't worth the effort.
RDEPEND="${LUA_DEPS}
x11-libs/wxGTK:${WX_GTK_VER}[X,opengl,debug?]
x11-libs/wxGTK:${WX_GTK_VER}=[X,opengl,debug?]
dev-libs/boost:=[icu,nls]
dev-libs/icu:=
media-libs/ffmpegsource:=
@@ -67,16 +70,13 @@ BDEPEND="dev-util/intltool
)
"
REQUIRED_USE="${LUA_REQUIRED_USE}
|| ( alsa openal portaudio pulseaudio )"
PATCHES=(
"${FILESDIR}"/3.4.0/Fix-build-without-pch.patch
"${FILESDIR}"/3.4.0/Use-generated-git-version.patch
)
BUILD_DIR="${WORKDIR}/${P}-build"
PATCHES=(
"${FILESDIR}/3.4.0/Fix-build-without-pch.patch"
"${FILESDIR}/3.4.0/Use-generated-git-version.patch"
)
aegisub_check_compiler() {
if [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++20; then
die "Your compiler lacks C++20 support."