[aegisub] use meson build system
This commit is contained in:
parent
a556cc26e7
commit
124169e648
|
@ -6,11 +6,12 @@ EAPI=6
|
|||
WX_GTK_VER=3.0
|
||||
PLOCALES="ar bg ca cs da de el es eu fa fi fr_FR gl hu id it ja ko nl pl pt_BR pt_PT ru sr_RS sr_RS@latin uk_UA vi zh_CN zh_TW"
|
||||
|
||||
inherit autotools gnome2-utils l10n wxwidgets xdg-utils git-r3
|
||||
inherit meson gnome2-utils l10n wxwidgets xdg-utils git-r3
|
||||
|
||||
DESCRIPTION="Advanced subtitle editor"
|
||||
HOMEPAGE="http://www.aegisub.org/ https://github.com/Aegisub/Aegisub"
|
||||
EGIT_REPO_URI="https://github.com/odrling/${PN^}.git"
|
||||
EGIT_BRANCH="meson"
|
||||
# Submodules are used to pull bundled libraries.
|
||||
EGIT_SUBMODULES=()
|
||||
|
||||
|
@ -79,34 +80,20 @@ src_prepare() {
|
|||
}
|
||||
|
||||
src_configure() {
|
||||
# Prevent access violations from OpenAL detection. See Gentoo bug 508184.
|
||||
use openal && export agi_cv_with_openal="yes"
|
||||
|
||||
setup-wxwidgets
|
||||
local myeconfargs=(
|
||||
--disable-update-checker
|
||||
--with-ffms2
|
||||
--with-system-luajit
|
||||
$(use_enable debug)
|
||||
$(use_with alsa)
|
||||
$(use_with fftw fftw3)
|
||||
$(use_with openal)
|
||||
$(use_with oss)
|
||||
$(use_with portaudio)
|
||||
$(use_with pulseaudio libpulse)
|
||||
$(use_with spell hunspell)
|
||||
$(use_with uchardet)
|
||||
local emesonargs=(
|
||||
-Dalsa=$(usex alsa true false)
|
||||
-Dopenal=$(usex openal true false)
|
||||
-Dlibpulse=$(usex pulseaudio true false)
|
||||
-Dportaudio=$(usex portaudio true false)
|
||||
#-Doss=$(usex oss true false)
|
||||
-Dfftw3=$(usex fftw true false)
|
||||
-Dffms2=true
|
||||
-Dhunspell=$(usex spell true false)
|
||||
-Duchardet=$(usex uchardet true false)
|
||||
-Dsystem_luajit=true
|
||||
)
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake test-automation
|
||||
emake test-libaegisub
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
|
|
Loading…
Reference in New Issue