summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2012-02-21 08:11:00 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2012-02-21 08:11:00 +0000
commit40fb2ab119317fb0c186f905333801db8d27d84a (patch)
tree4397e4e5bf632666ad4c1fe6808cacf20c470827 /sys-block/btrace
parentRestricting jython (diff)
downloadgentoo-2-40fb2ab119317fb0c186f905333801db8d27d84a.tar.gz
gentoo-2-40fb2ab119317fb0c186f905333801db8d27d84a.tar.bz2
gentoo-2-40fb2ab119317fb0c186f905333801db8d27d84a.zip
Version bump.
(Portage version: 2.2.0_alpha87/cvs/Linux x86_64)
Diffstat (limited to 'sys-block/btrace')
-rw-r--r--sys-block/btrace/ChangeLog9
-rw-r--r--sys-block/btrace/btrace-1.0.3.ebuild46
2 files changed, 53 insertions, 2 deletions
diff --git a/sys-block/btrace/ChangeLog b/sys-block/btrace/ChangeLog
index 022b228839db..66da0e6abd6e 100644
--- a/sys-block/btrace/ChangeLog
+++ b/sys-block/btrace/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-block/btrace
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-block/btrace/ChangeLog,v 1.23 2011/02/17 09:09:56 tomka Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-block/btrace/ChangeLog,v 1.24 2012/02/21 08:11:00 robbat2 Exp $
+
+*btrace-1.0.3 (21 Feb 2012)
+
+ 21 Feb 2012; Robin H. Johnson <robbat2@gentoo.org> +btrace-1.0.3.ebuild:
+ Version bump.
17 Feb 2011; Thomas Kahle <tomka@gentoo.org> btrace-1.0.1-r1.ebuild:
x86 stable per bug 353581
diff --git a/sys-block/btrace/btrace-1.0.3.ebuild b/sys-block/btrace/btrace-1.0.3.ebuild
new file mode 100644
index 000000000000..9b5b4f89526c
--- /dev/null
+++ b/sys-block/btrace/btrace-1.0.3.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-block/btrace/btrace-1.0.3.ebuild,v 1.1 2012/02/21 08:11:00 robbat2 Exp $
+
+EAPI=2
+
+inherit eutils toolchain-funcs flag-o-matic linux-info
+
+DESCRIPTION="btrace can show detailed info about what is happening on a block device io queue."
+HOMEPAGE="http://www.kernel.org/pub/linux/kernel/people/axboe/blktrace/"
+MY_PN="blktrace"
+MY_P="${MY_PN}-${PV}"
+SRC_URI="http://brick.kernel.dk/snaps/${MY_P}.tar.bz2"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="doc"
+RDEPEND=""
+# This is a Linux specific app!
+DEPEND="${RDEPEND}
+ sys-kernel/linux-headers
+ doc? ( virtual/latex-base app-text/dvipdfm )
+ dev-libs/libaio"
+S="${WORKDIR}/${MY_P}"
+
+CONFIG_CHECK="~BLK_DEV_IO_TRACE"
+WARNING_BLK_DEV_IO_TRACE="you need to enable BLK_DEV_IO_TRACE kernel option if you want to gather traces from this machine"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-1.0.1-ldflags-parallel-make.patch
+}
+
+src_compile() {
+ append-flags -DLVM_REMAP_WORKAROUND -W -I"${S}"
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die "emake failed"
+ if use doc; then
+ export VARTEXFONTS="${T}/fonts"
+ emake docs || die "emake docs failed"
+ fi
+}
+
+src_install() {
+ emake install DESTDIR="${D}" prefix="/usr" mandir="/usr/share/man" || die "emake install failed"
+ dodoc README
+ use doc && dodoc doc/blktrace.pdf btt/doc/btt.pdf
+}