mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 04:53:07 -04:00
dev-libs/lsquic: fix misses package(s) in RDEPEND
and replace the statically linked boringssl with the lsquic recommended version. Signed-off-by: Okamura Kazuya <gentoo-guru@danceylove.net>
This commit is contained in:
55
dev-libs/lsquic/lsquic-4.0.8-r2.ebuild
Normal file
55
dev-libs/lsquic/lsquic-4.0.8-r2.ebuild
Normal file
@@ -0,0 +1,55 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake
|
||||
|
||||
BORINGSSL_COMMIT="9fc1c33e9c21439ce5f87855a6591a9324e569fd"
|
||||
|
||||
DESCRIPTION="LiteSpeed QUIC (LSQUIC) Library"
|
||||
HOMEPAGE="https://github.com/litespeedtech/lsquic/"
|
||||
SRC_URI="
|
||||
https://github.com/litespeedtech/lsquic/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
https://github.com/google/boringssl/archive/${BORINGSSL_COMMIT}.tar.gz -> boringssl-9fc1c.tar.gz
|
||||
"
|
||||
|
||||
S="${WORKDIR}/lsquic-${PV}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
|
||||
IUSE="static-libs test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
DEPEND="
|
||||
dev-lang/go
|
||||
dev-libs/ls-qpack:=[static-libs=]
|
||||
dev-libs/ls-hpack:=[static-libs=]
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
sys-libs/zlib
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-disable-build-deps-libs.patch
|
||||
"${FILESDIR}"/${PN}-link-boringssl-static-libs-9fc1c.patch
|
||||
"${FILESDIR}"/${PN}-disable-override-flags.patch
|
||||
"${FILESDIR}"/${PN}-disable-boring-override-flags.patch
|
||||
)
|
||||
|
||||
src_unpack() {
|
||||
unpack ${P}.tar.gz
|
||||
unpack boringssl-9fc1c.tar.gz
|
||||
mv boringssl-${BORINGSSL_COMMIT} "${S}"/src/liblsquic/boringssl || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DLSQUIC_SHARED_LIB=$(usex !static-libs)
|
||||
-DLSQUIC_TESTS=$(usex test)
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
Reference in New Issue
Block a user