/[gentoo-x86]/app-laptop/ibam/ibam-0.5.2.ebuild
Gentoo

Contents of /app-laptop/ibam/ibam-0.5.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Oct 19 21:16:33 2010 UTC (9 years, 11 months ago) by chainsaw
Branch: MAIN
Changes since 1.1: +2 -2 lines
Instill LDFLAGS respect into build system. Port to EAPI=2. Closes bug #341479 by Diego Elio "Flameeyes" Pettenò <flameeyes@gentoo.org>.

(Portage version: 2.1.9.20/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-laptop/ibam/ibam-0.5.2.ebuild,v 1.1 2009/07/29 22:01:07 scarabeus Exp $
4
5 inherit eutils toolchain-funcs
6
7 DESCRIPTION="Intelligent Battery Monitor"
8 HOMEPAGE="http://ibam.sourceforge.net/"
9 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="~amd64 ~x86"
14
15 IUSE="gkrellm"
16
17 DEPEND="gkrellm? ( app-admin/gkrellm )"
18 RDEPEND="${DEPEND}"
19
20 src_unpack() {
21 unpack ${A}
22
23 sed -i \
24 -e "s:^CFLAGS=-O3:CFLAGS=${CFLAGS}:" \
25 -e "s:^CC=g++:CC=$(tc-getCXX):" \
26 "${S}"/Makefile \
27 || die "Sed Makefile failed"
28 }
29
30 src_compile() {
31 emake || die "Making ibam failed"
32 if use gkrellm; then
33 emake krell || die "Making krell failed"
34 fi
35 }
36
37 src_install() {
38 dobin ibam || die "dobin failed"
39 dodoc CHANGES README REPORT || die "dodoc failed"
40
41 if use gkrellm; then
42 insinto /usr/$(get_libdir)/gkrellm2/plugins
43 doins ibam-krell.so || die "doins gkrellm plugin failed"
44 fi
45 }
46
47 pkg_postinst() {
48 elog
49 elog "You will need to install sci-visualization/gnuplot if you wish to use"
50 elog "the --plot argument to ibam."
51 elog
52 }

  ViewVC Help
Powered by ViewVC 1.1.20