From f8670fec83a46fd2c3fd2eedfdcb06e23946bccf Mon Sep 17 00:00:00 2001 From: Tomas Chvatal Date: Wed, 29 Jul 2009 22:01:07 +0000 Subject: Version bump. Per bugs #231785 and #275624. (Portage version: 2.2_rc33/cvs/Linux i686) --- app-laptop/ibam/ChangeLog | 10 ++++++-- app-laptop/ibam/ibam-0.5.2.ebuild | 52 +++++++++++++++++++++++++++++++++++++++ app-laptop/ibam/metadata.xml | 5 +++- 3 files changed, 64 insertions(+), 3 deletions(-) create mode 100644 app-laptop/ibam/ibam-0.5.2.ebuild (limited to 'app-laptop') diff --git a/app-laptop/ibam/ChangeLog b/app-laptop/ibam/ChangeLog index 24e2430bb0d9..e325fc8eea0f 100644 --- a/app-laptop/ibam/ChangeLog +++ b/app-laptop/ibam/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-laptop/ibam -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-laptop/ibam/ChangeLog,v 1.5 2007/03/04 20:05:22 peper Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/ibam/ChangeLog,v 1.6 2009/07/29 22:01:07 scarabeus Exp $ + +*ibam-0.5.2 (29 Jul 2009) + + 29 Jul 2009; Tomáš Chvátal +ibam-0.5.2.ebuild, + metadata.xml: + Version bump. Per bugs #231785 and #275624. 04 Mar 2007; Piotr Jaroszyński ibam-0.4.ebuild: Fix incomplete media-gfx/gnuplot -> sci-visualization/gnuplot move. diff --git a/app-laptop/ibam/ibam-0.5.2.ebuild b/app-laptop/ibam/ibam-0.5.2.ebuild new file mode 100644 index 000000000000..1719dd61fdd8 --- /dev/null +++ b/app-laptop/ibam/ibam-0.5.2.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/ibam/ibam-0.5.2.ebuild,v 1.1 2009/07/29 22:01:07 scarabeus Exp $ + +inherit eutils toolchain-funcs + +DESCRIPTION="Intelligent Battery Monitor" +HOMEPAGE="http://ibam.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="gkrellm" + +DEPEND="gkrellm? ( app-admin/gkrellm )" +RDEPEND="${DEPEND}" + +src_unpack() { + unpack ${A} + + sed -i \ + -e "s:^CFLAGS=-O3:CFLAGS=${CFLAGS}:" \ + -e "s:^CC=g++:CC=$(tc-getCXX):" \ + "${S}"/Makefile \ + || die "Sed Makefile failed" +} + +src_compile() { + emake || die "Making ibam failed" + if use gkrellm; then + emake krell || die "Making krell failed" + fi +} + +src_install() { + dobin ibam || die "dobin failed" + dodoc CHANGES README REPORT || die "dodoc failed" + + if use gkrellm; then + insinto /usr/$(get_libdir)/gkrellm2/plugins + doins ibam-krell.so || die "doins gkrellm plugin failed" + fi +} + +pkg_postinst() { + elog + elog "You will need to install sci-visualization/gnuplot if you wish to use" + elog "the --plot argument to ibam." + elog +} diff --git a/app-laptop/ibam/metadata.xml b/app-laptop/ibam/metadata.xml index b27ff8eb4ed6..53134acb289e 100644 --- a/app-laptop/ibam/metadata.xml +++ b/app-laptop/ibam/metadata.xml @@ -1,5 +1,8 @@ -mobile + mobile + + Enable building of app-admin/gkrellm module + -- cgit v1.2.3-65-gdbad