From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id E20501384B4 for ; Fri, 25 Dec 2015 18:45:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3CC86E0858; Fri, 25 Dec 2015 18:45:05 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C9EE9E0858 for ; Fri, 25 Dec 2015 18:45:04 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8485333E3A9 for ; Fri, 25 Dec 2015 18:45:01 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E276FA0E for ; Fri, 25 Dec 2015 18:44:59 +0000 (UTC) From: "Michael Palimaka" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Palimaka" Message-ID: <1451069086.353ad5d3f1b050127d8bf56addfc6dcd045c1ca2.kensington@gentoo> Subject: [gentoo-commits] proj/kde:master commit in: eclass/ X-VCS-Repository: proj/kde X-VCS-Files: eclass/freedesktop.eclass X-VCS-Directories: eclass/ X-VCS-Committer: kensington X-VCS-Committer-Name: Michael Palimaka X-VCS-Revision: 353ad5d3f1b050127d8bf56addfc6dcd045c1ca2 X-VCS-Branch: master Date: Fri, 25 Dec 2015 18:44:59 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: edd7264b-605a-4288-a643-359c14da81e4 X-Archives-Hash: 0cb6ae4b15aeeecdc39e24f4911a4499 commit: 353ad5d3f1b050127d8bf56addfc6dcd045c1ca2 Author: Michael Palimaka gentoo org> AuthorDate: Fri Dec 25 18:44:46 2015 +0000 Commit: Michael Palimaka gentoo org> CommitDate: Fri Dec 25 18:44:46 2015 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=353ad5d3 freedesktop.eclass: remove unused experiment Gentoo-bug: 569084 eclass/freedesktop.eclass | 70 ----------------------------------------------- 1 file changed, 70 deletions(-) diff --git a/eclass/freedesktop.eclass b/eclass/freedesktop.eclass deleted file mode 100644 index 1fe7a91..0000000 --- a/eclass/freedesktop.eclass +++ /dev/null @@ -1,70 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -# @ECLASS: freedesktop -# @MAINTAINER: -# freedesktop-bugs@gentoo.org -# @BLURB: Useful functions for working with freedesktop-compliant applications -# @DESCRIPTION: -# Set up directories according to the XDG Base Directory Specification. -# Also provides functions for updating desktop, mime, and icon caches. -# @EXAMPLE: -# @CODE -# inherit freedesktop -# -# pkg_setup() { -# freedesktop_setup -# } -# pkg_postinst() { -# freedesktop_desktop_database_update -# freedesktop_mime_database_update -# } -# @CODE - -# Unset these globally to avoid leaking values from the calling environment. -unset XDG_DATA_HOME XDG_CONFIG_HOME XDG_CACHE_HOME XDG_RUNTIME_DIR - -# @FUNCTION: freedesktop_setup -# @DESCRIPTION: -# Creates sensible locations for the following environment variables: -# XDG_DATA_HOME -# XDG_CONFIG_HOME -# XDG_CACHE_HOME -# XDG_RUNTIME_DIR -freedesktop_setup() { - export XDG_DATA_HOME="${HOME}/.local/share" - export XDG_CONFIG_HOME="${HOME}/.config" - export XDG_CACHE_HOME="${HOME}/.cache" - export XDG_RUNTIME_DIR="${T}/run" - mkdir -p "${XDG_DATA_HOME}" "${XDG_CONFIG_HOME}" "${XDG_CACHE_HOME}" || die - mkdir -p -m 0700 "${XDG_RUNTIME_DIR}" || die -} - -# @FUNCTION: freedesktop_desktop_database_update -# @DESCRIPTION: -# Updates the desktop database. -# Generates a list of mimetypes linked to applications that can handle them -freedesktop_desktop_database_update() { - has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX= - has "${EAPI:-0}" 0 1 2 && ! use prefix && EROOT="${ROOT}" - if [ -x "${EPREFIX}/usr/bin/update-desktop-database" ] - then - einfo "Updating desktop mime database ..." - "${EPREFIX}/usr/bin/update-desktop-database" -q "${EROOT}usr/share/applications" - fi -} - -# @FUNCTION: freedesktop_mime_database_update -# @DESCRIPTION: -# Update the mime database. -# Creates a general list of mime types from several sources -freedesktop_mime_database_update() { - has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX= - has "${EAPI:-0}" 0 1 2 && ! use prefix && EROOT="${ROOT}" - if [ -x "${EPREFIX}/usr/bin/update-mime-database" ] - then - einfo "Updating shared mime info database ..." - "${EPREFIX}/usr/bin/update-mime-database" "${EROOT}usr/share/mime" - fi -}