diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
commit | 0f558761aa2dee1017b4751e4017205e015a9560 (patch) | |
tree | 037df795519468a25d9362b4e95cdaeb84eb1cf9 /app-laptop/ibam/ibam-0.5.2-r5.ebuild | |
parent | 752d6256e5204b958b0ef7905675a940b5e9172f (diff) |
gentoo resync : 29.12.2022
Diffstat (limited to 'app-laptop/ibam/ibam-0.5.2-r5.ebuild')
-rw-r--r-- | app-laptop/ibam/ibam-0.5.2-r5.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
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 +} |