diff options
Diffstat (limited to 'dev-libs/ls-qpack/ls-qpack-2.6.1.ebuild')
| -rw-r--r-- | dev-libs/ls-qpack/ls-qpack-2.6.1.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/dev-libs/ls-qpack/ls-qpack-2.6.1.ebuild b/dev-libs/ls-qpack/ls-qpack-2.6.1.ebuild new file mode 100644 index 000000000000..ef3ab385c803 --- /dev/null +++ b/dev-libs/ls-qpack/ls-qpack-2.6.1.ebuild @@ -0,0 +1,45 @@ +# Copyright 2023-2025 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 ~arm64" +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 +} |
