diff options
author | 2011-01-25 04:29:56 +0000 | |
---|---|---|
committer | 2011-01-25 04:29:56 +0000 | |
commit | 034dd29947a303a99869512297b7ce036578e058 (patch) | |
tree | 7af06c42b58c83384c0e910537de15681a3e949c /sys-block/btrace/btrace-1.0.1.ebuild | |
parent | Bug #267780: Fix typo in init script. (diff) | |
download | gentoo-2-034dd29947a303a99869512297b7ce036578e058.tar.gz gentoo-2-034dd29947a303a99869512297b7ce036578e058.tar.bz2 gentoo-2-034dd29947a303a99869512297b7ce036578e058.zip |
Version bump.
(Portage version: 2.2.0_alpha19/cvs/Linux x86_64)
Diffstat (limited to 'sys-block/btrace/btrace-1.0.1.ebuild')
-rw-r--r-- | sys-block/btrace/btrace-1.0.1.ebuild | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/sys-block/btrace/btrace-1.0.1.ebuild b/sys-block/btrace/btrace-1.0.1.ebuild new file mode 100644 index 000000000000..8ea4b6420684 --- /dev/null +++ b/sys-block/btrace/btrace-1.0.1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-block/btrace/btrace-1.0.1.ebuild,v 1.1 2011/01/25 04:29:56 robbat2 Exp $ + +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 sys-kernel/mips-headers ) + doc? ( virtual/latex-base ) + 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_unpack() { + unpack ${A} + cd "${S}" + EPATCH_OPTS="-p1" epatch "${FILESDIR}"/${PN}-1.0.0-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 +} |