/[gentoo-x86]/dev-util/exmap/exmap-0.10.ebuild
Gentoo

Contents of /dev-util/exmap/exmap-0.10.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Wed Sep 19 08:58:36 2012 UTC (8 months, 4 weeks ago) by xmw
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +4 -1 lines
No longer run make clean in kernel dir (bug 431068, reported by Wonko and Andreas Sturmlechner).

(Portage version: 2.1.11.13/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-util/exmap/exmap-0.10.ebuild,v 1.3 2012/05/04 17:51:43 jdhore Exp $
4
5 EAPI=2
6
7 inherit eutils linux-mod
8
9 DESCRIPTION="A memory analysis kernel module with userland tool"
10 HOMEPAGE="http://www.berthels.co.uk/exmap/"
11 SRC_URI="http://www.berthels.co.uk/${PN}/download/${P}.tgz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="gtk"
17
18 RDEPEND="dev-libs/libpcre
19 gtk? ( dev-cpp/gtkmm:2.4
20 x11-libs/gtk+:2 )"
21 DEPEND="${RDEPEND}
22 dev-libs/boost
23 virtual/pkgconfig"
24
25 MODULE_NAMES="exmap(misc:${S}/kernel)"
26 BUILD_TARGETS="clean kernel_modules"
27
28 src_prepare() {
29 # patch find_task_by_pid to pid_task and &proc_root to NULL
30 epatch "${FILESDIR}/${P}-kernel.patch"
31
32 # use $(MAKE), remove -g on CXXFLAGS, clean up CXX/LD invocations
33 epatch "${FILESDIR}/${P}-makefiles.patch"
34
35 # somthing strange between linux-mod supplied ARCH and old kernels
36 # which leads to arch/x86/Makefile: file/dir x86 not found
37 if kernel_is lt 2 6 25 ; then
38 sed -i -e 's:\$(MAKE):unset ARCH ; \$(MAKE):' kernel/Makefile || die
39 fi
40
41 # new gcc include behavior
42 epatch "${FILESDIR}/${P}-gcc.patch"
43
44 # gcc4.5 fails on return false as std::string
45 epatch "${FILESDIR}/${P}-gcc45.patch"
46
47 # fix for 64bit from http://www.kdedevelopers.org/node/4166
48 epatch "${FILESDIR}/${P}-fix64bit.patch"
49
50 # fix underlinking with -Wl,--as-needed
51 epatch "${FILESDIR}/${P}-as-needed.patch"
52
53 # no longer call make clean in kernel source dir
54 epatch "${FILESDIR}/${P}-kernel-3.5.patch"
55
56 rm -v src/{*.so,munged-ls-threeloads,prelinked-amule} || die
57 }
58
59 src_compile() {
60 export KERNEL_DIR
61 linux-mod_src_compile
62
63 emake CXX="$(tc-getCXX)" LD="$(tc-getLD)" -C jutil || die
64 emake CXX="$(tc-getCXX)" LD="$(tc-getLD)" -C src $(use gtk || echo exmtool) || die
65 }
66
67 src_install() {
68 linux-mod_src_install
69
70 dobin src/exmtool || die
71 use gtk && { dobin src/gexmap || die ; }
72 dodoc TODO README || die
73 }
74
75 pkg_postinst() {
76 linux-mod_pkg_postinst
77
78 elog "Please load the exmap kernel module before running exmtool or gexmap."
79 }

  ViewVC Help
Powered by ViewVC 1.1.20