1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
7 DESCRIPTION="A library and tools for trace processing"
8 HOMEPAGE="https://research.wand.net.nz/software/libtrace.php"
9 SRC_URI="https://github.com/${PN^}Team/${PN}/archive//${PV/_p/-}.tar.gz -> ${P}.tar.gz"
13 KEYWORDS="~amd64 ~x86"
14 IUSE="doc ncurses numa static-libs"
17 >=net-libs/libpcap-0.8
21 ncurses? ( sys-libs/ncurses:0= )
22 numa? ( sys-process/numactl )
33 "${FILESDIR}"/${PN}-3.0.20-autoconf-1.13.patch
34 "${FILESDIR}"/${PN}-4.0.0-no-examples.patch
35 "${FILESDIR}"/${PN}-4.0.0-with-numa.patch
36 "${FILESDIR}"/${PN}-4.0.9_p1-tinfo.patch
38 S=${WORKDIR}/${P/_p/-}
45 # Comment out FILE_PATTERNS definition (bug #706230)
46 if has_version ~app-doc/doxygen-1.8.16; then
47 sed -i -e '/^FILE_PATTERNS/s|^|#|g' docs/${PN}.doxygen.in || die
49 # Update doxygen configuration
50 doxygen -u docs/libtrace.doxygen.in || die
55 $(use_enable static-libs static) \
64 use doc && dodoc -r docs/doxygen/html
66 find "${D}" -name "*.la" -delete || die