totem-pl-parser: enable gir
This commit is contained in:
parent
137dbddb40
commit
1baa06c0c3
2 changed files with 35 additions and 8 deletions
24
srcpkgs/totem-pl-parser/patches/fix-gir-cross.patch
Normal file
24
srcpkgs/totem-pl-parser/patches/fix-gir-cross.patch
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
diff --git a/meson_options.txt b/meson_options.txt
|
||||||
|
index 9c32a5f..0fea01b 100644
|
||||||
|
--- meson_options.txt
|
||||||
|
+++ meson_options.txt
|
||||||
|
@@ -6,3 +6,5 @@ option('enable-libgcrypt', type: 'combo', choices : ['yes', 'no', 'auto'], value
|
||||||
|
description : 'Enable libgcrypt support.')
|
||||||
|
option('enable-gtk-doc', type: 'boolean', value: 'false',
|
||||||
|
description : 'Generate the API reference (depends on GTK-Doc)')
|
||||||
|
+option('introspection', type: 'boolean', value: 'true',
|
||||||
|
+ description : 'Generate GObject Introspection bindings')
|
||||||
|
diff --git a/plparse/meson.build b/plparse/meson.build
|
||||||
|
index bdfde9d..668a072 100644
|
||||||
|
--- plparse/meson.build
|
||||||
|
+++ plparse/meson.build
|
||||||
|
@@ -121,7 +121,7 @@ if have_quvi
|
||||||
|
endif
|
||||||
|
|
||||||
|
# Introspection
|
||||||
|
-if not meson.is_cross_build()
|
||||||
|
+if get_option('introspection')
|
||||||
|
gnome.generate_gir(plparser_lib,
|
||||||
|
sources: plparser_public_headers + plparser_sources + [
|
||||||
|
totem_pl_parser_marshalers[1],
|
||||||
|
|
|
@ -1,12 +1,13 @@
|
||||||
# Template file for 'totem-pl-parser'
|
# Template file for 'totem-pl-parser'
|
||||||
pkgname=totem-pl-parser
|
pkgname=totem-pl-parser
|
||||||
version=3.26.2
|
version=3.26.2
|
||||||
revision=1
|
revision=2
|
||||||
build_style=meson
|
build_style=meson
|
||||||
|
build_helper="gir"
|
||||||
# XXX needs libquvi>=0.9
|
# XXX needs libquvi>=0.9
|
||||||
configure_args="-Denable-libarchive=yes -Denable-libgcrypt=yes"
|
configure_args="-Denable-libarchive=yes -Denable-libgcrypt=yes
|
||||||
hostmakedepends="glib-devel intltool pkg-config
|
-Dintrospection=$(vopt_if gir true false)"
|
||||||
$(vopt_if gir 'gobject-introspection')"
|
hostmakedepends="glib-devel intltool pkg-config"
|
||||||
makedepends="libarchive-devel libgcrypt-devel libsoup-gnome-devel"
|
makedepends="libarchive-devel libgcrypt-devel libsoup-gnome-devel"
|
||||||
short_desc="Totem playlist parser library"
|
short_desc="Totem playlist parser library"
|
||||||
maintainer="Enno Boland <gottox@voidlinux.org>"
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
||||||
|
@ -17,10 +18,12 @@ checksum=d386acf965a44597e25ddee4a42ccde3c649a55b657e3a605648815b70861c3a
|
||||||
|
|
||||||
# Package build options
|
# Package build options
|
||||||
build_options="gir"
|
build_options="gir"
|
||||||
# Disable gir for cross builds.
|
|
||||||
if [ -z "$CROSS_BUILD" ]; then
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
build_options_default="gir"
|
x86_64-musl) build_options_default+=" gir" ;;
|
||||||
fi
|
*-musl) ;;
|
||||||
|
*) build_options_default+=" gir" ;;
|
||||||
|
esac
|
||||||
|
|
||||||
totem-pl-parser-devel_package() {
|
totem-pl-parser-devel_package() {
|
||||||
depends="${makedepends} totem-pl-parser-${version}_${revision}
|
depends="${makedepends} totem-pl-parser-${version}_${revision}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue