diff options
author | Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> | 2018-02-12 18:37:07 +0100 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2018-02-12 14:16:13 -0500 |
commit | 499fc0570ad2f0d4d6cf50fe259324a5825af717 (patch) | |
tree | dbd593e78583ffa03287d5eb58522ecbc0789936 /app-laptop/ibam/ibam-0.5.2-r4.ebuild | |
parent | dev-db/sqlite: Stabilize 3.21.0 on amd64/x86. (diff) | |
download | gentoo-499fc0570ad2f0d4d6cf50fe259324a5825af717.tar.gz gentoo-499fc0570ad2f0d4d6cf50fe259324a5825af717.tar.bz2 gentoo-499fc0570ad2f0d4d6cf50fe259324a5825af717.zip |
app-laptop/ibam: Use EAPI="6". Fix applying of patches.
Bug: https://bugs.funtoo.org/browse/FL-4779
Diffstat (limited to 'app-laptop/ibam/ibam-0.5.2-r4.ebuild')
-rw-r--r-- | app-laptop/ibam/ibam-0.5.2-r4.ebuild | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/app-laptop/ibam/ibam-0.5.2-r4.ebuild b/app-laptop/ibam/ibam-0.5.2-r4.ebuild new file mode 100644 index 000000000000..2076603b9f60 --- /dev/null +++ b/app-laptop/ibam/ibam-0.5.2-r4.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +PATCH_LEVEL="2.1" + +inherit toolchain-funcs + +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 + x11-libs/gdk-pixbuf + x11-libs/gtk+:2 + )" +DEPEND=" + ${RDEPEND} + gkrellm? ( virtual/pkgconfig )" + +src_prepare() { + eapply \ + "${FILESDIR}"/${P}-build.patch \ + "${WORKDIR}"/${PN}_${PV}-${PATCH_LEVEL}.diff + + eapply debian/patches/02*.dpatch + eapply debian/patches/03*.dpatch + eapply debian/patches/05*.dpatch + + eapply_user +} + +src_compile() { + tc-export CXX + 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() { + elog + elog "You will need to install sci-visualization/gnuplot if you wish to use" + elog "the --plot argument to ibam." + elog +} |