/[gentoo-x86]/eclass/fdo-mime.eclass
Gentoo

Contents of /eclass/fdo-mime.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Thu Apr 21 21:21:26 2011 UTC (3 years, 4 months ago) by eva
Branch: MAIN
Changes since 1.9: +8 -61 lines
Revert to 1.8, unintended commit.

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/eclass/fdo-mime.eclass,v 1.8 2008/12/23 01:28:49 solar Exp $
4
5 # @ECLASS: fdo-mime.eclass
6 # @MAINTAINER: freedesktop-bugs@gentoo.org
7 #
8 #
9 # Original author: foser <foser@gentoo.org>
10 # @BLURB: Utility eclass to update the desktop mime info as laid out in the freedesktop specs & implementations
11
12
13 # @FUNCTION: fdo-mime_desktop_database_update
14 # @DESCRIPTION:
15 # Updates the desktop database.
16 # Generates a list of mimetypes linked to applications that can handle them
17 fdo-mime_desktop_database_update() {
18 if [ -x "/usr/bin/update-desktop-database" ]
19 then
20 einfo "Updating desktop mime database ..."
21 "/usr/bin/update-desktop-database" -q "${ROOT}/usr/share/applications"
22 fi
23 }
24
25 # @FUNCTION: fdo-mime_mime_database_update
26 # @DESCRIPTION:
27 # Update the mime database.
28 # Creates a general list of mime types from several sources
29 fdo-mime_mime_database_update() {
30 if [ -x "/usr/bin/update-mime-database" ]
31 then
32 einfo "Updating shared mime info database ..."
33 "/usr/bin/update-mime-database" "${ROOT}/usr/share/mime"
34 fi
35 }

  ViewVC Help
Powered by ViewVC 1.1.20