| 1 |
NAME = gsettings-desktop-schemas |
| 2 |
VERSION = 50.1 |
| 3 |
|
| 4 |
CATEGORIES = utils |
| 5 |
|
| 6 |
DESCRIPTION = GSettings desktop-wide schemas |
| 7 |
define BLURB |
| 8 |
Collection of GSettings schemas for desktop settings shared across |
| 9 |
GTK3/GNOME applications, including file chooser, proxy, datetime, |
| 10 |
network, and other desktop configuration schemas. |
| 11 |
endef |
| 12 |
|
| 13 |
DYNURLS = https://github.com/GNOME/gsettings-desktop-schemas/archive/refs/tags/50.1.tar.gz |
| 14 |
GITHUB_REFERENCE = 50.1.tar.gz |
| 15 |
DISTFILES = gsettings-desktop-schemas-50.1.tar.gz |
| 16 |
|
| 17 |
LICENSE = COPYING |
| 18 |
|
| 19 |
WORKSRC = $(WORKDIR)/gsettings-desktop-schemas-50.1 |
| 20 |
|
| 21 |
# Pure schema package -- no build system needed |
| 22 |
CONFIGURE_SCRIPTS = |
| 23 |
BUILD_SCRIPTS = |
| 24 |
INSTALL_SCRIPTS = |
| 25 |
TEST_SCRIPTS = |
| 26 |
|
| 27 |
PACKAGES = OZSWgsettingsschemas |
| 28 |
SPKG_DESC_OZSWgsettingsschemas = GSettings desktop-wide schemas |
| 29 |
SPKG_CLASSES = cswdictconf |
| 30 |
RUNTIME_DEP_PKGS_OZSWgsettingsschemas = OZSWglib OZSWgtk3 |
| 31 |
|
| 32 |
include gar/category.mk |
| 33 |
|
| 34 |
.DEFAULT_GOAL := all |
| 35 |
|
| 36 |
SCHEMADIR = $(datadir)/glib-2.0/schemas |
| 37 |
|
| 38 |
pre-install: |
| 39 |
mkdir -p $(DESTDIR)$(SCHEMADIR) |
| 40 |
# Install only the gnome schemas (gtk3 owns org.gtk.Settings.*.gschema.xml) |
| 41 |
for f in $(WORKSRC)/schemas/*.gschema.xml.in; do \ |
| 42 |
base=$$(basename $$f .in); \ |
| 43 |
/usr/bin/gsed 's|@datadir@|$(BUILD_PREFIX)/share|g' $$f \ |
| 44 |
> $(DESTDIR)$(SCHEMADIR)/$$base; \ |
| 45 |
done |
| 46 |
# Compile gschemas.compiled using a tmpdir with all schemas combined |
| 47 |
# (both our new ones and the already-installed gtk3 schemas) so the |
| 48 |
# compiled binary is complete on the target system. |
| 49 |
tmpdir=$$(mktemp -d /tmp/gschemas.XXXXXX); \ |
| 50 |
cp $(BUILD_PREFIX)/share/glib-2.0/schemas/*.gschema.xml $$tmpdir/ 2>/dev/null || true; \ |
| 51 |
cp $(DESTDIR)$(SCHEMADIR)/*.gschema.xml $$tmpdir/; \ |
| 52 |
$(BUILD_PREFIX)/bin/glib-compile-schemas $$tmpdir/ 2>/dev/null || true; \ |
| 53 |
cp $$tmpdir/gschemas.compiled $(DESTDIR)$(SCHEMADIR)/; \ |
| 54 |
rm -rf $$tmpdir |
| 55 |
@$(MAKECOOKIE) |