summaryrefslogtreecommitdiff
path: root/app-laptop/ibam
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-06-29 12:04:12 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-06-29 12:04:12 +0100
commit0f558761aa2dee1017b4751e4017205e015a9560 (patch)
tree037df795519468a25d9362b4e95cdaeb84eb1cf9 /app-laptop/ibam
parent752d6256e5204b958b0ef7905675a940b5e9172f (diff)
gentoo resync : 29.12.2022
Diffstat (limited to 'app-laptop/ibam')
-rw-r--r--app-laptop/ibam/Manifest1
-rw-r--r--app-laptop/ibam/ibam-0.5.2-r5.ebuild54
2 files changed, 55 insertions, 0 deletions
diff --git a/app-laptop/ibam/Manifest b/app-laptop/ibam/Manifest
index 1438971bbf93..f0a7cf773dfd 100644
--- a/app-laptop/ibam/Manifest
+++ b/app-laptop/ibam/Manifest
@@ -2,4 +2,5 @@ AUX ibam-0.5.2-build.patch 1314 BLAKE2B 86cac05680bc47dbf63b19f1d00c0306a5f4304c
DIST ibam-0.5.2.tar.gz 22149 BLAKE2B a3d9398dc34004203643d3198a3994ef3b432b909bdf9713a91a1d938a19ab9d0345105a60f3357288c2f3d2a325498a0787138e50fb445f1ea11851f1d7de1c SHA512 c70d728a2f1250ed291e663bd9f4e9ba01308fce14edf1ffd1902057de7e5527548bd06e2e3caaaeabc064d0ee123f536a626fd50b84092f6fc9201fc6bdba58
DIST ibam_0.5.2-2.1.diff.gz 6115 BLAKE2B 8a1ada53ed39a379f11158583b337166d74d17de808a44e3d3fb225eecef5e3f3b782088072f94dbad387b258254ccbe3fdce7d5655ff201c41d66dbeb7c6d61 SHA512 f6707e42626891aa87697bc28f124345f9f1d0dfb35620f6386dc1dca6b9c5e3a73571bf04e933091c1995d1156925029c0199c5caace497ff891c93f9011ac3
EBUILD ibam-0.5.2-r4.ebuild 1177 BLAKE2B 91ca425a4724de80d530ad4ee14c771b4ffcfea5912403de38ce23ca39454b266ac764059ffb02b4a6fcb4e2a362d1a3980bfddec6243ecfb469240ba6ebba6c SHA512 34878a0c82aa491d5bb9809479baf856e841f2655cc1e6bf77c8e988a6d875de4cc09ce174af59ab1e0bd485853a45500eb20bc281536e58ef9737b4e2596ccf
+EBUILD ibam-0.5.2-r5.ebuild 1135 BLAKE2B e2c1ae89f275152c15580ec631fcc31cd5cac9323383addd38e9b46fa930cbb2455da5087398f8d7ceadfc8246af59014e78a7b421133a67650b75223fe64bc7 SHA512 c29ec9ff1853f2a7b59c108e98ecd07df049981b54a2c36ce97b187a5d5884ad7552fcee6e92cd55d5330b8c25ba3dd5a78389d67e68463d7818d08c710ef7ba
MISC metadata.xml 331 BLAKE2B 57052680a0ea03fbc1359cf35d103eec6fb892ef3c3939250e8ec2eef22a1080df434420c198338f3aa8d8c414827afc3d60bcde55d35fae2350db77e2c3b886 SHA512 12acd106d848b522f37c4ad74c91061116f3b6bb6cb1cc46045693a7a5663932df8364c591d90395c510223a312517c5ed0bee24bf4dd78913981af4e148e170
diff --git a/app-laptop/ibam/ibam-0.5.2-r5.ebuild b/app-laptop/ibam/ibam-0.5.2-r5.ebuild
new file mode 100644
index 000000000000..c69bc821262d
--- /dev/null
+++ b/app-laptop/ibam/ibam-0.5.2-r5.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PATCH_LEVEL="2.1"
+inherit toolchain-funcs optfeature
+
+DESCRIPTION="Intelligent Battery Monitor"
+HOMEPAGE="http://ibam.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${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
+
+ 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
+}