dev-libs/ls-hpack: new package, add 2.3.0

Signed-off-by: Okamura Kazuya <gentoo-guru@danceylove.net>
This commit is contained in:
Okamura Kazuya
2023-06-28 00:27:32 +09:00
parent 3f952f16dd
commit b11260b3c0
4 changed files with 58 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST ls-hpack-2.3.0.tar.gz 954741 BLAKE2B d93494c5d3e08c13e496021467b4984400739168916389e72def3f8619ddd056a73b01121453905376ac20935d7f05b8732ace9290345d0558a7ccc1b266d04d SHA512 45866b18042125cbbd008eed2935a938a42e1682030aa52ff4a324ddbad7bf9bd483161352cc8988bae668e132ee8b4b043ddc09d9e0316a66aaefd927ae2d76

View File

@@ -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()

View File

@@ -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
}

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>gentoo-guru@danceylove.net</email>
<name>Okamura Kazuya</name>
</maintainer>
<upstream>
<remote-id type="github">litespeedtech/ls-hpack</remote-id>
</upstream>
</pkgmetadata>