cifrado r51 - in trunk: . data



Author: bersace
Date: Fri Jan 18 14:01:55 2008
New Revision: 51
URL: http://svn.gnome.org/viewvc/cifrado?rev=51&view=rev

Log:
Ajout du type mime.


Added:
   trunk/data/x-cifrado.xml
Modified:
   trunk/ChangeLog
   trunk/TODO
   trunk/configure.ac
   trunk/data/Makefile.am

Modified: trunk/TODO
==============================================================================
--- trunk/TODO	(original)
+++ trunk/TODO	Fri Jan 18 14:01:55 2008
@@ -1,4 +1,6 @@
 
+* Type MIME, etc.
+
 * Fichiers rÃcemment utilisÃs
 
 * EmblÃmes de force

Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac	(original)
+++ trunk/configure.ac	Fri Jan 18 14:01:55 2008
@@ -38,6 +38,16 @@
 AS_AC_EXPAND(DATADIR, $datarootdir)
 AS_AC_EXPAND(PKGPYTHONDIR, $PKGPYTHONDIR)
 
+dnl FDO MIME
+AC_PATH_PROG(UPDATE_DESKTOP_DATABASE, update-desktop-database, no)
+AC_PATH_PROG(UPDATE_MIME_DATABASE, update-mime-database, no)
+
+AC_ARG_ENABLE(desktop-update, [AC_HELP_STRING(--disable-desktop-update, Disable the MIME desktop database update)], disable_desktop=yes, disable_desktop=no)
+AC_ARG_ENABLE(mime-update, [AC_HELP_STRING(--disable-mime-update, Disable the MIME database update)], disable_mime=yes, disable_mime=no)
+
+AM_CONDITIONAL(HAVE_FDO_DESKTOP, test "x$UPDATE_DESKTOP_DATABASE" != "xno" -a "x$disable_desktop" = "xno")
+AM_CONDITIONAL(HAVE_FDO_MIME, test "x$UPDATE_MIME_DATABASE" != "xno" -a "x$disable_mime" = "xno")
+
 dnl EXÃCUTION
 AC_CONFIG_FILES([
 	Makefile

Modified: trunk/data/Makefile.am
==============================================================================
--- trunk/data/Makefile.am	(original)
+++ trunk/data/Makefile.am	Fri Jan 18 14:01:55 2008
@@ -31,9 +31,21 @@
 desktopdir = $(datadir)/applications
 desktop_DATA = cifrado.desktop
 
+# MIME
+mimedir = $(datadir)/mime/packages
+dist_mime_DATA = x-cifrado.xml
+
 EXTRA_DIST = \
 	$(apps_DATA)	\
 	$(apps24_DATA)	\
 	$(glade_DATA)	\
 	$(desktop_DATA)
 
+install-data-hook:
+if HAVE_FDO_MIME
+	$(UPDATE_MIME_DATABASE) "$(datadir)/mime"
+endif
+
+if HAVE_FDO_DESKTOP
+	$(UPDATE_DESKTOP_DATABASE)
+endif
\ No newline at end of file

Added: trunk/data/x-cifrado.xml
==============================================================================
--- (empty file)
+++ trunk/data/x-cifrado.xml	Fri Jan 18 14:01:55 2008
@@ -0,0 +1,7 @@
+<?xml version="1.0"?>
+<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
+  <mime-type type="application/x-cifrado">
+    <comment>Grand-jeu cifrado</comment>
+    <glob pattern="*.cifrado"/>
+  </mime-type>
+</mime-info>
\ No newline at end of file



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