2013-08-04 18:59:05 +00:00
|
|
|
make_gobject_introspection_find_gir_files() {
|
|
|
|
# required for .typelib files, eg mypaint git version
|
|
|
|
if [ -d "$1/lib/girepository-1.0" ]; then
|
|
|
|
addToSearchPath GI_TYPELIB_PATH $1/lib/girepository-1.0
|
|
|
|
fi
|
|
|
|
|
2019-01-19 13:17:16 +00:00
|
|
|
# XDG_DATA_DIRS: required for finding .gir files
|
|
|
|
if [ -d "$1/share/gir-1.0" ]; then
|
2013-08-04 18:59:05 +00:00
|
|
|
addToSearchPath XDG_DATA_DIRS $1/share
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2017-08-10 22:22:07 +00:00
|
|
|
addEnvHooks "$hostOffset" make_gobject_introspection_find_gir_files
|
2015-10-28 10:59:42 +00:00
|
|
|
|
2017-12-18 02:30:53 +00:00
|
|
|
giDiscoverSelf() {
|
|
|
|
if [ -d "$prefix/lib/girepository-1.0" ]; then
|
|
|
|
addToSearchPath GI_TYPELIB_PATH $prefix/lib/girepository-1.0
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
preFixupHooks+=(giDiscoverSelf)
|
|
|
|
|
2015-10-28 10:59:42 +00:00
|
|
|
_multioutMoveGlibGir() {
|
2015-12-02 09:03:23 +00:00
|
|
|
moveToOutput share/gir-1.0 "${!outputDev}"
|
2015-10-28 10:59:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
preFixupHooks+=(_multioutMoveGlibGir)
|