diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2012-01-23 00:55:39 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2012-01-23 00:55:39 +0000 |
commit | 36c925a1fff072b08a79e52bae6e55e0431cd166 (patch) | |
tree | 54a6418092ebc87d5728a2d0960a400a9752c4fe /app-laptop | |
parent | Restore SRC_TEST="do" because tests run fine here. (diff) | |
download | gentoo-2-36c925a1fff072b08a79e52bae6e55e0431cd166.tar.gz gentoo-2-36c925a1fff072b08a79e52bae6e55e0431cd166.tar.bz2 gentoo-2-36c925a1fff072b08a79e52bae6e55e0431cd166.zip |
Fix sysfs detection problems (by migrating to Debian patchset) wrt #359891 by Naohiro Aota
(Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
Diffstat (limited to 'app-laptop')
-rw-r--r-- | app-laptop/ibam/ChangeLog | 11 | ||||
-rw-r--r-- | app-laptop/ibam/files/ibam-0.5.2-build.patch | 42 | ||||
-rw-r--r-- | app-laptop/ibam/ibam-0.5.2-r3.ebuild | 63 |
3 files changed, 114 insertions, 2 deletions
diff --git a/app-laptop/ibam/ChangeLog b/app-laptop/ibam/ChangeLog index 8d93f8214280..830c31ca5de3 100644 --- a/app-laptop/ibam/ChangeLog +++ b/app-laptop/ibam/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for app-laptop/ibam -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-laptop/ibam/ChangeLog,v 1.8 2011/03/20 15:34:24 aidecoe Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/ibam/ChangeLog,v 1.9 2012/01/23 00:55:39 ssuominen Exp $ + +*ibam-0.5.2-r3 (23 Jan 2012) + + 23 Jan 2012; Samuli Suominen <ssuominen@gentoo.org> +ibam-0.5.2-r3.ebuild, + +files/ibam-0.5.2-build.patch: + Fix sysfs detection problems (by migrating to Debian patchset) wrt #359891 by + Naohiro Aota *ibam-0.5.2-r2 (20 Mar 2011) diff --git a/app-laptop/ibam/files/ibam-0.5.2-build.patch b/app-laptop/ibam/files/ibam-0.5.2-build.patch new file mode 100644 index 000000000000..77854b5f3d5a --- /dev/null +++ b/app-laptop/ibam/files/ibam-0.5.2-build.patch @@ -0,0 +1,42 @@ +--- Makefile ++++ Makefile +@@ -17,8 +17,8 @@ + # + IBAM_VERSION=0.5.2 + +-CC=g++ +-CFLAGS=-O3 -DIBAM_VERSION=\"$(IBAM_VERSION)\" -Wall ++CXX?=g++ ++CXXFLAGS+=-DIBAM_VERSION=\"$(IBAM_VERSION)\" -Wall + + PREFIX=/usr + +@@ -30,23 +30,23 @@ + all: ibam + + ibam: ibam.cpp ibam.inl ibam.hpp +- $(CC) $(CFLAGS) ibam.cpp -o ibam ++ $(CXX) $(LDFLAGS) $(CXXFLAGS) ibam.cpp -o ibam + + krell: ibam-krell.so + + ibam-krell.so: ibam-krell.o +- $(CC) $(CFLAGS) -fPIC -shared -Wl -o ibam-krell.so ibam-krell.o ++ $(CXX) $(LDFLAGS) $(CXXFLAGS) -fPIC -shared -Wl -o ibam-krell.so ibam-krell.o + + ibam-krell.o: ibam-krell.cpp ibam.hpp ibam.inl +- $(CC) $(CFLAGS) -fPIC `pkg-config gtk+-2.0 --cflags` `gdk-pixbuf-config --cflags` -c ibam-krell.cpp ++ $(CXX) $(CXXFLAGS) -fPIC `pkg-config gtk+-2.0 --cflags` `gdk-pixbuf-config --cflags` -c ibam-krell.cpp + + krell1: ibam-krell1.so + + ibam-krell1.so: ibam-krell1.o +- $(CC) $(CFLAGS) -shared -Wl -o ibam-krell1.so ibam-krell1.o ++ $(CXX) $(LDFLAGS) $(CXXFLAGS) -shared -Wl -o ibam-krell1.so ibam-krell1.o + + ibam-krell1.o: ibam-krell1.cpp ibam.hpp ibam.inl +- $(CC) $(CFLAGS) -fPIC `gtk-config --cflags` `imlib-config --cflags-gdk` -c ibam-krell1.cpp ++ $(CXX) $(CXXFLAGS) -fPIC `gtk-config --cflags` `imlib-config --cflags-gdk` -c ibam-krell1.cpp + + install: ibam + $(INSTALL) ./ibam $(PREFIX)/local/bin/ diff --git a/app-laptop/ibam/ibam-0.5.2-r3.ebuild b/app-laptop/ibam/ibam-0.5.2-r3.ebuild new file mode 100644 index 000000000000..eba631af0a3b --- /dev/null +++ b/app-laptop/ibam/ibam-0.5.2-r3.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/ibam/ibam-0.5.2-r3.ebuild,v 1.1 2012/01/23 00:55:39 ssuominen Exp $ + +EAPI=4 + +PATCH_LEVEL=2 + +inherit eutils multilib 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? ( dev-util/pkgconfig )" + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-build.patch \ + "${WORKDIR}"/${PN}_${PV}-${PATCH_LEVEL}.diff + + local f + for f in `find . -name '*.dpatch'`; do + epatch ${f} + done +} + +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 +} |