/[gentoo-x86]/dev-util/systemtap/systemtap-2.5.ebuild
Gentoo

Contents of /dev-util/systemtap/systemtap-2.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Aug 6 05:42:26 2014 UTC (3 years, 8 months ago) by patrick
Branch: MAIN
CVS Tags: HEAD
Bump

(Portage version: 2.2.11-r1/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-util/systemtap/systemtap-2.4-r1.ebuild,v 1.5 2014/07/22 19:28:54 pacho Exp $
4
5 EAPI=5
6
7 PYTHON_COMPAT=( python2_7 )
8
9 inherit linux-info autotools eutils python-single-r1
10
11 DESCRIPTION="A linux trace/probe tool"
12 HOMEPAGE="http://www.sourceware.org/systemtap/"
13 SRC_URI="http://www.sourceware.org/${PN}/ftp/releases/${P}.tar.gz"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
18 IUSE="sqlite"
19
20 RDEPEND=">=dev-libs/elfutils-0.142
21 sys-libs/libcap
22 ${PYTHON_DEPS}
23 sqlite? ( dev-db/sqlite:3 )"
24 DEPEND="${RDEPEND}
25 >=sys-devel/gettext-0.18.2"
26
27 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
28
29 CONFIG_CHECK="~KPROBES ~RELAY ~DEBUG_FS"
30 ERROR_KPROBES="${PN} requires support for KProbes Instrumentation (KPROBES) - this can be enabled in 'Instrumentation Support -> Kprobes'."
31 ERROR_RELAY="${PN} works with support for user space relay support (RELAY) - this can be enabled in 'General setup -> Kernel->user space relay support (formerly relayfs)'."
32 ERROR_DEBUG_FS="${PN} works best with support for Debug Filesystem (DEBUG_FS) - this can be enabled in 'Kernel hacking -> Debug Filesystem'."
33
34 DOCS="AUTHORS HACKING NEWS README"
35
36 pkg_setup() {
37 linux-info_pkg_setup
38 python-single-r1_pkg_setup
39 }
40
41 src_prepare() {
42 python_fix_shebang .
43
44 sed -i \
45 -e 's:-Werror::g' \
46 configure.ac \
47 Makefile.am \
48 staprun/Makefile.am \
49 stapdyn/Makefile.am \
50 buildrun.cxx \
51 testsuite/systemtap.unprivileged/unprivileged_probes.exp \
52 testsuite/systemtap.unprivileged/unprivileged_myproc.exp \
53 testsuite/systemtap.base/stmt_rel_user.exp \
54 testsuite/systemtap.base/sdt_va_args.exp \
55 testsuite/systemtap.base/sdt_misc.exp \
56 testsuite/systemtap.base/sdt.exp \
57 scripts/kprobes_test/gen_code.py \
58 || die "Failed to clean up sources"
59 eautoreconf
60 }
61
62 src_configure() {
63 econf \
64 --docdir="${EPREFIX}/usr/share/doc/${PF}" \
65 --without-rpm \
66 --disable-server \
67 --disable-docs \
68 --disable-refdocs \
69 --disable-grapher \
70 $(use_enable sqlite)
71 }

  ViewVC Help
Powered by ViewVC 1.1.20