app-laptop/ibam - 0.5.2 (gentoo)

Search

Install

Install this version:

emerge -a =app-laptop/ibam-0.5.2

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =app-laptop/ibam-0.5.2

Or alternatively:

emerge --autounmask-write -a =app-laptop/ibam-0.5.2

Package Information

Description:
Intelligent Battery Monitor
Homepage:
https://ibam.sourceforge.net
License:
GPL-2

Ebuild Details

Version EAPI Keywords Slot
0.5.2 8 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PATCH_LEVEL="2.1"
inherit flag-o-matic toolchain-funcs optfeature

DESCRIPTION="Intelligent Battery Monitor"
HOMEPAGE="https://ibam.sourceforge.net"
SRC_URI="
	https://downloads.sourceforge.net/${PN}/${P}.tar.gz
	mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV}-${PATCH_LEVEL}.diff.gz
"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="gkrellm"

RDEPEND="
	gkrellm? (
		app-admin/gkrellm:2[X]
		x11-libs/gdk-pixbuf
		x11-libs/gtk+:2
	)
"
DEPEND="${RDEPEND}"
BDEPEND="gkrellm? ( virtual/pkgconfig )"

PATCHES=(
	"${FILESDIR}"/${P}-build.patch
	"${WORKDIR}"/${PN}_${PV}-${PATCH_LEVEL}.diff
	"${S}"/debian/patches/02deviation.dpatch
	"${S}"/debian/patches/03acpi-check.dpatch
	"${S}"/debian/patches/05_sysfs_lenovo.dpatch
)

src_compile() {
	tc-export CXX PKG_CONFIG

	append-cxxflags -std=c++03

	emake
	use gkrellm && emake krell
}

src_install() {
	dobin ibam
	dodoc CHANGES README REPORT

	if use gkrellm; then
		insinto /usr/$(get_libdir)/gkrellm2/plugins
		doins ibam-krell.so
	fi
}

pkg_postinst() {
	optfeature "using the --plot argument" sci-visualization/gnuplot
}

USE Flags

Manage flags for this package: euse -i <flag> -p app-laptop/ibam | euse -E <flag> -p app-laptop/ibam | euse -D <flag> -p app-laptop/ibam

Global/Standard Flags

Inherited Eclasses

Applicable Mirrors

Mirror Name URLs
debian

Dependencies

DEPEND

	gkrellm? (
		app-admin/gkrellm:2[X]
		x11-libs/gdk-pixbuf
		x11-libs/gtk+:2
	)

RDEPEND

	gkrellm? (
		app-admin/gkrellm:2[X]
		x11-libs/gdk-pixbuf
		x11-libs/gtk+:2
	)

BDEPEND

gkrellm? ( virtual/pkgconfig )

Manifest for 0.5.2

Type File Size Source URLs
DIST ibam-0.5.2.tar.gz 22149 bytes https://downloads.sourceforge.net/ibam/ibam-0.5.2.tar.gz
DIST ibam_0.5.2-2.1.diff.gz 6115 bytes mirror://debian/pool/main/i/ibam/ibam_0.5.2-2.1.diff.gz