# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/gnome-extra/battstat/battstat-2.0.13.ebuild,v 1.12 2004/07/01 19:46:56 eradicator Exp $ IUSE="nls" S=${WORKDIR}/battstat_applet-${PV} DESCRIPTION="Battstat Applet, GNOME battery status applet." SRC_URI="http://download.sourceforge.net/battstat/battstat_applet-${PV}.tar.gz http://download.sourceforge.net/sourceforge/battstat/acpi-linux.h" HOMEPAGE="http://battstat.sourceforge.net" SLOT="0" LICENSE="GPL-2" KEYWORDS="x86" DEPEND="virtual/libc >=gnome-base/gnome-libs-1.4.1.7 >=gnome-base/gnome-core-1.4.0.8 >=sys-apps/apmd-3.0.2-r2 nls? ( sys-devel/gettext )" src_unpack() { unpack battstat_applet-${PV}.tar.gz cp ${DISTDIR}/acpi-linux.h battstat_applet-${PV}/src/ patch -p0 < ${FILESDIR}/battstat-acpi.diff } src_compile() { local myconf use nls \ || myconf="--disable-nls" # && myconf="--localedir=/usr/share/locale" \ econf ${myconf} || die emake || die } src_install () { make \ DESTDIR=${D} \ gnomeconfdir=${D}/etc \ gnomedatadir=${D}/usr/share \ gnulocaledir=${D}/usr/share/locale \ install || die rm ${D}/topic.dat dodoc AUTHORS COPYING ChangeLog NEWS README TODO }