# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=0 inherit eutils DESCRIPTION="Visualization of the Hard Disc Active Protection System State as Gnome applet" HOMEPAGE="http://www.zen24593.zen.co.uk/hdaps/" SRC_URI="http://www.zen24593.zen.co.uk/hdaps/gnome-hdaps-applet-20081204.tar.gz" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND="dev-util/pkgconfig" RDEPEND="app-laptop/hdapsd" src_compile() { gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c } src_install() { exeinto /usr/bin doexe gnome-hdaps-applet || die "installation of binary failed" insinto /usr/share/pixmaps/gnome-hdaps-applet doins hdaps-error-small.png hdaps-paused.png hdaps-paused-small.png hdaps-running-small.png || die "installation of images failed" insinto /usr/lib/bonobo/servers doins GNOME_HDAPS_StatusApplet.server || die "installation of applet description" }