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)
|
|
|
|
|
2015-06-08 12:12:18 +01:00
|
|
|
glibPreFixupPhase() {
|
2015-04-14 20:20:54 +01:00
|
|
|
# Move gschemas in case the install flag didn't help
|
|
|
|
if [ -d "$out/share/glib-2.0/schemas" ]; then
|
|
|
|
mkdir -p "$out/share/gsettings-schemas/$name/glib-2.0"
|
|
|
|
mv "$out/share/glib-2.0/schemas" "$out/share/gsettings-schemas/$name/glib-2.0/"
|
|
|
|
fi
|
|
|
|
|
2015-06-08 12:12:18 +01:00
|
|
|
addToSearchPath GSETTINGS_SCHEMAS_PATH "$out/share/gsettings-schemas/$name"
|
2014-03-10 19:30:27 +00:00
|
|
|
}
|
|
|
|
|
2015-06-08 12:12:18 +01:00
|
|
|
preFixupPhases="$preFixupPhases glibPreFixupPhase"
|