build helper gir: check for gobject-introspection

Do not add gobject-introspection a second time if it is already
contained in the makedepends.
This commit is contained in:
Jürgen Buchmüller 2019-04-29 15:36:28 +02:00
parent 5319f3f0a0
commit d121842302
1 changed files with 5 additions and 3 deletions

View File

@ -22,9 +22,11 @@ if [ "$build_option_gir" ] || [[ $build_options != *"gir"* ]]; then
# Required for running the g-ir-scanner-lddwrapper
hostmakedepends+=" prelink-cross"
# Provide basic .gir types like GLib, GObject, DBus, Gio, cairo
# and tooling like g-ir-compiler
makedepends+=" gobject-introspection"
if [[ $makedepends != *"gobject-introspection"* ]]; then
# Provide basic .gir types like GLib, GObject, DBus, Gio, cairo
# and tooling like g-ir-compiler
makedepends+=" gobject-introspection"
fi
export VAPIGEN_VAPIDIRS=${XBPS_CROSS_BASE}/usr/share/vala/vapi
export VAPIGEN_GIRDIRS=${XBPS_CROSS_BASE}/usr/share/gir-1.0