2014-03-10 20:30:27 +01:00
|
|
|
# Install gschemas, if any, in a package-specific directory
|
2014-04-05 12:53:28 +02:00
|
|
|
installFlagsArray+=("gsettingsschemadir=$out/share/gsettings-schemas/$name/glib-2.0/schemas/")
|
2014-03-10 20:30:27 +01:00
|
|
|
|
|
|
|
make_glib_find_gsettings_schemas() {
|
2014-04-05 12:53:28 +02: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 20:30:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
envHooks+=(make_glib_find_gsettings_schemas)
|
|
|
|
|
2015-04-14 21:20:54 +02:00
|
|
|
glibFixupPhase() {
|
|
|
|
# Move gschemas in case the install flag didn't help
|
|
|
|
if [ -d "$prefix/share/glib-2.0/schemas" ]; then
|
|
|
|
mkdir -p "$prefix/share/gsettings-schemas/$name/glib-2.0"
|
|
|
|
mv "$prefix/share/glib-2.0/schemas" "$prefix/share/gsettings-schemas/$name/glib-2.0/"
|
|
|
|
fi
|
|
|
|
|
|
|
|
addToSearchPath GSETTINGS_SCHEMAS_PATH "$prefix/share/gsettings-schemas/$name"
|
2014-03-10 20:30:27 +01:00
|
|
|
}
|
|
|
|
|
2015-04-14 21:20:54 +02:00
|
|
|
fixupOutputHooks+=(glibFixupPhase)
|
|
|
|
|