libhandy: enable gir, vala and glade
This commit is contained in:
parent
729620aa9f
commit
20e11f9dfc
|
@ -0,0 +1,18 @@
|
|||
diff --git a/src/meson.build b/src/meson.build
|
||||
index 1f08326..54531af 100644
|
||||
--- src/meson.build
|
||||
+++ src/meson.build
|
||||
@@ -178,7 +178,11 @@ if introspection
|
||||
install: true,
|
||||
install_dir_gir: girdir,
|
||||
install_dir_typelib: typelibdir,
|
||||
- extra_args: [ '--c-include=handy.h', '--quiet' ],
|
||||
+ extra_args: [
|
||||
+ '--c-include=handy.h',
|
||||
+ '--quiet',
|
||||
+ '-DHANDY_COMPILATION',
|
||||
+ ],
|
||||
)
|
||||
|
||||
if get_option('vapi')
|
||||
|
|
@ -4,13 +4,13 @@ version=0.0.7
|
|||
revision=1
|
||||
wrksrc="libhandy-v${version}"
|
||||
build_style=meson
|
||||
build_helper="gir"
|
||||
# tests need X anyway, so no need to build them
|
||||
configure_args="-Dexamples=false -Dtests=false $(vopt_bool vala vapi)
|
||||
-Dglade_catalog=$(vopt_if glade enabled disabled)
|
||||
-Dintrospection=$(vopt_if gir enabled disabled)"
|
||||
hostmakedepends="glib-devel pkg-config $(vopt_if gir gobject-introspection)
|
||||
$(vopt_if vala vala-devel) $(vopt_if glade glade3-devel)"
|
||||
makedepends="gtk+3-devel libglib-devel"
|
||||
hostmakedepends="glib-devel pkg-config $(vopt_if vala vala-devel)"
|
||||
makedepends="gtk+3-devel libglib-devel $(vopt_if glade glade3-devel)"
|
||||
short_desc="Library full of GTK+ widgets for mobile phones"
|
||||
maintainer="Rasmus Thomsen <rasmus.thomsen@protonmail.com>"
|
||||
license="LGPL-2.0-or-later"
|
||||
|
@ -20,9 +20,12 @@ checksum=3464d4f508b4d2d9bdf351d6dccda1ef5bdeb62526ee8ce3a6377aaed2b4ca91
|
|||
|
||||
build_options="gir vala glade"
|
||||
desc_option_glade="Generate glade modules and catalog files"
|
||||
if [ -z "$CROSS_BUILD" ]; then
|
||||
build_options_default+=" gir vala glade"
|
||||
fi
|
||||
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
x86_64-musl) build_options_default+=" gir vala glade" ;;
|
||||
*-musl) ;;
|
||||
*) build_options_default+=" gir vala glade" ;;
|
||||
esac
|
||||
|
||||
libhandy-devel_package() {
|
||||
depends="${sourcepkg}>=${version}_${revision} gtk+3-devel"
|
||||
|
|
Loading…
Reference in New Issue