geocode-glib: enable gir
This commit is contained in:
parent
22b3c95ee1
commit
ddc4fcc572
17
srcpkgs/geocode-glib/patches/fix-gir-cross.patch
Normal file
17
srcpkgs/geocode-glib/patches/fix-gir-cross.patch
Normal file
@ -0,0 +1,17 @@
|
||||
diff --git a/geocode-glib/meson.build b/geocode-glib/meson.build
|
||||
index 8bc2bfc..0377535 100644
|
||||
--- geocode-glib/meson.build
|
||||
+++ geocode-glib/meson.build
|
||||
@@ -69,10 +69,9 @@ pkgconf.generate(libraries: libgcglib,
|
||||
])
|
||||
|
||||
gir = find_program('g-ir-scanner', required: false)
|
||||
-cross_build = meson.is_cross_build()
|
||||
enable_gir = get_option('enable-introspection')
|
||||
|
||||
-if gir.found() and not cross_build and enable_gir
|
||||
+if gir.found() and enable_gir
|
||||
gir_args = [
|
||||
'--quiet',
|
||||
'--c-include=geocode-glib/geocode-glib.h'
|
||||
|
@ -1,26 +1,28 @@
|
||||
# Template file for 'geocode-glib'
|
||||
pkgname=geocode-glib
|
||||
version=3.26.0
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=meson
|
||||
build_helper="gir"
|
||||
configure_args="-Denable-gtk-doc=false -Denable-introspection=$(vopt_if gir true false)
|
||||
-Denable-installed-tests=false"
|
||||
hostmakedepends="pkg-config intltool glib-devel $(vopt_if gir gobject-introspection)"
|
||||
hostmakedepends="pkg-config intltool glib-devel"
|
||||
makedepends="json-glib-devel libsoup-gnome-devel"
|
||||
short_desc="GLib library for geocoding and reverse geocoding"
|
||||
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
||||
license="LGPL-2.1"
|
||||
homepage="http://www.gnome.org"
|
||||
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
||||
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/${pkgname}-${version}.tar.xz"
|
||||
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
|
||||
checksum=ea4086b127050250c158beff28dbcdf81a797b3938bb79bbaaecc75e746fbeee
|
||||
|
||||
# Package build options
|
||||
build_options="gir"
|
||||
|
||||
# Disable gir for cross builds.
|
||||
if [ -z "$CROSS_BUILD" ]; then
|
||||
build_options_default="gir"
|
||||
fi
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
x86_64-musl) build_options_default+=" gir" ;;
|
||||
*-musl) ;;
|
||||
*) build_options_default+=" gir" ;;
|
||||
esac
|
||||
|
||||
geocode-glib-devel_package() {
|
||||
depends="libglib-devel ${sourcepkg}>=${version}_${revision}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user