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

Diff of /eclass/fdo-mime.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

  ViewVC Help
Powered by ViewVC 1.1.20