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

Contents of /eclass/fdo-mime.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (hide annotations) (download)
Mon Aug 22 04:46:31 2011 UTC (3 years, 3 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.13: +5 -6 lines
fix random bugs in eclass documentation, and convert to new @AUTHOR tag

1 vapier 1.14 # Copyright 1999-2011 Gentoo Foundation
2 foser 1.1 # Distributed under the terms of the GNU General Public License v2
3 vapier 1.14 # $Header: /var/cvsroot/gentoo-x86/eclass/fdo-mime.eclass,v 1.13 2011/08/09 19:01:29 darkside Exp $
4 foser 1.1
5 pva 1.7 # @ECLASS: fdo-mime.eclass
6 vapier 1.14 # @MAINTAINER:
7     # freedesktop-bugs@gentoo.org
8     # @AUTHOR:
9 pva 1.7 # 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 foser 1.1
12 pva 1.7 # @FUNCTION: fdo-mime_desktop_database_update
13     # @DESCRIPTION:
14     # Updates the desktop database.
15 foser 1.1 # Generates a list of mimetypes linked to applications that can handle them
16     fdo-mime_desktop_database_update() {
17 darkside 1.11 has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX=
18 darkside 1.12 has "${EAPI:-0}" 0 1 2 && ! use prefix && EROOT="${ROOT}"
19 darkside 1.11 if [ -x "${EPREFIX}/usr/bin/update-desktop-database" ]
20 eva 1.10 then
21     einfo "Updating desktop mime database ..."
22 darkside 1.13 "${EPREFIX}/usr/bin/update-desktop-database" -q "${EROOT}usr/share/applications"
23 foser 1.1 fi
24     }
25    
26 pva 1.7 # @FUNCTION: fdo-mime_mime_database_update
27     # @DESCRIPTION:
28     # Update the mime database.
29 foser 1.1 # Creates a general list of mime types from several sources
30     fdo-mime_mime_database_update() {
31 darkside 1.11 has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX=
32 darkside 1.12 has "${EAPI:-0}" 0 1 2 && ! use prefix && EROOT="${ROOT}"
33 darkside 1.11 if [ -x "${EPREFIX}/usr/bin/update-mime-database" ]
34 eva 1.10 then
35     einfo "Updating shared mime info database ..."
36 darkside 1.13 "${EPREFIX}/usr/bin/update-mime-database" "${EROOT}usr/share/mime"
37 foser 1.1 fi
38     }

  ViewVC Help
Powered by ViewVC 1.1.20