1 |
commit: 353ad5d3f1b050127d8bf56addfc6dcd045c1ca2 |
2 |
Author: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 25 18:44:46 2015 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 25 18:44:46 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=353ad5d3 |
7 |
|
8 |
freedesktop.eclass: remove unused experiment |
9 |
|
10 |
Gentoo-bug: 569084 |
11 |
|
12 |
eclass/freedesktop.eclass | 70 ----------------------------------------------- |
13 |
1 file changed, 70 deletions(-) |
14 |
|
15 |
diff --git a/eclass/freedesktop.eclass b/eclass/freedesktop.eclass |
16 |
deleted file mode 100644 |
17 |
index 1fe7a91..0000000 |
18 |
--- a/eclass/freedesktop.eclass |
19 |
+++ /dev/null |
20 |
@@ -1,70 +0,0 @@ |
21 |
-# Copyright 1999-2015 Gentoo Foundation |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
-# $Id$ |
24 |
- |
25 |
-# @ECLASS: freedesktop |
26 |
-# @MAINTAINER: |
27 |
-# freedesktop-bugs@g.o |
28 |
-# @BLURB: Useful functions for working with freedesktop-compliant applications |
29 |
-# @DESCRIPTION: |
30 |
-# Set up directories according to the XDG Base Directory Specification. |
31 |
-# Also provides functions for updating desktop, mime, and icon caches. |
32 |
-# @EXAMPLE: |
33 |
-# @CODE |
34 |
-# inherit freedesktop |
35 |
-# |
36 |
-# pkg_setup() { |
37 |
-# freedesktop_setup |
38 |
-# } |
39 |
-# pkg_postinst() { |
40 |
-# freedesktop_desktop_database_update |
41 |
-# freedesktop_mime_database_update |
42 |
-# } |
43 |
-# @CODE |
44 |
- |
45 |
-# Unset these globally to avoid leaking values from the calling environment. |
46 |
-unset XDG_DATA_HOME XDG_CONFIG_HOME XDG_CACHE_HOME XDG_RUNTIME_DIR |
47 |
- |
48 |
-# @FUNCTION: freedesktop_setup |
49 |
-# @DESCRIPTION: |
50 |
-# Creates sensible locations for the following environment variables: |
51 |
-# XDG_DATA_HOME |
52 |
-# XDG_CONFIG_HOME |
53 |
-# XDG_CACHE_HOME |
54 |
-# XDG_RUNTIME_DIR |
55 |
-freedesktop_setup() { |
56 |
- export XDG_DATA_HOME="${HOME}/.local/share" |
57 |
- export XDG_CONFIG_HOME="${HOME}/.config" |
58 |
- export XDG_CACHE_HOME="${HOME}/.cache" |
59 |
- export XDG_RUNTIME_DIR="${T}/run" |
60 |
- mkdir -p "${XDG_DATA_HOME}" "${XDG_CONFIG_HOME}" "${XDG_CACHE_HOME}" || die |
61 |
- mkdir -p -m 0700 "${XDG_RUNTIME_DIR}" || die |
62 |
-} |
63 |
- |
64 |
-# @FUNCTION: freedesktop_desktop_database_update |
65 |
-# @DESCRIPTION: |
66 |
-# Updates the desktop database. |
67 |
-# Generates a list of mimetypes linked to applications that can handle them |
68 |
-freedesktop_desktop_database_update() { |
69 |
- has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX= |
70 |
- has "${EAPI:-0}" 0 1 2 && ! use prefix && EROOT="${ROOT}" |
71 |
- if [ -x "${EPREFIX}/usr/bin/update-desktop-database" ] |
72 |
- then |
73 |
- einfo "Updating desktop mime database ..." |
74 |
- "${EPREFIX}/usr/bin/update-desktop-database" -q "${EROOT}usr/share/applications" |
75 |
- fi |
76 |
-} |
77 |
- |
78 |
-# @FUNCTION: freedesktop_mime_database_update |
79 |
-# @DESCRIPTION: |
80 |
-# Update the mime database. |
81 |
-# Creates a general list of mime types from several sources |
82 |
-freedesktop_mime_database_update() { |
83 |
- has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX= |
84 |
- has "${EAPI:-0}" 0 1 2 && ! use prefix && EROOT="${ROOT}" |
85 |
- if [ -x "${EPREFIX}/usr/bin/update-mime-database" ] |
86 |
- then |
87 |
- einfo "Updating shared mime info database ..." |
88 |
- "${EPREFIX}/usr/bin/update-mime-database" "${EROOT}usr/share/mime" |
89 |
- fi |
90 |
-} |