summaryrefslogtreecommitdiff
blob: f58c8aa0e5521220674b8cf838e8dd80932a394f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils fdo-mime

DESCRIPTION="Manages the /usr/bin/emacs symlink"
HOMEPAGE="http://www.gentoo.org/"
#SRC_URI="mirror://gentoo/${P}.tar.bz2"
SRC_URI="http://wwwa1.kph.uni-mainz.de/users/ulm/gentoo/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="X"

RDEPEND=">=app-admin/eselect-1.0.7"

src_install() {
	if use X; then
		domenu emacs.desktop
		doicon emacs.png
	fi
	insinto /usr/share/eselect/modules
	doins emacs.eselect || die "doins failed"
}

pkg_postinst() {
	use X && fdo-mime_desktop_database_update
}

pkg_postrm() {
	use X && fdo-mime_desktop_database_update
}