blob: ea0ccf6d6bcfae95e372abf524a5eaffd11b5409 [file] [log] [blame]
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="Library to parse raw Linux kernel trace event formats"
HOMEPAGE="https://www.trace-cmd.org"
SRC_URI="https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/snapshot/${P}.tar.gz"
LICENSE="LGPL-2.1"
MAJOR_VERSION=$(ver_cut 1)
SLOT="0/${MAJOR_VERSION}"
KEYWORDS="*"
IUSE="test"
# Many files provided by this package used to be part of trace-cmd prior to version 3.0.0
RDEPEND="!<dev-util/trace-cmd-3.0.0"
DEPEND="${RDEPEND}
test? ( dev-util/cunit )
"
PATCHES=(
"${FILESDIR}/0001-libtraceevent-Make-sure-32-bit-works-on-64-bit-file-.patch"
)
src_configure() {
export pkgconfig_dir=/usr/$(get_libdir)/pkgconfig
export prefix=/usr
}