guru/dev-libs/ls-qpack/ls-qpack-2.5.4.ebuild
Lucio Sauer 8b04e3e3cb
dev-libs/ls-qpack: fix EbuildUnquotedVariablesCheck
Use simpler query and install functions
Add suffix to GitHub-generated archive
Bump copyright

Signed-off-by: Lucio Sauer <watermanpaint@posteo.net>
2024-04-27 20:29:54 +02:00

30 lines
675 B
Bash

# Copyright 1999-2024 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/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
IUSE="static-libs"
src_configure() {
local mycmakeargs=(
-DBUILD_SHARED_LIBS=$(usex !static-libs)
)
cmake_src_configure
}
src_install() {
local LIB_TYPE=$(usex static-libs a so)
doheader ls{qpack,xpack_header}.h
dolib.${LIB_TYPE} "${BUILD_DIR}"/libls-qpack.${LIB_TYPE}
einstalldocs
}