diff options
author | Okamura Kazuya <gentoo-guru@danceylove.net> | 2023-07-09 20:13:47 +0900 |
---|---|---|
committer | Okamura Kazuya <gentoo-guru@danceylove.net> | 2023-07-09 20:17:01 +0900 |
commit | d3b8c500927886d2b4cd0b2b3fefcaea965115b9 (patch) | |
tree | 858ec242178ddc2859c30c455eb9d55299d4a77d /dev-libs/lsquic | |
parent | www-apps/invidious: update upstream metadata (diff) | |
download | guru-d3b8c500927886d2b4cd0b2b3fefcaea965115b9.tar.gz guru-d3b8c500927886d2b4cd0b2b3fefcaea965115b9.tar.bz2 guru-d3b8c500927886d2b4cd0b2b3fefcaea965115b9.zip |
dev-libs/lsquic: Fixed compile failures
fails to compile: Could not find Go
https://bugs.gentoo.org/910096
Signed-off-by: Okamura Kazuya <gentoo-guru@danceylove.net>
Diffstat (limited to 'dev-libs/lsquic')
-rw-r--r-- | dev-libs/lsquic/lsquic-3.2.0-r1.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/dev-libs/lsquic/lsquic-3.2.0-r1.ebuild b/dev-libs/lsquic/lsquic-3.2.0-r1.ebuild new file mode 100644 index 000000000..41383d373 --- /dev/null +++ b/dev-libs/lsquic/lsquic-3.2.0-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +# LSQUIC +LSQUIC_COMMIT="3bbf683f25ab84826951350c57ae226c88c54422" +# BoringSSL +BORINGSSL_COMMIT="15655052e8701f908937204785eaa8cd4363099f" +DESCRIPTION="LiteSpeed QUIC (LSQUIC) Library" +HOMEPAGE="https://github.com/litespeedtech/lsquic/" +SRC_URI=" + https://github.com/litespeedtech/lsquic/archive/${LSQUIC_COMMIT}.tar.gz -> ${P}.tar.gz + https://github.com/google/boringssl/archive/${BORINGSSL_COMMIT}.tar.gz -> boringssl-fips-20230428.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64" +IUSE="static-libs test" +RESTRICT="!test? ( test )" + +S="${WORKDIR}/lsquic-${LSQUIC_COMMIT}" + +DEPEND=" + dev-lang/go + dev-libs/ls-qpack:=[static-libs=] + dev-libs/ls-hpack:=[static-libs=] +" + +PATCHES=( + "${FILESDIR}"/${PN}-disable-build-deps-libs.patch + "${FILESDIR}"/${PN}-link-boringssl-static-libs.patch +) + +src_unpack() { + unpack ${P}.tar.gz + unpack boringssl-fips-20230428.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 +} |