blob: 83501dfc78c8b0ba4895097d5c72ff52665096be (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=4
inherit eutils gnome2-utils java-utils-2
DESCRIPTION="freedesktop.org specification compatible menu editor"
HOMEPAGE="http://lxmed.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=">=virtual/jre-1.5
x11-libs/gksu"
DEPEND=""
S=${WORKDIR}/${PN}/content
src_prepare() {
sed -i -e '/^Icon/s:=.*:=lxmed:' lxmed.desktop || die
}
src_install() {
java-pkg_dojar LXMenuEditor.jar
java-pkg_dolauncher lxmed --jar LXMenuEditor.jar
insinto /usr/share/icons/hicolor/48x48/apps
doins lxmed.png
domenu lxmed.desktop
}
pkg_preinst() { gnome2_icon_savelist; }
pkg_postinst() { gnome2_icon_cache_update; }
pkg_postrm() { gnome2_icon_cache_update; }
|