Diff nghttp3-1.8.0 with a nghttp3-9999

/usr/portage/net-libs/nghttp3/nghttp3-9999.ebuild 2025-07-29 16:22:17.268467478 +0300
3 3

  
4 4
EAPI=8
5 5

  
6
inherit cmake-multilib
6
# Built with autotools rather than cmake to avoid circular dep (bug #951524)
7

  
8
inherit multilib-minimal
7 9

  
8 10
if [[ ${PV} == 9999 ]] ; then
9 11
	EGIT_REPO_URI="https://github.com/ngtcp2/nghttp3.git"
10
	inherit git-r3
12
	inherit autotools git-r3
11 13
else
12 14
	SRC_URI="https://github.com/ngtcp2/nghttp3/releases/download/v${PV}/${P}.tar.xz"
13
	KEYWORDS="amd64 arm arm64 hppa ~loong ~m68k ~mips ~ppc ppc64 ~riscv sparc x86 ~arm64-macos ~x64-macos ~x64-solaris"
15
	inherit libtool
16

  
17
	KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris"
14 18
fi
15 19

  
16 20
DESCRIPTION="HTTP/3 library written in C"
17
HOMEPAGE="https://github.com/ngtcp2/nghttp3/"
21
HOMEPAGE="https://github.com/ngtcp2/nghttp3"
18 22

  
19 23
LICENSE="MIT"
20 24
SLOT="0/0"
21
IUSE="static-libs test"
22
RESTRICT="!test? ( test )"
23
# Without static-libs, src_test just won't run any tests and "pass".
24
REQUIRED_USE="
25
	test? ( static-libs )
26
"
27 25

  
28
BDEPEND="virtual/pkgconfig"
26
src_prepare() {
27
	default
28
	if [[ ${PV} == 9999 ]]; then
29
		eautoreconf
30
	else
31
		elibtoolize
32
	fi
33
}
29 34

  
30 35
multilib_src_configure() {
31
	local mycmakeargs=(
32
		-DENABLE_LIB_ONLY=ON
33
		-DENABLE_STATIC_LIB=$(usex static-libs)
34
		-DENABLE_EXAMPLES=OFF
35
		-DBUILD_TESTING=$(usex test)
36
	local myeconfargs=(
37
		--disable-werror
38
		--disable-debug
39
		--enable-lib-only
36 40
	)
37
	cmake_src_configure
41

  
42
	ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
38 43
}
39 44

  
40
multilib_src_test() {
41
	cmake_build check
45
multilib_src_install_all() {
46
	einstalldocs
47
	find "${ED}"/usr -type f -name '*.la' -delete || die
42 48
}
Thank you!