# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=3 inherit distutils eutils gnome2-utils DESCRIPTION="Sysfs browsing tool focused on helping udev users and developers" HOMEPAGE="http://fontanon.org/udevdiscover/" SRC_URI="http://launchpad.net/${PN}/${PV}/${PV}.0/+download/${P}.tar.gz" LICENSE="GPL-3" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND=">=dev-lang/python-2.7 dev-python/pygobject dev-python/python-gudev >=x11-libs/gtk+-3.0 >=gnome-base/gconf-2.0 >=x11-libs/gdk-pixbuf-2.0" RDEPEND="${DEPEND}" src_prepare() { # https://github.com/fontanon/udev-discover/commit/c5615f2c6fd20804e837d9ce42fa3c4b3afae59a epatch ${FILESDIR}/0002-s-ui-Added-a-DesktopEntry-file.patch # https://bugs.launchpad.net/udev-discover/+bug/833911 epatch ${FILESDIR}/0003-xs-gconf-Bugfix-lp-833911-on-default-subsystem-set-a.patch # https://bugs.launchpad.net/udev-discover/+bug/832655 epatch ${FILESDIR}/0005-s-core-Bugfix-lp-832655-related-with-a-bad-handle-of.patch # https://bugs.launchpad.net/udev-discover/+bug/835968 epatch ${FILESDIR}/0006-Interpolate-PREFIX-at-build-stage-using-prefix-from-.patch # https://bugs.launchpad.net/udev-discover/+bug/836011 epatch ${FILESDIR}/0007-Install-application-icon-to-share-icons.patch } pkg_preinst() { gnome2_icon_savelist } pkg_postinst() { gnome2_icon_cache_update } pkg_postrm() { gnome2_icon_cache_update }