/[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.3 - (hide annotations) (download)
Mon Jan 23 01:06:46 2012 UTC (8 years, 8 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
punt old, these have no chances of working

(Portage version: 2.2.0_alpha84/cvs/Linux x86_64)

1 chainsaw 1.2 # Copyright 1999-2010 Gentoo Foundation
2 scarabeus 1.1 # Distributed under the terms of the GNU General Public License v2
3 ssuominen 1.3 # $Header: /var/cvsroot/gentoo-x86/app-laptop/ibam/ibam-0.5.2.ebuild,v 1.2 2010/10/19 21:16:33 chainsaw Exp $
4 scarabeus 1.1
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