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

Diff of /dev-util/systemtap/systemtap-1.7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.2 Revision 1.3
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/dev-util/systemtap/Attic/systemtap-1.7.ebuild,v 1.2 2012/02/13 20:32:54 xarthisius Exp $ 3# $Header: /var/cvsroot/gentoo-x86/dev-util/systemtap/Attic/systemtap-1.7.ebuild,v 1.3 2012/03/27 11:40:43 scarabeus Exp $
4 4
5EAPI="2" 5EAPI=4
6 6
7inherit linux-info 7inherit linux-info autotools
8 8
9DESCRIPTION="A linux trace/probe tool" 9DESCRIPTION="A linux trace/probe tool"
10HOMEPAGE="http://sourceware.org/systemtap/" 10HOMEPAGE="http://sourceware.org/systemtap/"
11if [[ ${PV} = *_pre* ]] # is this a snaphot?
12then
13 # see configure.ac to get the version of the snapshot
14 SRC_URI="http://sources.redhat.com/${PN}/ftp/snapshots/${PN}-${PV/*_pre/}.tar.bz2
15 mirror://gentoo/${PN}-${PV/*_pre/}.tar.bz2" # upstream only keeps four snapshot distfiles around
16 S="${WORKDIR}"/src
17else
18 SRC_URI="http://sources.redhat.com/${PN}/ftp/releases/${P}.tar.gz" 11SRC_URI="http://sources.redhat.com/${PN}/ftp/releases/${P}.tar.gz"
19 # use default S for releases
20fi
21 12
22LICENSE="GPL-2" 13LICENSE="GPL-2"
23SLOT="0" 14SLOT="0"
24KEYWORDS="~alpha ~amd64 ~mips ~ppc ~ppc64 ~x86" 15KEYWORDS="~alpha ~amd64 ~mips ~ppc ~ppc64 ~x86"
25IUSE="sqlite" 16IUSE="sqlite"
26 17
27DEPEND=">=dev-libs/elfutils-0.142 18DEPEND=">=dev-libs/elfutils-0.142
28 sys-libs/libcap 19 sys-libs/libcap
29 sqlite? ( =dev-db/sqlite-3* )" 20 sqlite? ( dev-db/sqlite:3 )"
30RDEPEND="${DEPEND} 21RDEPEND="${DEPEND}
31 virtual/linux-sources" 22 virtual/linux-sources"
32 23
33CONFIG_CHECK="~KPROBES ~RELAY ~DEBUG_FS" 24CONFIG_CHECK="~KPROBES ~RELAY ~DEBUG_FS"
34ERROR_KPROBES="${PN} requires support for KProbes Instrumentation (KPROBES) - this can be enabled in 'Instrumentation Support -> Kprobes'." 25ERROR_KPROBES="${PN} requires support for KProbes Instrumentation (KPROBES) - this can be enabled in 'Instrumentation Support -> Kprobes'."
35ERROR_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)'." 26ERROR_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)'."
36ERROR_DEBUG_FS="${PN} works best with support for Debug Filesystem (DEBUG_FS) - this can be enabled in 'Kernel hacking -> Debug Filesystem'." 27ERROR_DEBUG_FS="${PN} works best with support for Debug Filesystem (DEBUG_FS) - this can be enabled in 'Kernel hacking -> Debug Filesystem'."
37 28
29DOCS="AUTHORS HACKING NEWS README"
30
31src_prepare() {
32 sed -i \
33 -e 's:-Werror::g' \
34 configure.ac Makefile.am \
35 grapher/Makefile.am \
36 runtime/staprun/Makefile.am \
37 buildrun.cxx \
38 runtime/bench2/bench.rb \
39 runtime/bench2/Makefile \
40 testsuite/systemtap.unprivileged/unprivileged_probes.exp \
41 testsuite/systemtap.unprivileged/unprivileged_myproc.exp \
42 testsuite/systemtap.base/stmt_rel_user.exp \
43 testsuite/systemtap.base/sdt_va_args.exp \
44 testsuite/systemtap.base/sdt_misc.exp \
45 testsuite/systemtap.base/sdt.exp \
46 scripts/kprobes_test/gen_code.py
47 eautoreconf
48}
49
38src_configure() { 50src_configure() {
39 econf \ 51 econf \
40 --docdir=/usr/share/doc/${PF} \ 52 --docdir="${EPREFIX}/usr/share/doc/${PF}" \
41 --without-rpm \ 53 --without-rpm \
42 --disable-server \ 54 --disable-server \
43 --disable-docs \ 55 --disable-docs \
44 --disable-refdocs \ 56 --disable-refdocs \
45 --disable-grapher \ 57 --disable-grapher \
46 $(use_enable sqlite) \ 58 $(use_enable sqlite)
47 || die "econf failed"
48} 59}
49
50src_install() {
51 emake install DESTDIR="${D}" || die "make install failed"
52 dodoc AUTHORS HACKING NEWS README
53}

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20