summaryrefslogtreecommitdiff
path: root/dev-libs/ls-qpack/ls-qpack-2.6.1.ebuild
blob: e4190da278d0a519caaf4a3b1726b9015ade62a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Copyright 2023-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake

DESCRIPTION="QPACK compression library for use with HTTP/3"
HOMEPAGE="https://github.com/litespeedtech/ls-qpack/"
SRC_URI="
	https://github.com/litespeedtech/ls-qpack/archive/v${PV}.tar.gz
		-> ${P}.gh.tar.gz
"

LICENSE="MIT"
SLOT="0/2"
KEYWORDS="amd64 arm arm64 ~loong ~mips ppc ppc64 ~riscv ~s390 ~sparc x86"
IUSE="test"
RESTRICT="!test? ( test )"

DEPEND="
	dev-libs/xxhash:=
"
RDEPEND="
	${DEPEND}
"

PATCHES=(
	# https://github.com/litespeedtech/ls-qpack/pull/78
	# https://github.com/litespeedtech/ls-qpack/pull/79
	"${FILESDIR}/${P}-test.patch"
)

src_configure() {
	local mycmakeargs=(
		# no support for shared + static both
		-DBUILD_SHARED_LIBS=ON
		# these are only test helpers
		-DLSQPACK_BIN=OFF
		-DLSQPACK_TESTS=$(usex test)
		# use system xxhash
		-DLSQPACK_XXH=OFF
	)
	cmake_src_configure
}