/[gentoo-x86]/sys-block/btrace/btrace-1.0.0.ebuild
Gentoo

Contents of /sys-block/btrace/btrace-1.0.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Wed Sep 23 20:29:31 2009 UTC (10 years, 8 months ago) by patrick
Branch: MAIN
Changes since 1.1: +2 -2 lines
Remove virtual/libc
(Portage version: 2.2_rc41/cvs/Linux x86_64)

1 robbat2 1.1 # Copyright 1999-2009 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 patrick 1.2 # $Header: /var/cvsroot/gentoo-x86/sys-block/btrace/btrace-1.0.0.ebuild,v 1.1 2009/04/13 00:59:54 robbat2 Exp $
4 robbat2 1.1
5     inherit eutils toolchain-funcs flag-o-matic linux-info
6    
7     DESCRIPTION="btrace can show detailed info about what is happening on a block device io queue."
8     HOMEPAGE="http://www.kernel.org/pub/linux/kernel/people/axboe/blktrace/"
9     MY_PN="blktrace"
10     MY_P="${MY_PN}-${PV}"
11     SRC_URI="http://brick.kernel.dk/snaps/${MY_P}.tar.bz2"
12     LICENSE="GPL-2"
13     SLOT="0"
14     KEYWORDS="~amd64 ~ppc ~x86"
15     IUSE="doc"
16 patrick 1.2 RDEPEND=""
17 robbat2 1.1 # This is a Linux specific app!
18     DEPEND="${RDEPEND}
19     || ( sys-kernel/linux-headers sys-kernel/mips-headers )
20     doc? ( virtual/latex-base )
21     dev-libs/libaio"
22     S="${WORKDIR}/${MY_PN}"
23    
24     CONFIG_CHECK="~BLK_DEV_IO_TRACE"
25     WARNING_BLK_DEV_IO_TRACE="you need to enable BLK_DEV_IO_TRACE kernel option if you want to gather traces from this machine"
26    
27     src_unpack() {
28     unpack ${A}
29     epatch "${FILESDIR}"/${PN}-1.0.0-parallel-make.patch
30     }
31    
32     src_compile() {
33     append-flags -DLVM_REMAP_WORKAROUND -W -I"${S}"
34     emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die "emake failed"
35     if use doc; then
36     export VARTEXFONTS="${T}/fonts"
37     emake docs || die "emake docs failed"
38     fi
39     }
40    
41     src_install() {
42     emake install DESTDIR="${D}" prefix="/usr" mandir="/usr/share/man" || die "emake install failed"
43     dodoc README
44     use doc && dodoc doc/blktrace.pdf btt/doc/btt.pdf
45     }

  ViewVC Help
Powered by ViewVC 1.1.20