# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/x11-misc/lxmed/lxmed-20110717.ebuild,v 1.2 2011/10/22 05:58:35 ssuominen Exp $ EAPI=4 inherit eutils 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 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 cat <<-EOF > "${T}"/lxmed #!/bin/bash gksu 'java -jar /usr/share/lxmed/lib/LXMenuEditor.jar' EOF dobin "${T}"/lxmed doicon lxmed.png domenu lxmed.desktop }