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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Mon Jan 23 01:06:47 2012 UTC (8 years, 7 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
punt old, these have no chances of working

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

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

  ViewVC Help
Powered by ViewVC 1.1.20