build-helper/gir: provide host gtk+3-devel if required
When cross building a package using build_helper="gir" add the gtk+3-devel package to the hostmakedepends in case it is contained in the makedepends. Remove the specific case in gcr now that this is automatic.
This commit is contained in:
parent
a7e310ac74
commit
b6501476ae
2 changed files with 5 additions and 4 deletions
|
@ -23,5 +23,10 @@ if [ "$build_option_gir" ] || [[ $build_options != *"gir"* ]]; then
|
||||||
# Provide basic .gir types like GLib, GObject, DBus, Gio, cairo
|
# Provide basic .gir types like GLib, GObject, DBus, Gio, cairo
|
||||||
# and tooling like g-ir-compiler
|
# and tooling like g-ir-compiler
|
||||||
makedepends+=" gobject-introspection"
|
makedepends+=" gobject-introspection"
|
||||||
|
|
||||||
|
# Provide gtk+3-devel in the host if it is in the makedepends
|
||||||
|
if [[ $makedepends == *"gtk+3-devel"* ]]; then
|
||||||
|
hostmakedepends+=" gtk+3-devel"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -22,10 +22,6 @@ checksum=95204aa2111c301778ebfbe60975ce3ed698c958430ffcc2a785ac5e593d168b
|
||||||
build_options="gir vala"
|
build_options="gir vala"
|
||||||
build_options_default="gir vala"
|
build_options_default="gir vala"
|
||||||
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
|
||||||
hostmakedepends+=" gtk+3-devel"
|
|
||||||
fi
|
|
||||||
|
|
||||||
do_check() {
|
do_check() {
|
||||||
# requires X11 server
|
# requires X11 server
|
||||||
:
|
:
|
||||||
|
|
Loading…
Reference in a new issue