Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libtrace/
Date: Sat, 27 Feb 2021 04:12:05
Message-Id: 1614399106.897a8fa82e79f51362bdcf27106d3750ab08debd.sam@gentoo
1 commit: 897a8fa82e79f51362bdcf27106d3750ab08debd
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 27 03:37:25 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 27 04:11:46 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=897a8fa8
7
8 net-libs/libtrace: sync live ebuild
9
10 Package-Manager: Portage-3.0.15, Repoman-3.0.2
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 net-libs/libtrace/libtrace-9999.ebuild | 41 +++++++++++++++++++---------------
14 1 file changed, 23 insertions(+), 18 deletions(-)
15
16 diff --git a/net-libs/libtrace/libtrace-9999.ebuild b/net-libs/libtrace/libtrace-9999.ebuild
17 index 948b4a14008..08a6c74711b 100644
18 --- a/net-libs/libtrace/libtrace-9999.ebuild
19 +++ b/net-libs/libtrace/libtrace-9999.ebuild
20 @@ -2,18 +2,26 @@
21 # Distributed under the terms of the GNU General Public License v2
22
23 EAPI=7
24 +
25 inherit autotools git-r3
26
27 DESCRIPTION="A library and tools for trace processing"
28 HOMEPAGE="https://research.wand.net.nz/software/libtrace.php"
29 +S="${WORKDIR}/${P/_beta/}"
30 EGIT_REPO_URI="https://github.com/LibtraceTeam/libtrace"
31 EGIT_SUBMODULES=()
32
33 LICENSE="LGPL-3"
34 SLOT="0"
35 -KEYWORDS=""
36 -IUSE="doc ncurses numa static-libs"
37 +IUSE="doc ncurses numa"
38
39 +BDEPEND="
40 + app-doc/doxygen[dot]
41 + sys-devel/flex
42 + virtual/os-headers
43 + virtual/pkgconfig
44 + virtual/yacc
45 +"
46 RDEPEND="
47 >=net-libs/libpcap-0.8
48 dev-libs/libyaml
49 @@ -22,21 +30,14 @@ RDEPEND="
50 ncurses? ( sys-libs/ncurses:0= )
51 numa? ( sys-process/numactl )
52 "
53 -DEPEND="
54 - ${RDEPEND}
55 - app-doc/doxygen[dot]
56 - sys-devel/flex
57 - virtual/os-headers
58 - virtual/pkgconfig
59 - virtual/yacc
60 -"
61 +DEPEND="${RDEPEND}"
62 +
63 PATCHES=(
64 - "${FILESDIR}"/${PN}-3.0.20-autoconf-1.13.patch
65 - "${FILESDIR}"/${PN}-4.0.0-no-examples.patch
66 - "${FILESDIR}"/${PN}-4.0.0-with-numa.patch
67 - "${FILESDIR}"/${PN}-4.0.9_p1-tinfo.patch
68 + "${FILESDIR}"/${PN}-3.0.20-autoconf-1.13.patch
69 + "${FILESDIR}"/${PN}-4.0.0-no-examples.patch
70 + "${FILESDIR}"/${PN}-4.0.0-with-numa.patch
71 + "${FILESDIR}"/${PN}-4.0.9_p1-tinfo.patch
72 )
73 -S=${WORKDIR}/${P/_beta/}
74
75 src_prepare() {
76 default
77 @@ -47,22 +48,26 @@ src_prepare() {
78 if has_version ~app-doc/doxygen-1.8.16; then
79 sed -i -e '/^FILE_PATTERNS/s|^|#|g' docs/${PN}.doxygen.in || die
80 fi
81 +
82 # Update doxygen configuration
83 doxygen -u docs/libtrace.doxygen.in || die
84 }
85
86 src_configure() {
87 econf \
88 - $(use_enable static-libs static) \
89 $(use_with ncurses) \
90 $(use_with numa) \
91 + --disable-static \
92 --with-man
93 }
94
95 src_install() {
96 default
97
98 - use doc && dodoc -r docs/doxygen/html
99 + if use doc ; then
100 + docinto html
101 + dodoc -r docs/doxygen/html
102 + fi
103
104 - find "${D}" -name "*.la" -delete || die
105 + find "${ED}" -name "*.la" -delete || die
106 }