diff --git a/media-video/aegisub/aegisub-9999.ebuild b/media-video/aegisub/aegisub-9999.ebuild index afd9046da3ae7..3e2282e46fd4c 100644 --- a/media-video/aegisub/aegisub-9999.ebuild +++ b/media-video/aegisub/aegisub-9999.ebuild @@ -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."