Index: sensors-applet-2.2.1.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/gnome-extra/sensors-applet/sensors-applet-2.2.1.ebuild,v retrieving revision 1.4 diff -u -B -r1.4 sensors-applet-2.2.1.ebuild --- sensors-applet-2.2.1.ebuild 16 Nov 2008 16:36:55 -0000 1.4 +++ sensors-applet-2.2.1.ebuild 28 Feb 2009 11:20:02 -0000 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/gnome-extra/sensors-applet/sensors-applet-2.2.1.ebuild,v 1.4 2008/11/16 16:36:55 flameeyes Exp $ -inherit gnome2 eutils flag-o-matic +inherit autotools gnome2 eutils DESCRIPTION="GNOME panel applet to display readings from hardware sensors" HOMEPAGE="http://sensors-applet.sourceforge.net/" @@ -36,10 +36,16 @@ DOCS="AUTHORS ChangeLog NEWS README TODO" pkg_setup() { - G2CONF="$(use_with nvidia) \ - $(use_with lm_sensors libsensors) \ - $(use_enable libnotify)" + G2CONF="$(use_with nvidia) + $(use_with lm_sensors libsensors) + $(use_enable libnotify)" +} - # Bug #221817 - use nvidia && append-ldflags -Wl,--no-as-needed +src_prepare() { + # Fix nvidia library detection, bug #221817 + if use nvidia; then + epatch "${FILESDIR}/${P}-nvidia-check.patch" + intltoolize --force --copy --automake || die "intltoolize failed" + eautoreconf + fi }