diff --git a/srcpkgs/gtksourceview/template b/srcpkgs/gtksourceview/template index ef151cd0f54..41b7bcafcc6 100644 --- a/srcpkgs/gtksourceview/template +++ b/srcpkgs/gtksourceview/template @@ -1,10 +1,11 @@ # Template file for 'gtksourceview' pkgname=gtksourceview version=3.24.9 -revision=1 +revision=2 build_style=gnu-configure +build_helper="gir" configure_args="--disable-static $(vopt_enable gir introspection)" -hostmakedepends="pkg-config intltool gtk+3-devel glib-devel $(vopt_if gir "gobject-introspection")" +hostmakedepends="pkg-config intltool gtk+3-devel glib-devel $(vopt_if vala vala)" makedepends="gtk+3-devel libxml2-devel vala-devel" short_desc="Text widget that extends GTK+3 GtkTextView widget" maintainer="Juan RP " @@ -14,12 +15,13 @@ distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz" checksum=699d76a453e6a3d3331906346e3dbfa25f2cbc9ec090e46635e9c6bb595e07c2 # Package build options -build_options="gir" +build_options="gir vala" -# Disable gir for cross builds. -if [ -z "$CROSS_BUILD" ]; then - build_options_default="gir" -fi +case "$XBPS_TARGET_MACHINE" in + i686-musl|x86_64-musl) build_options_default+=" gir vala" ;; + *-musl) ;; + *) build_options_default+=" gir vala" ;; +esac do_check() { # Needs X @@ -36,6 +38,9 @@ gtksourceview-devel_package() { if [ "$build_option_gir" ]; then vmove usr/share/gir-1.0 fi + if [ "$build_option_vala" ]; then + vmove usr/share/vala + fi vmove usr/share/gtk-doc } }