Gentoo Archives: gentoo-commits

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-block/btrace/
Date: Sat, 01 Oct 2016 20:48:39
Message-Id: 1466620506.7824128e72e4bba7b28306727a122bf48aebdebf.robbat2@gentoo
1 commit: 7824128e72e4bba7b28306727a122bf48aebdebf
2 Author: Jan Chren <dev.rindeal <AT> gmail <DOT> com>
3 AuthorDate: Tue Jun 21 21:52:39 2016 +0000
4 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 22 18:35:06 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7824128e
7
8 sys-block/btrace: update
9
10 - EAPI6
11 - HOMEPAGE
12 - arm
13
14 sys-block/btrace/btrace-1.1.0-r1.ebuild | 46 +++++++++++++++++++++++++++++++++
15 1 file changed, 46 insertions(+)
16
17 diff --git a/sys-block/btrace/btrace-1.1.0-r1.ebuild b/sys-block/btrace/btrace-1.1.0-r1.ebuild
18 new file mode 100644
19 index 00000000..0278e0c
20 --- /dev/null
21 +++ b/sys-block/btrace/btrace-1.1.0-r1.ebuild
22 @@ -0,0 +1,46 @@
23 +# Copyright 1999-2016 Gentoo Foundation
24 +# Distributed under the terms of the GNU General Public License v2
25 +# $Id$
26 +
27 +EAPI=6
28 +
29 +inherit eutils toolchain-funcs flag-o-matic linux-info
30 +
31 +MY_PN="blktrace"
32 +MY_P="${MY_PN}-${PV}"
33 +
34 +DESCRIPTION="btrace can show detailed info about what is happening on a block device io queue"
35 +HOMEPAGE="http://git.kernel.dk/cgit/blktrace/"
36 +SRC_URI="http://brick.kernel.dk/snaps/${MY_P}.tar.bz2"
37 +LICENSE="GPL-2"
38 +SLOT="0"
39 +
40 +KEYWORDS="~amd64 ~arm ~ppc ~x86"
41 +IUSE="doc"
42 +
43 +RDEPEND="dev-libs/libaio"
44 +# This is a Linux specific app!
45 +DEPEND="${RDEPEND}
46 + sys-kernel/linux-headers
47 + doc? ( virtual/latex-base app-text/dvipdfm )"
48 +S="${WORKDIR}/${MY_P}"
49 +
50 +CONFIG_CHECK="~BLK_DEV_IO_TRACE"
51 +WARNING_BLK_DEV_IO_TRACE="you need to enable BLK_DEV_IO_TRACE kernel option if you want to gather traces from this machine"
52 +
53 +PATCHES=( "${FILESDIR}"/${PN}-1.1.0-ldflags-parallel-make.patch )
54 +
55 +src_compile() {
56 + append-flags -DLVM_REMAP_WORKAROUND -W -I"${S}"
57 + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
58 + if use doc; then
59 + export VARTEXFONTS="${T}/fonts"
60 + emake docs
61 + fi
62 +}
63 +
64 +src_install() {
65 + emake install DESTDIR="${D}" prefix="/usr" mandir="/usr/share/man"
66 + einstalldocs
67 + use doc && dodoc doc/blktrace.pdf btt/doc/btt.pdf
68 +}