Update of /cvsroot/fink/dists/10.4/unstable/main/finkinfo/gnome
In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv2735

Modified Files:
        shared-mime-info.info 
Log Message:
prevent mis-use by other packages' build processes; freshen deps


Index: shared-mime-info.info
===================================================================
RCS file: 
/cvsroot/fink/dists/10.4/unstable/main/finkinfo/gnome/shared-mime-info.info,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- shared-mime-info.info       29 Aug 2008 22:09:52 -0000      1.12
+++ shared-mime-info.info       16 Oct 2008 21:30:26 -0000      1.13
@@ -1,22 +1,21 @@
 Package: shared-mime-info
 Version: 0.40
-Revision: 1
+Revision: 2
 Depends: <<
        base-files,
-       glib2-shlibs (>= 2.14.0-1),
+       glib2-shlibs (>= 2.18.0-1),
        libgettext3-shlibs,
-       libiconv,
        libxml2-shlibs (>= 2.6.19-2),
-       pkgconfig (>= 0.20-1),
+       pkgconfig (>= 0.23),
        xdg-base
 <<
 BuildDepends: <<
        gettext-bin,
        gettext-tools,
-       glib2-dev (>= 2.14.0-1),
-       intltool (>= 0.36.0-1),
+       glib2-dev (>= 2.18.0-1),
+       intltool40,
        libgettext3-dev,
-       libiconv-dev,
+       libiconv-bin,
        libxml2 (>= 2.6.19-2),
        libxml2-bin (>= 2.6.19-2),
        pkgconfig
@@ -24,7 +23,10 @@
 Source: http://freedesktop.org/~hadess/%n-%v.tar.bz2
 Source-MD5: b86a0aa5e87a307ede576088c6450a29
 ConfigureParams: --disable-update-mimedb --libexecdir=%p/lib/%n 
--mandir=%p/share/man --disable-dependency-tracking
-InstallScript: make -j1 install DESTDIR=%d
+InstallScript: <<
+       make -j1 install DESTDIR=%d
+       ./update-mime-database %i/share/mime
+<<
 DocFiles: COPYING ChangeLog po/ChangeLog:ChangeLog.po HACKING NEWS README
 PostInstScript: <<
        . %p/bin/init.sh
@@ -38,5 +40,31 @@
 <<
 DescPackaging: <<
  Not sure we need to load init.sh during postinst ourselves, but won't hurt.
+
+ Create initial cache, which is then overwritten at install-time and
+ in other packages' PostInst. By having the cache files belong to %N,
+ dpkg will refuse to install a package that has accidentally run the
+ update at build-time instead of deferring until pkg install.
+<<
+DescUsage: <<
+       Packages that install %p/share/mime* items should make sure
+       they do *not* run update-mime-database as part of their build
+       process. There is often a --disable-update-mimedb or similar
+       ./configure flag. Then in PostInstScript and PostRmScript,
+       they *do* need to run update-mime-database in order to cache
+       the package's data, for example:
+
+               PostInstScript: <<
+                       . %p/bin/init.sh
+                       %p/bin/update-mime-database %p/share/mime
+               <<
+               PostRmScript: <<
+                       . %p/bin/init.sh
+                       %p/bin/update-mime-database %p/share/mime
+               <<
+
+       Remember to have Depends:shared-mime-info there too.
+
+
 <<
 Homepage: http://freedesktop.org/wiki/Software/shared-mime-info


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to