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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Thu Feb 3 03:07:06 2011 UTC (9 years, 2 months ago) by robbat2
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Revamp the parallel build improvements. Bug #335741: respect LDFLAGS. Bug #348281: Fix USE=doc building missing DEPEND. Bug #269121: Remove old versions where SRC_URI is no longer valid.

(Portage version: 2.2.0_alpha19/cvs/Linux x86_64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-block/btrace/btrace-0.99.3.ebuild,v 1.3 2009/09/23 20:29:31 patrick Exp $
4
5 inherit eutils toolchain-funcs flag-o-matic
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 RDEPEND=""
17 # 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 src_compile() {
25 append-flags -DLVM_REMAP_WORKAROUND -W -I"${S}"
26 emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die "emake failed"
27 if use doc; then
28 emake docs || die "emake docs failed"
29 fi
30 }
31
32 src_install() {
33 emake install DESTDIR="${D}" prefix="/usr" mandir="/usr/share/man" || die "emake install failed"
34 dodoc README
35 use doc && dodoc doc/blktrace.pdf btt/doc/btt.pdf
36 }

  ViewVC Help
Powered by ViewVC 1.1.20