gentoo-ebuilds/media-libs/libshumate/libshumate-1.5.1.ebuild
Lukas Schmelting 2c22499e5b
media-libs/libshumate: call vala_setup
When toggling the vala use flag, vapigen was not available because
vala_setup wasn't called

Signed-off-by: Lukas Schmelting <lschmelting@posteo.com>
Part-of: https://github.com/gentoo/gentoo/pull/44497
Closes: https://github.com/gentoo/gentoo/pull/44497
Signed-off-by: Pacho Ramos <pacho@gentoo.org>
2025-12-14 11:29:37 +01:00

63 lines
1.5 KiB
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
VALA_USE_DEPEND=vapigen
inherit gnome.org meson vala virtualx
DESCRIPTION="Shumate is a GTK toolkit providing widgets for embedded maps"
HOMEPAGE="https://gitlab.gnome.org/GNOME/libshumate"
LICENSE="LGPL-2.1+"
SLOT="1.0/1"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~sparc ~x86"
REQUIRED_USE="gtk-doc? ( introspection )"
IUSE="gtk-doc +introspection sysprof vala"
RDEPEND="
>=dev-libs/glib-2.74.0:2
>=x11-libs/cairo-1.4
>=dev-db/sqlite-1.12:3
>=gui-libs/gtk-4:4
>=net-libs/libsoup-3.0:3.0
introspection? ( >=dev-libs/gobject-introspection-1.82.0-r2:= )
>=dev-libs/json-glib-1.6.0[introspection?]
dev-libs/protobuf-c
"
DEPEND="${RDEPEND}
sysprof? ( dev-util/sysprof-capture:4 )
"
BDEPEND="
dev-util/glib-utils
dev-util/gperf
gtk-doc? ( >=dev-util/gi-docgen-2021.1 )
vala? ( $(vala_depend) )
"
src_configure() {
use vala && vala_setup
local emesonargs=(
$(meson_use introspection gir)
$(meson_use vala vapi)
$(meson_use gtk-doc gtk_doc)
-Ddemos=false # only built, not installed
-Dvector_renderer=true
$(meson_feature sysprof)
)
meson_src_configure
}
src_test() {
virtx dbus-run-session meson test -C "${BUILD_DIR}" || die 'tests failed'
}
src_install() {
meson_src_install
if use gtk-doc; then
mkdir -p "${ED}"/usr/share/gtk-doc/html || die
mv "${ED}"/usr/share/doc/libshumate-1.0 "${ED}"/usr/share/gtk-doc/html/libshumate-1.0 || die
fi
}