1 |
commit: e0c65f4377832ca0fab3ba02f26b174263df65b6 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 28 08:12:14 2017 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 28 08:13:12 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0c65f43 |
7 |
|
8 |
net-libs/libtrace: Install most headers in subdir (bug #604660). |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
.../libtrace/files/libtrace-4.0.0-headers.patch | 14 +++++ |
13 |
net-libs/libtrace/libtrace-4.0.0-r1.ebuild | 60 ++++++++++++++++++++++ |
14 |
2 files changed, 74 insertions(+) |
15 |
|
16 |
diff --git a/net-libs/libtrace/files/libtrace-4.0.0-headers.patch b/net-libs/libtrace/files/libtrace-4.0.0-headers.patch |
17 |
new file mode 100644 |
18 |
index 0000000000..589bf97cb0 |
19 |
--- /dev/null |
20 |
+++ b/net-libs/libtrace/files/libtrace-4.0.0-headers.patch |
21 |
@@ -0,0 +1,14 @@ |
22 |
+diff --git a/lib/Makefile.am b/lib/Makefile.am |
23 |
+index 5a5ca35..6c0a8f2 100644 |
24 |
+--- a/lib/Makefile.am |
25 |
++++ b/lib/Makefile.am |
26 |
+@@ -1,6 +1,7 @@ |
27 |
+ lib_LTLIBRARIES = libtrace.la |
28 |
+-include_HEADERS = libtrace.h dagformat.h lt_inttypes.h daglegacy.h \ |
29 |
+- rt_protocol.h erftypes.h libtrace_parallel.h \ |
30 |
++include_HEADERS = libtrace.h libtrace_parallel.h |
31 |
++pkginclude_HEADERS = dagformat.h lt_inttypes.h daglegacy.h \ |
32 |
++ rt_protocol.h erftypes.h \ |
33 |
+ data-struct/ring_buffer.h data-struct/object_cache.h \ |
34 |
+ data-struct/vector.h data-struct/message_queue.h \ |
35 |
+ data-struct/deque.h data-struct/linked_list.h \ |
36 |
|
37 |
diff --git a/net-libs/libtrace/libtrace-4.0.0-r1.ebuild b/net-libs/libtrace/libtrace-4.0.0-r1.ebuild |
38 |
new file mode 100644 |
39 |
index 0000000000..749f44a964 |
40 |
--- /dev/null |
41 |
+++ b/net-libs/libtrace/libtrace-4.0.0-r1.ebuild |
42 |
@@ -0,0 +1,60 @@ |
43 |
+# Copyright 1999-2017 Gentoo Foundation |
44 |
+# Distributed under the terms of the GNU General Public License v2 |
45 |
+# $Id$ |
46 |
+ |
47 |
+EAPI=6 |
48 |
+inherit autotools eutils |
49 |
+ |
50 |
+DESCRIPTION="A library and tools for trace processing" |
51 |
+HOMEPAGE="http://research.wand.net.nz/software/libtrace.php" |
52 |
+SRC_URI="http://research.wand.net.nz/software/${PN}/${P/_/-}.tar.gz" |
53 |
+ |
54 |
+LICENSE="GPL-2" |
55 |
+SLOT="0" |
56 |
+KEYWORDS="~amd64 ~x86" |
57 |
+IUSE="doc ncurses numa static-libs" |
58 |
+ |
59 |
+RDEPEND=" |
60 |
+ >=net-libs/libpcap-0.8 |
61 |
+ dev-libs/openssl:0= |
62 |
+ ncurses? ( sys-libs/ncurses:0= ) |
63 |
+ net-libs/wandio |
64 |
+ numa? ( sys-process/numactl ) |
65 |
+" |
66 |
+DEPEND=" |
67 |
+ ${RDEPEND} |
68 |
+ app-doc/doxygen |
69 |
+ sys-devel/flex |
70 |
+ virtual/pkgconfig |
71 |
+ virtual/yacc |
72 |
+" |
73 |
+PATCHES=( |
74 |
+ "${FILESDIR}"/${PN}-3.0.20-autoconf-1.13.patch |
75 |
+ "${FILESDIR}"/${PN}-3.0.20-tinfo.patch |
76 |
+ "${FILESDIR}"/${PN}-4.0.0-headers.patch |
77 |
+ "${FILESDIR}"/${PN}-4.0.0-no-examples.patch |
78 |
+ "${FILESDIR}"/${PN}-4.0.0-with-numa.patch |
79 |
+) |
80 |
+S=${WORKDIR}/${P/_beta/} |
81 |
+ |
82 |
+src_prepare() { |
83 |
+ default |
84 |
+ |
85 |
+ eautoreconf |
86 |
+} |
87 |
+ |
88 |
+src_configure() { |
89 |
+ econf \ |
90 |
+ $(use_enable static-libs static) \ |
91 |
+ $(use_with ncurses) \ |
92 |
+ $(use_with numa) \ |
93 |
+ --with-man |
94 |
+} |
95 |
+ |
96 |
+src_install() { |
97 |
+ default |
98 |
+ |
99 |
+ use doc && dodoc -r docs/doxygen/html |
100 |
+ |
101 |
+ prune_libtool_files --modules |
102 |
+} |