mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 08:52:56 +02:00
libvirt-glib: update to 4.0.0.
* make gtk doc a build_option to fix cross. Default is off.
This commit is contained in:
parent
5a3df56b02
commit
4b3d614f4f
2 changed files with 32 additions and 10 deletions
20
srcpkgs/libvirt-glib/patches/fix-cross.diff
Normal file
20
srcpkgs/libvirt-glib/patches/fix-cross.diff
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
--- meson.build.orig 2021-04-05 19:05:59.233949995 +0200
|
||||||
|
+++ meson.build 2021-04-05 19:06:10.010949599 +0200
|
||||||
|
@@ -61,7 +61,7 @@ includedir = join_paths(prefix, get_opti
|
||||||
|
|
||||||
|
# gobject introspection
|
||||||
|
gir = find_program('g-ir-scanner', required: get_option('introspection'))
|
||||||
|
-enable_introspection = gir.found() and not meson.is_cross_build()
|
||||||
|
+enable_introspection = gir.found()
|
||||||
|
|
||||||
|
# vala
|
||||||
|
vapi_opt = get_option('vapi')
|
||||||
|
@@ -76,7 +76,7 @@ endif
|
||||||
|
# gtk-doc
|
||||||
|
if not get_option('docs').disabled()
|
||||||
|
gtk_doc = find_program('gtkdoc-scan', required: get_option('docs'))
|
||||||
|
- enable_doc = gtk_doc.found() and not meson.is_cross_build()
|
||||||
|
+ enable_doc = gtk_doc.found()
|
||||||
|
else
|
||||||
|
enable_doc = false
|
||||||
|
endif
|
|
@ -1,23 +1,23 @@
|
||||||
# Template file for 'libvirt-glib'
|
# Template file for 'libvirt-glib'
|
||||||
pkgname=libvirt-glib
|
pkgname=libvirt-glib
|
||||||
version=3.0.0
|
version=4.0.0
|
||||||
revision=1
|
revision=1
|
||||||
build_helper="gir"
|
build_helper="gir"
|
||||||
build_style=gnu-configure
|
build_style=meson
|
||||||
configure_args="--disable-static $(vopt_enable gir introspection)
|
configure_args="-Dintrospection=$(vopt_if gir enabled disabled)
|
||||||
$(vopt_enable vala)"
|
-Dvapi=$(vopt_if vala enabled disabled) -Ddocs=$(vopt_if doc enabled disabled)"
|
||||||
hostmakedepends="automake pkg-config intltool glib-devel gettext-devel gtk-doc
|
hostmakedepends="automake pkg-config intltool glib-devel gettext-devel
|
||||||
python-devel $(vopt_if vala vala)"
|
python-devel $(vopt_if vala vala) $(vopt_if doc gtk-doc)"
|
||||||
makedepends="libglib-devel libvirt-devel libxml2-devel python-devel"
|
makedepends="libglib-devel libvirt-devel libxml2-devel python-devel"
|
||||||
short_desc="Glib integration with libvirt"
|
short_desc="Glib integration with libvirt"
|
||||||
maintainer="Enno Boland <gottox@voidlinux.org>"
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
||||||
license="LGPL-2.1-or-later"
|
license="LGPL-2.1-or-later"
|
||||||
homepage="https://libvirt.org"
|
homepage="https://libvirt.org"
|
||||||
distfiles="http://libvirt.org/sources/glib/${pkgname}-${version}.tar.gz"
|
distfiles="http://libvirt.org/sources/glib/${pkgname}-${version}.tar.xz"
|
||||||
checksum=7fff8ca9a2b723dbfd04223b1c7624251c8bf79eb57ec27362a7301b2dd9ebfe
|
checksum=8423f7069daa476307321d1c11e2ecc285340cd32ca9fc05207762843edeacbd
|
||||||
replaces="libvirt-glib-python>=0"
|
replaces="libvirt-glib-python>=0"
|
||||||
|
|
||||||
build_options="gir vala"
|
build_options="doc gir vala"
|
||||||
build_options_default="gir vala"
|
build_options_default="gir vala"
|
||||||
|
|
||||||
libvirt-glib-devel_package() {
|
libvirt-glib-devel_package() {
|
||||||
|
@ -27,7 +27,9 @@ libvirt-glib-devel_package() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
vmove usr/lib/pkgconfig
|
vmove usr/lib/pkgconfig
|
||||||
vmove "usr/lib/*.so"
|
vmove "usr/lib/*.so"
|
||||||
vmove usr/share/gtk-doc
|
if [ "$build_option_doc" ]; then
|
||||||
|
vmove usr/share/gtk-doc
|
||||||
|
fi
|
||||||
if [ "$build_option_gir" ]; then
|
if [ "$build_option_gir" ]; then
|
||||||
vmove usr/share/gir-1.0
|
vmove usr/share/gir-1.0
|
||||||
vmove usr/share/vala
|
vmove usr/share/vala
|
||||||
|
|
Loading…
Add table
Reference in a new issue