commit: b11260b3c0566a7205baf5a15196668ee61b1c0b Author: Okamura Kazuya <gentoo-guru <AT> danceylove <DOT> net> AuthorDate: Tue Jun 27 15:27:32 2023 +0000 Commit: Okamura Kazuya <trakrailysurely <AT> danceylove <DOT> net> CommitDate: Tue Jun 27 15:27:32 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b11260b3
dev-libs/ls-hpack: new package, add 2.3.0 Signed-off-by: Okamura Kazuya <gentoo-guru <AT> danceylove.net> dev-libs/ls-hpack/Manifest | 1 + .../ls-hpack/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(+) diff --git a/dev-libs/ls-hpack/Manifest b/dev-libs/ls-hpack/Manifest new file mode 100644 index 000000000..7ed747950 --- /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 000000000..4894ea0f7 --- /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 000000000..9aa03d384 --- /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 000000000..383a5c36b --- /dev/null +++ b/dev-libs/ls-hpack/metadata.xml @@ -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-g...@danceylove.net</email> + <name>Okamura Kazuya</name> + </maintainer> + <upstream> + <remote-id type="github">litespeedtech/ls-hpack</remote-id> + </upstream> +</pkgmetadata>