[jhbuild] Add some more triggers



commit 6c4121c60f72863ba234143906d61e5e1c794875
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Jul 12 19:56:35 2011 -0400

    Add some more triggers
    
    These cover other well-known cases of install-time updated
    caches: desktop database, mime database and input method modules.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=654512

 triggers/Makefile.am              |    5 ++++-
 triggers/desktop-database.trigger |   22 ++++++++++++++++++++++
 triggers/immodules.trigger        |   22 ++++++++++++++++++++++
 triggers/mime-database.trigger    |   22 ++++++++++++++++++++++
 4 files changed, 70 insertions(+), 1 deletions(-)
---
diff --git a/triggers/Makefile.am b/triggers/Makefile.am
index 789ef6f..1d1cdf9 100644
--- a/triggers/Makefile.am
+++ b/triggers/Makefile.am
@@ -3,4 +3,7 @@ trigger_DATA = \
 	gdk-pixbuf.trigger \
 	glib.trigger \
 	gtk+.trigger \
-	pango.trigger
+	pango.trigger \
+	desktop-database.trigger \
+	mime-database.trigger \
+	immodules.trigger
diff --git a/triggers/desktop-database.trigger b/triggers/desktop-database.trigger
new file mode 100644
index 0000000..10a565d
--- /dev/null
+++ b/triggers/desktop-database.trigger
@@ -0,0 +1,22 @@
+# Post-installation hook for desktop files.  -*- mode: sh -*-
+#
+# Written by Matthias Clasen <mclasen redhat com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+# IfExecutable: update-desktop-database
+# REMatch: /share/applications/.*/.*\.desktop
+
+update-desktop-database -q
diff --git a/triggers/immodules.trigger b/triggers/immodules.trigger
new file mode 100644
index 0000000..1248c1e
--- /dev/null
+++ b/triggers/immodules.trigger
@@ -0,0 +1,22 @@
+# Post-installation hook for GTK+ input method modules.  -*- mode: sh -*-
+#
+# Written by Matthias Clasen <mclasen redhat com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+# IfExecutable: gtk-query-immodules-3.0
+# REMatch: /lib.*/gtk-3\.0/3\.0\.0/immodules/.*\.so
+
+gtk-query-immodules-3.0 --update-cache
diff --git a/triggers/mime-database.trigger b/triggers/mime-database.trigger
new file mode 100644
index 0000000..e680795
--- /dev/null
+++ b/triggers/mime-database.trigger
@@ -0,0 +1,22 @@
+# Post-installation hook for shared-mime-info.  -*- mode: sh -*-
+#
+# Written by Matthias Clasen <mclasen redhat com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+# IfExecutable: update-mime-database
+# REMatch: /mime/packages/.*\.xml
+
+update-mime-database $JHBUILD_PREFIX/share/mime



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]