Сравнение libtracefs-1.6.4 с libtracefs-1.7.0
/usr/portage/dev-libs/libtracefs/libtracefs-1.7.0.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 file system library" |
9 | 9 |
HOMEPAGE="https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/" |
... | ... | |
13 | 13 |
inherit git-r3 |
14 | 14 |
else |
15 | 15 |
SRC_URI="https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.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" |
20 | 20 |
SLOT="0" |
21 |
IUSE="doc" |
|
22 | 21 | |
22 |
# Please double check the minimum libtraceevent version! |
|
23 | 23 |
RDEPEND=" |
24 | 24 |
!<dev-util/trace-cmd-3.1.4-r2 |
25 |
>=dev-libs/libtraceevent-1.3.0 |
|
25 |
>=dev-libs/libtraceevent-1.7.0 |
|
26 | 26 |
" |
27 | 27 |
DEPEND="${RDEPEND}" |
28 | 28 |
# source-highlight is needed, see bug https://bugs.gentoo.org/865469 |
29 | 29 |
BDEPEND=" |
30 |
app-text/asciidoc |
|
31 |
app-text/xmlto |
|
32 |
dev-util/source-highlight |
|
33 |
sys-devel/bison |
|
34 |
sys-devel/flex |
|
30 | 35 |
virtual/pkgconfig |
31 |
doc? ( app-text/xmlto app-text/asciidoc dev-util/source-highlight ) |
|
32 | 36 |
" |
33 | 37 | |
34 | 38 |
src_configure() { |
35 |
EMAKE_FLAGS=( |
|
36 |
"prefix=${EPREFIX}/usr" |
|
37 |
"libdir=${EPREFIX}/usr/$(get_libdir)" |
|
38 |
"CC=$(tc-getCC)" |
|
39 |
"AR=$(tc-getAR)" |
|
40 |
VERBOSE=1 |
|
39 |
local emesonargs=( |
|
40 |
-Dasciidoctor=false |
|
41 | 41 |
) |
42 |
} |
|
43 | 42 | |
44 |
src_compile() { |
|
45 |
emake "${EMAKE_FLAGS[@]}" |
|
46 |
use doc && emake doc |
|
43 |
# TODO: get docs & tests optional upstream |
|
44 |
meson_src_configure |
|
47 | 45 |
} |
48 | 46 | |
49 | 47 |
src_install() { |
50 |
emake "${EMAKE_FLAGS[@]}" DESTDIR="${ED}" install |
|
51 |
# can't prevent installation of the static lib with parameters |
|
52 |
rm "${ED}/usr/$(get_libdir)/libtracefs.a" || die |
|
53 |
# install-doc is wrong target, see https://bugs.gentoo.org/865465 |
|
54 |
use doc && emake "${EMAKE_FLAGS[@]}" DESTDIR="${ED}" install_doc |
|
48 |
meson_src_install |
|
49 | ||
50 |
find "${ED}" -type f -name '*.a' -delete || die |
|
55 | 51 |
} |