# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=4 PYTHON_DEPEND="2:2.6" inherit eutils gnome2-utils python DESCRIPTION="An advanced menu editor that provides modern features in a clean, easy-to-use interface" HOMEPAGE="http://www.smdavis.us/projects/menulibre/" SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${PN}_${PV}.tar.gz" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND="dev-python/python-distutils-extra" RDEPEND="${DEPEND} dev-python/pygobject:3 >=x11-libs/gtk+-3.0:3[introspection]" S="${WORKDIR}/${PN}" pkg_setup() { python_set_active_version 2 } src_prepare() { # Too many categories, just keep the System category which works in Gnome, KDE, XFCE ... sed -i 's/Settings;X-GNOME-Settings-Panel;X-GNOME-PersonalSettings;DesktopSettings;//' menulibre.desktop.in } src_compile() { python setup.py build } src_install() { python setup.py install --root="${D}" newicon -s 32 help/C/figures/icon.png menu-editor.png dodoc AUTHORS COPYING TODO } pkg_preinst() { gnome2_icon_savelist } pkg_postinst() { gnome2_icon_cache_update has_version gnome-extra/yelp || elog "You need gnome-extra/yelp to view help contents" } pkg_postrm() { gnome2_icon_cache_update }