| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/x11-plugins/wmbattery/wmbattery-2.40.ebuild,v 1.4 2012/07/08 15:24:35 jer Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
inherit autotools
|
| 7 |
|
| 8 |
DESCRIPTION="A dockable app to report APM, ACPI, or SPIC battery status"
|
| 9 |
HOMEPAGE="http://joeyh.name/code/wmbattery/"
|
| 10 |
SRC_URI="mirror://debian/pool/main/w/${PN}/${PN}_${PV}.tar.gz"
|
| 11 |
|
| 12 |
LICENSE="GPL-2"
|
| 13 |
SLOT="0"
|
| 14 |
KEYWORDS="~amd64 ~ppc -sparc ~x86"
|
| 15 |
IUSE=""
|
| 16 |
|
| 17 |
DEPEND="sys-apps/apmd
|
| 18 |
x11-libs/libX11
|
| 19 |
x11-libs/libXext
|
| 20 |
x11-libs/libXpm"
|
| 21 |
|
| 22 |
S=${WORKDIR}/${PN}
|
| 23 |
|
| 24 |
src_prepare() {
|
| 25 |
sed -i \
|
| 26 |
-e '/^icondir/s:icons:pixmaps:' \
|
| 27 |
-e '/^USE_HAL/d' \
|
| 28 |
autoconf/makeinfo.in || die
|
| 29 |
|
| 30 |
eautoconf
|
| 31 |
}
|
| 32 |
|
| 33 |
src_install() {
|
| 34 |
emake DESTDIR="${D}" install
|
| 35 |
dodoc README TODO
|
| 36 |
}
|