1 |
commit: feb1894a3c53aa647378caabee28c8afb08764b0 |
2 |
Author: Yixun Lan <dlan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 2 13:45:28 2022 +0000 |
4 |
Commit: Yixun Lan <dlan <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 2 13:58:32 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=feb1894a |
7 |
|
8 |
dev-libs/libtraceevent: add 1.6.2 |
9 |
|
10 |
Signed-off-by: Yixun Lan <dlan <AT> gentoo.org> |
11 |
|
12 |
dev-libs/libtraceevent/Manifest | 1 + |
13 |
dev-libs/libtraceevent/libtraceevent-1.6.2.ebuild | 50 +++++++++++++++++++++++ |
14 |
2 files changed, 51 insertions(+) |
15 |
|
16 |
diff --git a/dev-libs/libtraceevent/Manifest b/dev-libs/libtraceevent/Manifest |
17 |
index 47be91c684f0..b8035aeb65a8 100644 |
18 |
--- a/dev-libs/libtraceevent/Manifest |
19 |
+++ b/dev-libs/libtraceevent/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST libtraceevent-1.5.2.tar.gz 135283 BLAKE2B e4202fc3c9b09d20bed375bc1833a4f49b63cf484e63ecf3cc5f1f3950a1de7607464e6c2ae194085e78978e5f480a7ae392a4cde739c3a244367eaf1000f70d SHA512 3804a84d2a4771335ba14a7383f977d641e6437f055837c2faece811b8ef931cfa9d38082bef48d96092aeae8cdcb543222a3042b2c11c41749dddbbb4813d94 |
22 |
+DIST libtraceevent-1.6.2.tar.gz 135857 BLAKE2B c5384d9bb8dc5977cfb412c22d9692ed757f94dcd01b6a93e8368cd3368bf2731c0c4eff764fd81b4627925e0fd370acd509710b538842708836b5d0ce777003 SHA512 8e951f66c339de2bc78c7c7f347f9283553ae62adc9e2bb96de1ed0aaadf91d59b2e93785c5030b0dd6d946488dc5e688d504eba54d674454c808c320127cfbf |
23 |
|
24 |
diff --git a/dev-libs/libtraceevent/libtraceevent-1.6.2.ebuild b/dev-libs/libtraceevent/libtraceevent-1.6.2.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..b9bb4041b4e1 |
27 |
--- /dev/null |
28 |
+++ b/dev-libs/libtraceevent/libtraceevent-1.6.2.ebuild |
29 |
@@ -0,0 +1,50 @@ |
30 |
+# Copyright 2019-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+inherit toolchain-funcs |
36 |
+ |
37 |
+DESCRIPTION="Linux kernel trace event library" |
38 |
+HOMEPAGE="https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/" |
39 |
+ |
40 |
+if [[ ${PV} =~ [9]{4,} ]]; then |
41 |
+ EGIT_REPO_URI="git://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/" |
42 |
+ inherit git-r3 |
43 |
+else |
44 |
+ SRC_URI="https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/snapshot/${P}.tar.gz" |
45 |
+ KEYWORDS="~amd64 ~arm64 ~x86" |
46 |
+fi |
47 |
+ |
48 |
+LICENSE="LGPL-2.1" |
49 |
+SLOT="0" |
50 |
+IUSE="doc" |
51 |
+ |
52 |
+RDEPEND=" |
53 |
+ !<dev-util/trace-cmd-3.0 |
54 |
+" |
55 |
+BDEPEND=" |
56 |
+ doc? ( app-text/xmlto app-text/asciidoc ) |
57 |
+" |
58 |
+ |
59 |
+src_configure() { |
60 |
+ EMAKE_FLAGS=( |
61 |
+ "prefix=${EPREFIX}/usr" |
62 |
+ "libdir=${EPREFIX}/usr/$(get_libdir)" |
63 |
+ "CC=$(tc-getCC)" |
64 |
+ "AR=$(tc-getAR)" |
65 |
+ VERBOSE=1 |
66 |
+ ) |
67 |
+} |
68 |
+ |
69 |
+src_compile() { |
70 |
+ emake "${EMAKE_FLAGS[@]}" |
71 |
+ use doc && emake doc |
72 |
+} |
73 |
+ |
74 |
+src_install() { |
75 |
+ emake "${EMAKE_FLAGS[@]}" DESTDIR="${ED}" install |
76 |
+ # can't prevent installation of the static lib with parameters |
77 |
+ rm "${ED}/usr/$(get_libdir)/libtraceevent.a" || die |
78 |
+ use doc && emake "${EMAKE_FLAGS[@]}" DESTDIR="${ED}" install-doc |
79 |
+} |