2014-03-10 19:30:27 +00:00
|
|
|
# Install gschemas, if any, in a package-specific directory
|
2014-04-05 11:53:28 +01:00
|
|
|
installFlagsArray+=("gsettingsschemadir=$out/share/gsettings-schemas/$name/glib-2.0/schemas/")
|
2014-03-10 19:30:27 +00:00
|
|
|
|
|
|
|
make_glib_find_gsettings_schemas() {
|
2014-04-05 11:53:28 +01:00
|
|
|
# For packages that need gschemas of other packages (e.g. empathy)
|
|
|
|
if [ -d "$1"/share/gsettings-schemas/*/glib-2.0/schemas ]; then
|
|
|
|
addToSearchPath GSETTINGS_SCHEMAS_PATH "$1/share/gsettings-schemas/"*
|
|
|
|
fi
|
2014-03-10 19:30:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
envHooks+=(make_glib_find_gsettings_schemas)
|
|
|
|
|
|
|
|
glibPreFixupPhase() {
|
2014-04-05 11:53:28 +01:00
|
|
|
addToSearchPath GSETTINGS_SCHEMAS_PATH "$out/share/gsettings-schemas/$name"
|
2014-03-10 19:30:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
preFixupPhases="$preFixupPhases glibPreFixupPhase"
|