libvirt-glib: enable gir, add vala opt

This commit is contained in:
Rasmus Thomsen 2019-03-11 18:11:43 +01:00 committed by maxice8
parent c9a7d049ea
commit 602b3d016d

View file

@ -1,28 +1,28 @@
# Template file for 'libvirt-glib'
pkgname=libvirt-glib
version=2.0.0
revision=1
revision=2
build_helper="gir"
build_style=gnu-configure
configure_args="--disable-static $(vopt_enable gir introspection)"
hostmakedepends="automake libtool pkg-config intltool glib-devel
gettext-devel gtk-doc gobject-introspection vala-devel python-devel"
configure_args="--disable-static $(vopt_enable gir introspection)
$(vopt_enable vala)"
hostmakedepends="pkg-config intltool glib-devel gettext-devel gtk-doc
python-devel $(vopt_if vala vala)"
makedepends="libglib-devel libvirt-devel libxml2-devel python-devel"
short_desc="Glib integration with libvirt"
maintainer="Juan RP <xtraeme@voidlinux.org>"
homepage="http://libvirt.org"
maintainer="Rasmus Thomsen <oss@cogitri.dev>"
license="LGPL-2.1-or-later"
homepage="https://libvirt.org"
distfiles="http://libvirt.org/sources/glib/${pkgname}-${version}.tar.gz"
checksum=94e8c410c67501303d3b32ca8ce2c36edf898511ec4de9b7f29cd35d274b3d6a
replaces="libvirt-glib-python>=0"
build_options="gir"
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
pre_configure() {
autoreconf -fi
}
build_options="gir vala"
case "$XBPS_TARGET_MACHINE" in
i686-musl|x86_64-musl) build_options_default+=" gir vala" ;;
*-musl) ;;
*) build_options_default+=" gir vala" ;;
esac
libvirt-glib-devel_package() {
depends="libglib-devel libxml2-devel libvirt-devel ${sourcepkg}>=${version}_${revision}"