From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 744DD13830E for ; Fri, 15 Jul 2016 15:34:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 26DCA21C028; Fri, 15 Jul 2016 15:34:36 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C214921C028 for ; Fri, 15 Jul 2016 15:34:35 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A786E340A9C for ; Fri, 15 Jul 2016 15:34:34 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AB3A6244A for ; Fri, 15 Jul 2016 15:34:29 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1468596843.89ea2cf9cecf67685f815940672b0b35906270a8.robbat2@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-block/btrace/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-block/btrace/btrace-1.1.0-r1.ebuild X-VCS-Directories: sys-block/btrace/ X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: 89ea2cf9cecf67685f815940672b0b35906270a8 X-VCS-Branch: master Date: Fri, 15 Jul 2016 15:34:29 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: d3d4bd9d-3e5c-4004-b6dd-9d82b38e1a52 X-Archives-Hash: 42b3010a4677a6e4f029dfbdd8c33a37 commit: 89ea2cf9cecf67685f815940672b0b35906270a8 Author: Robin H. Johnson gentoo org> AuthorDate: Fri Jul 15 15:34:03 2016 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Fri Jul 15 15:34:03 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89ea2cf9 sys-block/btrace: cleanup ebuild. Package-Manager: portage-2.2.28 sys-block/btrace/btrace-1.1.0-r1.ebuild | 46 +++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/sys-block/btrace/btrace-1.1.0-r1.ebuild b/sys-block/btrace/btrace-1.1.0-r1.ebuild new file mode 100644 index 0000000..0278e0c --- /dev/null +++ b/sys-block/btrace/btrace-1.1.0-r1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit eutils toolchain-funcs flag-o-matic linux-info + +MY_PN="blktrace" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="btrace can show detailed info about what is happening on a block device io queue" +HOMEPAGE="http://git.kernel.dk/cgit/blktrace/" +SRC_URI="http://brick.kernel.dk/snaps/${MY_P}.tar.bz2" +LICENSE="GPL-2" +SLOT="0" + +KEYWORDS="~amd64 ~arm ~ppc ~x86" +IUSE="doc" + +RDEPEND="dev-libs/libaio" +# This is a Linux specific app! +DEPEND="${RDEPEND} + sys-kernel/linux-headers + doc? ( virtual/latex-base app-text/dvipdfm )" +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" + +PATCHES=( "${FILESDIR}"/${PN}-1.1.0-ldflags-parallel-make.patch ) + +src_compile() { + append-flags -DLVM_REMAP_WORKAROUND -W -I"${S}" + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" + if use doc; then + export VARTEXFONTS="${T}/fonts" + emake docs + fi +} + +src_install() { + emake install DESTDIR="${D}" prefix="/usr" mandir="/usr/share/man" + einstalldocs + use doc && dodoc doc/blktrace.pdf btt/doc/btt.pdf +}