Сравнение libtraceevent-1.7.2 с libtraceevent-1.7.3
/usr/portage/dev-libs/libtraceevent/libtraceevent-1.7.3.ebuild 2023-10-09 14:52:29.532368351 +0300 | ||
---|---|---|
3 | 3 | |
4 | 4 |
EAPI=8 |
5 | 5 | |
6 |
inherit toolchain-funcs |
|
6 |
inherit meson |
|
7 | 7 | |
8 | 8 |
DESCRIPTION="Linux kernel trace event library" |
9 | 9 |
HOMEPAGE="https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/" |
... | ... | |
13 | 13 |
inherit git-r3 |
14 | 14 |
else |
15 | 15 |
SRC_URI="https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/snapshot/${P}.tar.gz" |
16 |
KEYWORDS="~amd64 ~arm64 ~riscv ~x86" |
|
16 |
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" |
|
17 | 17 |
fi |
18 | 18 | |
19 | 19 |
LICENSE="LGPL-2.1" |
... | ... | |
25 | 25 |
!<dev-util/trace-cmd-3.0 |
26 | 26 |
" |
27 | 27 |
BDEPEND=" |
28 |
doc? ( |
|
29 |
app-text/asciidoc |
|
30 |
app-text/xmlto |
|
31 |
) |
|
28 |
app-text/asciidoc |
|
29 |
app-text/xmlto |
|
32 | 30 |
test? ( dev-util/cunit ) |
33 | 31 |
" |
34 | 32 | |
35 | 33 |
src_configure() { |
36 |
EMAKE_FLAGS=( |
|
37 |
"prefix=${EPREFIX}/usr" |
|
38 |
"libdir=${EPREFIX}/usr/$(get_libdir)" |
|
39 |
"CC=$(tc-getCC)" |
|
40 |
"AR=$(tc-getAR)" |
|
41 |
VERBOSE=1 |
|
34 |
local emesonargs=( |
|
35 |
-Dasciidoctor=false |
|
42 | 36 |
) |
43 |
} |
|
44 | 37 | |
45 |
src_compile() { |
|
46 |
emake "${EMAKE_FLAGS[@]}" |
|
47 |
use doc && emake "${EMAKE_FLAGS[@]}" doc |
|
48 |
} |
|
49 | ||
50 |
src_test() { |
|
51 |
emake "${EMAKE_FLAGS[@]}" test |
|
38 |
# TODO: get docs & tests optional upstream |
|
39 |
meson_src_configure |
|
52 | 40 |
} |
53 | 41 | |
54 | 42 |
src_install() { |
55 |
emake "${EMAKE_FLAGS[@]}" DESTDIR="${ED}" install |
|
56 |
# can't prevent installation of the static lib with parameters |
|
57 |
rm "${ED}/usr/$(get_libdir)/libtraceevent.a" || die |
|
58 |
use doc && emake "${EMAKE_FLAGS[@]}" DESTDIR="${ED}" install-doc |
|
43 |
# TODO: get docs & tests optional upstream |
|
44 |
meson_src_install |
|
45 | ||
46 |
find "${ED}" -type f -name '*.a' -delete || die |
|
59 | 47 |
} |