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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Sat Jun 27 09:48:05 2015 UTC (4 years, 8 months ago) by ago
Branch: MAIN
Changes since 1.2: +3 -3 lines
Stable for amd64, wrt bug #532544

(Portage version: 2.2.18/cvs/Linux x86_64, RepoMan options: --include-arches="amd64", signed Manifest commit with key 7194459F)

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

  ViewVC Help
Powered by ViewVC 1.1.20