From b11260b3c0566a7205baf5a15196668ee61b1c0b Mon Sep 17 00:00:00 2001 From: Okamura Kazuya Date: Wed, 28 Jun 2023 00:27:32 +0900 Subject: [PATCH] dev-libs/ls-hpack: new package, add 2.3.0 Signed-off-by: Okamura Kazuya --- dev-libs/ls-hpack/Manifest | 1 + .../files/ls-hpack-disable-tests.patch | 11 ++++++ dev-libs/ls-hpack/ls-hpack-2.3.0.ebuild | 35 +++++++++++++++++++ dev-libs/ls-hpack/metadata.xml | 11 ++++++ 4 files changed, 58 insertions(+) create mode 100644 dev-libs/ls-hpack/Manifest create mode 100644 dev-libs/ls-hpack/files/ls-hpack-disable-tests.patch create mode 100644 dev-libs/ls-hpack/ls-hpack-2.3.0.ebuild create mode 100644 dev-libs/ls-hpack/metadata.xml diff --git a/dev-libs/ls-hpack/Manifest b/dev-libs/ls-hpack/Manifest new file mode 100644 index 0000000000..7ed7479500 --- /dev/null +++ b/dev-libs/ls-hpack/Manifest @@ -0,0 +1 @@ +DIST ls-hpack-2.3.0.tar.gz 954741 BLAKE2B d93494c5d3e08c13e496021467b4984400739168916389e72def3f8619ddd056a73b01121453905376ac20935d7f05b8732ace9290345d0558a7ccc1b266d04d SHA512 45866b18042125cbbd008eed2935a938a42e1682030aa52ff4a324ddbad7bf9bd483161352cc8988bae668e132ee8b4b043ddc09d9e0316a66aaefd927ae2d76 diff --git a/dev-libs/ls-hpack/files/ls-hpack-disable-tests.patch b/dev-libs/ls-hpack/files/ls-hpack-disable-tests.patch new file mode 100644 index 0000000000..4894ea0f70 --- /dev/null +++ b/dev-libs/ls-hpack/files/ls-hpack-disable-tests.patch @@ -0,0 +1,11 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -80,7 +80,7 @@ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${MY_CMAKE_FLAGS} $ENV{EXTRA_CFLAGS}") + MESSAGE(STATUS "Compiler flags: ${CMAKE_C_FLAGS}") + + IF (NOT CMAKE_BUILD_TYPE STREQUAL Release) +- ENABLE_TESTING() ++# ENABLE_TESTING() + INCLUDE_DIRECTORIES("test") + ADD_SUBDIRECTORY("test") + ENDIF() diff --git a/dev-libs/ls-hpack/ls-hpack-2.3.0.ebuild b/dev-libs/ls-hpack/ls-hpack-2.3.0.ebuild new file mode 100644 index 0000000000..9aa03d384d --- /dev/null +++ b/dev-libs/ls-hpack/ls-hpack-2.3.0.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2023 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-hpack/" +SRC_URI="https://github.com/litespeedtech/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="static-libs" + +PATCHES=( + "${FILESDIR}"/${PN}-disable-tests.patch +) + +src_configure() { + local mycmakeargs=( + -DSHARED=$(usex !static-libs 1 0) + ) + cmake_src_configure +} + +src_install() { + mkdir -p ${D}/usr/include/lshpack/ + mkdir -p ${D}/usr/lib64/ + cp ${S}_build/libls-hpack* ${D}/usr/lib64/ + cp ${S}/lshpack.h ${D}/usr/include/lshpack/ + cp ${S}/lshpack.h ${D}/usr/include/ + einstalldocs +} diff --git a/dev-libs/ls-hpack/metadata.xml b/dev-libs/ls-hpack/metadata.xml new file mode 100644 index 0000000000..383a5c36b2 --- /dev/null +++ b/dev-libs/ls-hpack/metadata.xml @@ -0,0 +1,11 @@ + + + + + gentoo-guru@danceylove.net + Okamura Kazuya + + + litespeedtech/ls-hpack + +