libhandy: enable gir, vala and glade
This commit is contained in:
parent
729620aa9f
commit
20e11f9dfc
2 changed files with 27 additions and 6 deletions
18
srcpkgs/libhandy/patches/fix-gir-cross.patch
Normal file
18
srcpkgs/libhandy/patches/fix-gir-cross.patch
Normal file
|
@ -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
|
revision=1
|
||||||
wrksrc="libhandy-v${version}"
|
wrksrc="libhandy-v${version}"
|
||||||
build_style=meson
|
build_style=meson
|
||||||
|
build_helper="gir"
|
||||||
# tests need X anyway, so no need to build them
|
# tests need X anyway, so no need to build them
|
||||||
configure_args="-Dexamples=false -Dtests=false $(vopt_bool vala vapi)
|
configure_args="-Dexamples=false -Dtests=false $(vopt_bool vala vapi)
|
||||||
-Dglade_catalog=$(vopt_if glade enabled disabled)
|
-Dglade_catalog=$(vopt_if glade enabled disabled)
|
||||||
-Dintrospection=$(vopt_if gir enabled disabled)"
|
-Dintrospection=$(vopt_if gir enabled disabled)"
|
||||||
hostmakedepends="glib-devel pkg-config $(vopt_if gir gobject-introspection)
|
hostmakedepends="glib-devel pkg-config $(vopt_if vala vala-devel)"
|
||||||
$(vopt_if vala vala-devel) $(vopt_if glade glade3-devel)"
|
makedepends="gtk+3-devel libglib-devel $(vopt_if glade glade3-devel)"
|
||||||
makedepends="gtk+3-devel libglib-devel"
|
|
||||||
short_desc="Library full of GTK+ widgets for mobile phones"
|
short_desc="Library full of GTK+ widgets for mobile phones"
|
||||||
maintainer="Rasmus Thomsen <rasmus.thomsen@protonmail.com>"
|
maintainer="Rasmus Thomsen <rasmus.thomsen@protonmail.com>"
|
||||||
license="LGPL-2.0-or-later"
|
license="LGPL-2.0-or-later"
|
||||||
|
@ -20,9 +20,12 @@ checksum=3464d4f508b4d2d9bdf351d6dccda1ef5bdeb62526ee8ce3a6377aaed2b4ca91
|
||||||
|
|
||||||
build_options="gir vala glade"
|
build_options="gir vala glade"
|
||||||
desc_option_glade="Generate glade modules and catalog files"
|
desc_option_glade="Generate glade modules and catalog files"
|
||||||
if [ -z "$CROSS_BUILD" ]; then
|
|
||||||
build_options_default+=" gir vala glade"
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
fi
|
x86_64-musl) build_options_default+=" gir vala glade" ;;
|
||||||
|
*-musl) ;;
|
||||||
|
*) build_options_default+=" gir vala glade" ;;
|
||||||
|
esac
|
||||||
|
|
||||||
libhandy-devel_package() {
|
libhandy-devel_package() {
|
||||||
depends="${sourcepkg}>=${version}_${revision} gtk+3-devel"
|
depends="${sourcepkg}>=${version}_${revision} gtk+3-devel"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue