summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Chvatal <scarabeus@gentoo.org>2009-07-29 22:01:07 +0000
committerTomas Chvatal <scarabeus@gentoo.org>2009-07-29 22:01:07 +0000
commitf8670fec83a46fd2c3fd2eedfdcb06e23946bccf (patch)
treea13aa08527d5a9d71d121605f86fb5d4bcbb2d0f
parentVersion bump (diff)
downloadgentoo-2-f8670fec83a46fd2c3fd2eedfdcb06e23946bccf.tar.gz
gentoo-2-f8670fec83a46fd2c3fd2eedfdcb06e23946bccf.tar.bz2
gentoo-2-f8670fec83a46fd2c3fd2eedfdcb06e23946bccf.zip
Version bump. Per bugs #231785 and #275624.
(Portage version: 2.2_rc33/cvs/Linux i686)
-rw-r--r--app-laptop/ibam/ChangeLog10
-rw-r--r--app-laptop/ibam/ibam-0.5.2.ebuild52
-rw-r--r--app-laptop/ibam/metadata.xml5
3 files changed, 64 insertions, 3 deletions
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 <scarabeus@gentoo.org> +ibam-0.5.2.ebuild,
+ metadata.xml:
+ Version bump. Per bugs #231785 and #275624.
04 Mar 2007; Piotr Jaroszyński <peper@gentoo.org> 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 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<herd>mobile</herd>
+ <herd>mobile</herd>
+ <use>
+ <flag name="gkrellm">Enable building of app-admin/gkrellm module</flag>
+ </use>
</pkgmetadata>