blob: 057072429935dffb5085e636c907e601f2a6b50d (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/desktop-file-utils/desktop-file-utils-0.15.ebuild,v 1.10 2008/12/07 12:13:57 vapier Exp $
inherit elisp-common
DESCRIPTION="Command line utilities to work with desktop menu entries"
HOMEPAGE="http://freedesktop.org/wiki/Software/desktop-file-utils"
SRC_URI="http://www.freedesktop.org/software/${PN}/releases/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
IUSE="emacs"
RDEPEND=">=dev-libs/glib-2.12
emacs? ( virtual/emacs )"
DEPEND="${RDEPEND}
dev-util/pkgconfig"
SITEFILE=50${PN}-gentoo.el
src_unpack() {
unpack ${A}
sed -i -e 's:misc::' "${S}"/Makefile.in
}
src_compile() {
econf
emake || die "emake failed."
use emacs && elisp-compile misc/desktop-entry-mode.el
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed."
if use emacs; then
elisp-install ${PN} misc/*.el misc/*.elc || die "elisp-install failed."
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
fi
dodoc AUTHORS ChangeLog NEWS README
}
pkg_postinst() {
use emacs && elisp-site-regen
}
pkg_postrm() {
use emacs && elisp-site-regen
}
|