1 make_gobject_introspection_find_gir_files
() {
2 # required for .typelib files, eg mypaint git version
3 if [ -d "$1/lib/girepository-1.0" ]; then
4 addToSearchPath GI_TYPELIB_PATH
$1/lib
/girepository-1.0
7 # XDG_DATA_DIRS: required for finding .gir files
8 if [ -d "$1/share/gir-1.0" ]; then
9 addToSearchPath XDG_DATA_DIRS
$1/share
13 addEnvHooks
"$targetOffset" make_gobject_introspection_find_gir_files
16 if [ -d "$prefix/lib/girepository-1.0" ]; then
17 addToSearchPath GI_TYPELIB_PATH
$prefix/lib
/girepository-1.0
21 # gappsWrapperArgsHook expects GI_TYPELIB_PATH variable to be set by this.
22 # Until we have dependency mechanism in generic builder, we need to use this ugly hack.
23 if [[ " ${preFixupPhases:-} " =~
" gappsWrapperArgsHook " ]]; then
25 preFixupPhases
="${preFixupPhases/ gappsWrapperArgsHook / giDiscoverSelf gappsWrapperArgsHook }"
27 preFixupPhases
+=" giDiscoverSelf"
30 _multioutMoveGlibGir
() {
31 moveToOutput
share
/gir-1.0
"${!outputDev}"
34 preFixupHooks
+=(_multioutMoveGlibGir
)