From 8976f8eb76d940dfed82537f6a4d44f3190895f7 Mon Sep 17 00:00:00 2001 From: Jeremy Messenger Date: Sat, 18 Sep 2004 04:25:52 +0000 Subject: [PATCH] Document the new GCONF_SCHEMAS. Reviewed by: marcus --- en/gnome/docs/porting.sgml | 42 +++++++++++++++----------------------- 1 file changed, 17 insertions(+), 25 deletions(-) diff --git a/en/gnome/docs/porting.sgml b/en/gnome/docs/porting.sgml index 1857226cb1..d06aaddc0c 100644 --- a/en/gnome/docs/porting.sgml +++ b/en/gnome/docs/porting.sgml @@ -1,6 +1,6 @@ - + %gnomeincludes; %includes; @@ -255,38 +255,30 @@ WANT_GNOME= yes applications use for storing their settings. This database is defined by installed schema files that are used to generate %gconf.xml key files. Previously, - these %gconf.xml key files were listed in plists. - However, this proved to be problematic. Therefore, a new - solution has been devised. GConf schema files are now - handled similarly to OMF files. That - is, for each schema file installed by your port, you must - have the following entries listed in the - pkg-plist:

+ these schema files and %gconf.xml key files were + listed in the port's pkg-plist. Since this proved + to be problematic, handling of GConf schemas was changed to + something similar to that of MANn + files. That is, for each schema file installed by your port, + you must have the following listed in the Makefile:

-@unexec env GCONF_CONFIG_SOURCE=xml::%D/etc/gconf/gconf.xml.defaults \
-gconftool-2 --makefile-uninstall-rule \
-%D/etc/gconf/schemas/my_app.schemas > /dev/null || /usr/bin/true
-
-@exec env GCONF_CONFIG_SOURCE=xml::%D/etc/gconf/gconf.xml.defaults \
-gconftool-2 --makefile-install-rule \
-%D/etc/gconf/schemas/my_app.schemas > /dev/null || /usr/bin/true
+GCONF_SCHEMAS=	my_app.schemas my_app2.schemas my_app3.schemas
 	  
-

For example:

+

For example in audio/gnomemedia2:

-@unexec env GCONF_CONFIG_SOURCE=xml::%D/etc/gconf/gconf.xml.defaults \
-gconftool-2 --makefile-uninstall-rule \
-%D/etc/gconf/schemas/file-roller.schemas > /dev/null || /usr/bin/true
-
-@exec env GCONF_CONFIG_SOURCE=xml::%D/etc/gconf/gconf.xml.defaults \
-gconftool-2 --makefile-install-rule \
-%D/etc/gconf/schemas/file-roller.schemas > /dev/null || /usr/bin/true
+GCONF_SCHEMAS=	CDDB-Slave2.schemas gnome-audio-profiles.schemas \
+		gnome-cd.schemas gnome-sound-recorder.schemas
 	  
-

You can use this script to - add these entries automatically.

+

The schema files and %gconf.xml key files should + not be in the pkg-plist. If you notice that the + port doesn't has any %gconf.xml key files, but + has schema files then you should not be use + GCONF_SCHEMAS. It means, this port has broke + either schema files or installtion of GConf.