Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-laptop/ibam/
Date: Fri, 13 May 2022 20:04:18
Message-Id: 1652472221.53faa2120a65c5048b37d228f353a21b6a5bbe21.sam@gentoo
1 commit: 53faa2120a65c5048b37d228f353a21b6a5bbe21
2 Author: Thomas Bracht Laumann Jespersen <t <AT> laumann <DOT> xyz>
3 AuthorDate: Tue May 3 10:00:36 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri May 13 20:03:41 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53faa212
7
8 app-laptop/ibam: update EAPI 6 -> 8
9
10 Closes: https://bugs.gentoo.org/840323
11 Signed-off-by: Thomas Bracht Laumann Jespersen <t <AT> laumann.xyz>
12 Closes: https://github.com/gentoo/gentoo/pull/25290
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 app-laptop/ibam/ibam-0.5.2-r5.ebuild | 56 ++++++++++++++++++++++++++++++++++++
16 1 file changed, 56 insertions(+)
17
18 diff --git a/app-laptop/ibam/ibam-0.5.2-r5.ebuild b/app-laptop/ibam/ibam-0.5.2-r5.ebuild
19 new file mode 100644
20 index 000000000000..e20f619db816
21 --- /dev/null
22 +++ b/app-laptop/ibam/ibam-0.5.2-r5.ebuild
23 @@ -0,0 +1,56 @@
24 +# Copyright 1999-2022 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=8
28 +
29 +PATCH_LEVEL="2.1"
30 +inherit toolchain-funcs optfeature
31 +
32 +DESCRIPTION="Intelligent Battery Monitor"
33 +HOMEPAGE="http://ibam.sourceforge.net/"
34 +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
35 + mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV}-${PATCH_LEVEL}.diff.gz"
36 +
37 +LICENSE="GPL-2"
38 +SLOT="0"
39 +KEYWORDS="~amd64 ~x86"
40 +IUSE="gkrellm"
41 +
42 +RDEPEND="
43 + gkrellm? (
44 + app-admin/gkrellm:2[X]
45 + x11-libs/gdk-pixbuf
46 + x11-libs/gtk+:2
47 + )"
48 +DEPEND="
49 + ${RDEPEND}
50 + gkrellm? ( virtual/pkgconfig )"
51 +
52 +PATCHES=(
53 + "${FILESDIR}"/${P}-build.patch
54 + "${WORKDIR}"/${PN}_${PV}-${PATCH_LEVEL}.diff
55 + "${S}"/debian/patches/02deviation.dpatch
56 + "${S}"/debian/patches/03acpi-check.dpatch
57 + "${S}"/debian/patches/05_sysfs_lenovo.dpatch
58 +)
59 +
60 +src_compile() {
61 + tc-export CXX PKG_CONFIG
62 +
63 + emake
64 + use gkrellm && emake krell
65 +}
66 +
67 +src_install() {
68 + dobin ibam
69 + dodoc CHANGES README REPORT
70 +
71 + if use gkrellm; then
72 + insinto /usr/$(get_libdir)/gkrellm2/plugins
73 + doins ibam-krell.so
74 + fi
75 +}
76 +
77 +pkg_postinst() {
78 + optfeature "using the --plot argument" sci-visualization/gnuplot
79 +}