diff options
author | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2010-05-30 01:18:10 +0800 |
---|---|---|
committer | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2010-05-30 01:18:10 +0800 |
commit | 646905ba0c509e8098b3ee820958ea7d98ebfb19 (patch) | |
tree | a5626b991527dd33cc7f661a5774442bf931e736 /Mk | |
parent | c49bd4c8dfb91c51792b8a458b2dec3cfdf5a791 (diff) | |
download | marcuscom-ports-646905ba0c509e8098b3ee820958ea7d98ebfb19.tar marcuscom-ports-646905ba0c509e8098b3ee820958ea7d98ebfb19.tar.gz marcuscom-ports-646905ba0c509e8098b3ee820958ea7d98ebfb19.tar.bz2 marcuscom-ports-646905ba0c509e8098b3ee820958ea7d98ebfb19.tar.lz marcuscom-ports-646905ba0c509e8098b3ee820958ea7d98ebfb19.tar.xz marcuscom-ports-646905ba0c509e8098b3ee820958ea7d98ebfb19.tar.zst marcuscom-ports-646905ba0c509e8098b3ee820958ea7d98ebfb19.zip |
Presenting GLIB_SCHEMA (if you know a beter name let me know).
This does the same like GCONF_SCHEMA but for gsettings *.gschema.xml files.
And yes it based on GCONF_SCHEMA :)
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@14157 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.gnome.mk | 48 |
1 files changed, 34 insertions, 14 deletions
diff --git a/Mk/bsd.gnome.mk b/Mk/bsd.gnome.mk index 76a28386c..3d4f8f377 100644 --- a/Mk/bsd.gnome.mk +++ b/Mk/bsd.gnome.mk @@ -3,7 +3,7 @@ # # $FreeBSD$ # $NetBSD: $ -# $MCom: ports/Mk/bsd.gnome.mk,v 1.494 2010/05/29 13:08:31 kwm Exp $ +# $MCom: ports/Mk/bsd.gnome.mk,v 1.495 2010/05/29 13:12:54 kwm Exp $ # # Please view me with 4 column tabs! @@ -41,22 +41,30 @@ Gnome_Pre_Include= bsd.gnome.mk # and MAKE_ENV defined. # # -# GCONF_SCHEMAS - Set the following to list of all schema files -# that your port installs. These schema files and -# %gconf.xml files will be automatically added to -# ${PLIST}. For example, if your port has -# "etc/gconf/schemas/(foo.schemas and bar.schemas)", -# add the following to your Makefile: -# "GCONF_SCHEMAS=foo.schemas bar.schemas". +# GCONF_SCHEMAS - Set the following to list of all the gconf schema files +# that your port installs. These schema files and +# %gconf.xml files will be automatically added to +# the ${PLIST}. For example, if your port has +# "etc/gconf/schemas/(foo.schemas and bar.schemas)", +# add the following to your Makefile: +# "GCONF_SCHEMAS=foo.schemas bar.schemas". +# +# GLIB_SCHEMAS - Set the following to list of all gsettings schema files +# (*.gschema.xml) that your ports installs. The +# schema files will be automatically added to +# the ${PLIST}. For example, if your port has +# "share/glib-2.0/schemas/(foo.gschema.xml and bar.gschema.xml)", +# add the following to your Makefile: +# "GLIB_SCHEMAS=foo.gschema.xml bar.gschema.xml". # # INSTALLS_OMF - If set, bsd.gnome.mk will automatically scan pkg-plist -# file and add apropriate @exec/@unexec directives for -# each .omf file found to track OMF registration database. +# file and add apropriate @exec/@unexec directives for +# each .omf file found to track OMF registration database. # # INSTALLS_ICONS - If your port installs Freedesktop-style icons to -# ${LOCALBASE}/share/icons, then you should use this -# macro. If the icons are not cached, they will not be -# displayed. +# ${LOCALBASE}/share/icons, then you should use this +# macro. If the icons are not cached, they will not be +# displayed. # # non-version specific components @@ -798,7 +806,7 @@ CONFIGURE_FAIL_MESSAGE= "Please run the gnomelogalyzer, available from \"http:// .if defined(GCONF_SCHEMAS) || defined(INSTALLS_OMF) || defined(INSTALLS_ICONS) \ - || (defined(_USE_GNOME) && ${_USE_GNOME:Mgnomehier}!="") + || defined(GLIB_SCHEMAS) || (defined(_USE_GNOME) && ${_USE_GNOME:Mgnomehier}!="") pre-su-install: gnome-pre-su-install post-install: gnome-post-install @@ -823,6 +831,18 @@ gnome-post-install: done . endif +# we put the @unexec behind the plist schema entry, because it compiles files +# in the directory. So we should remove the port file first before recompiling. +. if defined(GLIB_SCHEMAS) + @for i in ${GLIB_SCHEMAS}; do \ + ${ECHO_CMD} "share/glib-2.0/schemas/$${i}" >> ${TMPPLIST}; \ + ${ECHO_CMD} "@exec glib-compile-schemas %D/share/glib-2.0/schemas > /dev/null || /usr/bin/true" \ + >> ${TMPPLIST}; \ + ${ECHO_CMD} "@unexec glib-compile-schemas --uninstall %D/share/glib-2.0/schemas > /dev/null || /usr/bin/true" \ + >> ${TMPPLIST}; \ + done +.endif + . if defined(INSTALLS_OMF) @for i in `${GREP} "\.omf$$" ${TMPPLIST}`; do \ ${ECHO_CMD} "@exec scrollkeeper-install -q %D/$${i} 2>/dev/null || /usr/bin/true" \ |