/[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.1 - (hide annotations) (download)
Wed Jul 29 22:01:07 2009 UTC (11 years, 2 months ago) by scarabeus
Branch: MAIN
Version bump. Per bugs #231785 and #275624.
(Portage version: 2.2_rc33/cvs/Linux i686)

1 scarabeus 1.1 # Copyright 1999-2009 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.4.ebuild,v 1.4 2007/03/04 20:05:22 peper 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