mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-27 16:02:55 +02:00
template-glib: enable gir, remove gir and vala build_option
Gobject introspection is hard required, so there is no reason to avoid it with gir and vala
This commit is contained in:
parent
f759d0d0e2
commit
ee7237b57b
2 changed files with 27 additions and 12 deletions
17
srcpkgs/template-glib/patches/fix-gir-cross.patch
Normal file
17
srcpkgs/template-glib/patches/fix-gir-cross.patch
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
diff --git a/src/meson.build b/src/meson.build
|
||||||
|
index 08d325b..5adef72 100644
|
||||||
|
--- src/meson.build
|
||||||
|
+++ src/meson.build
|
||||||
|
@@ -174,7 +174,10 @@ if get_option('with_introspection')
|
||||||
|
install: true,
|
||||||
|
install_dir_gir: girdir,
|
||||||
|
install_dir_typelib: typelibdir,
|
||||||
|
- extra_args: [ '--c-include=tmpl-glib.h' ],
|
||||||
|
+ extra_args: [
|
||||||
|
+ '--c-include=tmpl-glib.h',
|
||||||
|
+ '-DTMPL_GLIB_COMPILATION',
|
||||||
|
+ ],
|
||||||
|
)
|
||||||
|
|
||||||
|
if get_option('with_vapi')
|
||||||
|
|
|
@ -2,10 +2,11 @@
|
||||||
pkgname=template-glib
|
pkgname=template-glib
|
||||||
version=3.30.0
|
version=3.30.0
|
||||||
revision=2
|
revision=2
|
||||||
configure_args="-Denable_gtk_doc=false -Dwith_vapi=$(vopt_if gir true false)
|
|
||||||
-Dwith_introspection=$(vopt_if gir true false)"
|
|
||||||
build_style=meson
|
build_style=meson
|
||||||
hostmakedepends="pkg-config $(vopt_if gir 'gobject-introspection vala') glib-devel flex"
|
build_helper="gir"
|
||||||
|
configure_args="-Denable_gtk_doc=false -Dwith_introspection=true
|
||||||
|
-Dwith_vapi=true"
|
||||||
|
hostmakedepends="pkg-config vala glib-devel flex"
|
||||||
makedepends="libglib-devel"
|
makedepends="libglib-devel"
|
||||||
short_desc="Supports calling into GObject Introspection from templates"
|
short_desc="Supports calling into GObject Introspection from templates"
|
||||||
maintainer="Rasmus Thomsen <rasmus.thomsen@protonmail.com>"
|
maintainer="Rasmus Thomsen <rasmus.thomsen@protonmail.com>"
|
||||||
|
@ -13,12 +14,11 @@ license="GPL-3.0-or-later"
|
||||||
homepage="https://gitlab.gnome.org/GNOME/template-glib"
|
homepage="https://gitlab.gnome.org/GNOME/template-glib"
|
||||||
distfiles="${GNOME_SITE}/template-glib/${version%.*}/template-glib-${version}.tar.xz"
|
distfiles="${GNOME_SITE}/template-glib/${version%.*}/template-glib-${version}.tar.xz"
|
||||||
checksum=cf690d391bfc71036e31867df6da90315a3db83f739a8657f580b941b96e3649
|
checksum=cf690d391bfc71036e31867df6da90315a3db83f739a8657f580b941b96e3649
|
||||||
nocross="hard-requires gobject-introspection"
|
|
||||||
|
|
||||||
build_options="gir"
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
if [ -z "$CROSS_BUILD" ]; then
|
x86_64-musl) ;;
|
||||||
build_options_default+=" gir"
|
*-musl) broken="hard-requires gobject-introspection" ;;
|
||||||
fi
|
esac
|
||||||
|
|
||||||
template-glib-devel_package() {
|
template-glib-devel_package() {
|
||||||
depends="${sourcepkg}-${version}_${revision} gtk+3-devel"
|
depends="${sourcepkg}-${version}_${revision} gtk+3-devel"
|
||||||
|
@ -27,10 +27,8 @@ template-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"
|
||||||
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
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue