diff options
author | Okamura Kazuya <gentoo-guru@danceylove.net> | 2024-04-28 01:37:41 +0900 |
---|---|---|
committer | Okamura Kazuya <gentoo-guru@danceylove.net> | 2024-04-28 01:37:41 +0900 |
commit | 407f734c8bd5887dac0fa7b92efed40a4a86d350 (patch) | |
tree | d04914ec09e05644a3a4a4256521583fcc4d9faf /dev-libs | |
parent | dev-libs/ls-qpack: bump 2.5.4 (diff) | |
download | guru-407f734c8bd5887dac0fa7b92efed40a4a86d350.tar.gz guru-407f734c8bd5887dac0fa7b92efed40a4a86d350.tar.bz2 guru-407f734c8bd5887dac0fa7b92efed40a4a86d350.zip |
dev-libs/lsquic: bump 4.0.8
Signed-off-by: Okamura Kazuya <gentoo-guru@danceylove.net>
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/lsquic/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/lsquic/files/lsquic-disable-override-flags.patch | 20 | ||||
-rw-r--r-- | dev-libs/lsquic/lsquic-4.0.8.ebuild | 50 |
3 files changed, 71 insertions, 0 deletions
diff --git a/dev-libs/lsquic/Manifest b/dev-libs/lsquic/Manifest index 6610c44ad..936273a0a 100644 --- a/dev-libs/lsquic/Manifest +++ b/dev-libs/lsquic/Manifest @@ -1,2 +1,3 @@ DIST boringssl-fips-20230428.tar.gz 32288205 BLAKE2B 50588024cfd985b23be6f780197d092beae4b97bb2b5e01a6aca1477b0f5f0ffd0b6ac9558bd42fb5b4de4898a8987326afbe28422bb6dafbfc2104660958a83 SHA512 afdf94a4bbf4e92082ddcdb798c7b13e489f63ad50d9a79ee0f7222c0c830dd75a313cb8e3220816f1dc6872fe7493522938797c18c728e41a7c8f77bd597fc1 DIST lsquic-3.2.0.tar.gz 1911754 BLAKE2B 50832d44f01419fe78e965b632aa3f3c1a39c4cb36f1183031bdfecb8aad48ce094bf0e59736c9a408542b1d3977cb93e1908a86cffe3ad2cdbbad7a12257f33 SHA512 1b9b499c854e60d07b8f32215bf65dc8f678dd216689a4dcaa150e962357ed75087c2cc31a1f9f0bcd2f168ef63625ed0f5c0a88d16a6cec5fa02b75e782e3d0 +DIST lsquic-4.0.8.tar.gz 1928212 BLAKE2B 4a4011fe86183ae0ac34f92a4695d18a8d635330e638038d7a78e9b04ebf49de657c666f523f4967163f81c77f033d856712bb04efc1c50fa8f50040d066a585 SHA512 45789e2024b60dbb2593b8708067b3aa833f818228c8b1d37840b6c8cb968d446cb74b5c9ace4a805b9dd5e91b5ad22fbf07e832b15b8f7ae480cfaafd67601b diff --git a/dev-libs/lsquic/files/lsquic-disable-override-flags.patch b/dev-libs/lsquic/files/lsquic-disable-override-flags.patch new file mode 100644 index 000000000..9e054dd52 --- /dev/null +++ b/dev-libs/lsquic/files/lsquic-disable-override-flags.patch @@ -0,0 +1,20 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index e9ca3d8..6ee1e9d 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -59,7 +59,6 @@ IF(LSQUIC_FIU) + ENDIF() + + IF(CMAKE_BUILD_TYPE STREQUAL "Debug") +- SET(MY_CMAKE_FLAGS "${MY_CMAKE_FLAGS} -O0 -g3") + IF(CMAKE_C_COMPILER MATCHES "clang" AND + NOT "$ENV{TRAVIS}" MATCHES "^true$" AND + NOT "$ENV{EXTRA_CFLAGS}" MATCHES "-fsanitize") +@@ -69,7 +68,6 @@ IF(CMAKE_BUILD_TYPE STREQUAL "Debug") + # Uncomment to enable cleartext protocol mode (no crypto): + #SET (MY_CMAKE_FLAGS "${MY_CMAKE_FLAGS} -DLSQUIC_ENABLE_HANDSHAKE_DISABLE=1") + ELSE() +- SET(MY_CMAKE_FLAGS "${MY_CMAKE_FLAGS} -O3 -g0") + # Comment out the following line to compile out debug messages: + #SET(MY_CMAKE_FLAGS "${MY_CMAKE_FLAGS} -DLSQUIC_LOWEST_LOG_LEVEL=LSQ_LOG_INFO") + ENDIF() diff --git a/dev-libs/lsquic/lsquic-4.0.8.ebuild b/dev-libs/lsquic/lsquic-4.0.8.ebuild new file mode 100644 index 000000000..8f3bce329 --- /dev/null +++ b/dev-libs/lsquic/lsquic-4.0.8.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 + +BORINGSSL_COMMIT="15655052e8701f908937204785eaa8cd4363099f" + +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-fips-20230428.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=] +" + +PATCHES=( + "${FILESDIR}"/${PN}-disable-build-deps-libs.patch + "${FILESDIR}"/${PN}-link-boringssl-static-libs.patch + "${FILESDIR}"/${PN}-disable-override-flags.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 +} |