ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/ozone/mgar/pkg/gsettings-desktop-schemas/Makefile
Revision: 38
Committed: Tue Jun 23 09:44:50 2026 UTC (4 weeks ago) by operz
File size: 1911 byte(s)
Log Message:
Add OZSWgsettingsschemas 50.1; add as gtk3 dep

File Contents

# Content
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)