Сравнение libaxc-0.3.5 с libaxc-0.3.6

/usr/portage/net-libs/libaxc/libaxc-0.3.6.ebuild 2023-10-09 14:52:34.476368476 +0300
3 3

  
4 4
EAPI=7
5 5

  
6
inherit toolchain-funcs
7

  
6 8
MY_P="axc-${PV}"
7 9
DESCRIPTION="Client library for libsignal-protocol-c"
8 10
HOMEPAGE="https://github.com/gkdr/axc"
......
10 12

  
11 13
LICENSE="GPL-3"  # not GPL-3+
12 14
SLOT="0"
13
KEYWORDS="~amd64 ~x86"
15
KEYWORDS="amd64 x86"
14 16
IUSE="static-libs test"
15 17

  
16 18
RDEPEND="
......
21 23
	"
22 24
DEPEND="
23 25
	${RDEPEND}
24
	virtual/pkgconfig
25 26
	test? ( dev-util/cmocka )
26 27
	"
28
BDEPEND="virtual/pkgconfig"
27 29

  
28 30
S="${WORKDIR}"/${MY_P}
29 31
RESTRICT="!test? ( test )"
......
36 38
}
37 39

  
38 40
src_compile() {
39
	emake PREFIX=/usr
41
	local make_args=(
42
		PREFIX=/usr
43

  
44
		AR="$(tc-getAR)"
45
		CC="$(tc-getCC)"
46
		PKG_CONFIG="$(tc-getPKG_CONFIG)"
47
	)
48
	emake "${make_args[@]}"
49
}
50

  
51
src_test() {
52
	# TODO: Test failures seem to be ignored in the upstream Makefile?
53
	# e.g. https://github.com/gkdr/axc/blob/master/Makefile#L154
54
	emake CC="$(tc-getCC)" test
40 55
}
41 56

  
42 57
src_install() {
......
45 60
	# Respect libdir other than /usr/lib, e.g. /usr/lib64
46 61
	local libdir="$(get_libdir)"
47 62
	if [[ ${libdir} != lib ]]; then
48
		mv "${D}"/usr/{lib,${libdir}} || die
63
		mv "${ED}"/usr/{lib,${libdir}} || die
49 64
		sed "s|^libdir=.*|libdir=\${prefix}/${libdir}|" \
50
				-i "${D}/usr/${libdir}/pkgconfig/libaxc.pc" || die
65
				-i "${ED}/usr/${libdir}/pkgconfig/libaxc.pc" || die
51 66
	fi
52 67

  
53 68
	einstalldocs
54 69

  
55 70
	if ! use static-libs ; then
56
		rm "${D}/usr/${libdir}/libaxc.a" || die
71
		rm "${ED}/usr/${libdir}/libaxc.a" || die
57 72
	fi
58 73
}
59

  
60
src_test() {
61
	emake -j1 test
62
}
Спасибо!