summaryrefslogtreecommitdiff
path: root/dev-cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dev-cpp')
-rw-r--r--dev-cpp/Manifest.gzbin14248 -> 14254 bytes
-rw-r--r--dev-cpp/cpp-httplib/Manifest2
-rw-r--r--dev-cpp/cpp-httplib/cpp-httplib-0.14.1-r1.ebuild60
-rw-r--r--dev-cpp/cpp-httplib/files/cpp-httplib-0.14.1-fix-version.patch16
4 files changed, 78 insertions, 0 deletions
diff --git a/dev-cpp/Manifest.gz b/dev-cpp/Manifest.gz
index cd1b676635c6..9b85eea15e39 100644
--- a/dev-cpp/Manifest.gz
+++ b/dev-cpp/Manifest.gz
Binary files differ
diff --git a/dev-cpp/cpp-httplib/Manifest b/dev-cpp/cpp-httplib/Manifest
index f2026bb57e47..ae5f179f26d3 100644
--- a/dev-cpp/cpp-httplib/Manifest
+++ b/dev-cpp/cpp-httplib/Manifest
@@ -1,5 +1,7 @@
+AUX cpp-httplib-0.14.1-fix-version.patch 439 BLAKE2B e3cad102ce27184e66751dd698bfa38fe32546d179dcf437efe40f73ee96d10c04e5f04bd30246289bbba7bc09a54ebf0e2975185b7820f091dc01bb917f1053 SHA512 3c4e84191126df0b0ea427ddfdf8caa0f7a7ee3fb87c3b754ddeea5f0c0df43f8d9f50d5b76052c9deffe9c4a51b258590d85706106a18e4611c580d08654a45
DIST cpp-httplib-0.14.0.tar.gz 1147334 BLAKE2B 9d24cefcb2b181abe887d77686eafd938ec59b54cd56ff046e61773974f106c7b91ea94dc208369095c0b5392a48a462386c2c42ade252e18224014b2f7a5e9c SHA512 fac8fd1730e7f828053c61924d3ff9b660ad3cb385aa7a506c50c1ed1ca9820fb07691e28e03effcc60e391ecb78727108f1fdbe8b428917ab494738bed86d78
DIST cpp-httplib-0.14.1.tar.gz 1148935 BLAKE2B e083fba3281e5b35031e1fda60efe75971d4edf746e52fa4608afbc3af3f7f9532ca59d041692277e963653c77a4878d5bbcb8045aba76d350185ca276a25a64 SHA512 6e995502e0cfd9953044207fabce29a3d6de49e79464b6bf89e1a9e667dc66fe1972c38d6428ad8e8fb96236e85b2d9ac60cbb58b4de03e8f837a9122151a706
EBUILD cpp-httplib-0.14.0.ebuild 1449 BLAKE2B 75d9bf8ac128306b1d419c8fcf56ad2a18d8f74812f2f367003163f8ce75eeb323dde47bc9bca6a245dc70c61c13ab79fa87feb5c1dfefb54d9f7e62a7663220 SHA512 5e26022390ac35cae8c42f8cb7210ab9c7db788fe348b737bb4914371ab74fccd92ca80544d9885979a110e0f853c12d766995587aead8f3ebd3b288b72a5295
+EBUILD cpp-httplib-0.14.1-r1.ebuild 1501 BLAKE2B d61068e22ec66827c3d6d7c5844f6d5aed3294d8aef5bf322b1785e72cfee819dec854cf9cc224ae161c30dfb5edd521b71fd0ebf756be9c33695495cf716e6d SHA512 3f17fba50cc58896a86bfa44b2c22b47ddc388153c777a025a8281660325cf0caf5daa8ae13fe77ec1e61f39d2cf5c7c012a30a101c6a6c2ce692dcd6031020f
EBUILD cpp-httplib-0.14.1.ebuild 1450 BLAKE2B 0b2d6def998825a1c2a0ae562839a63a518e2578eefe2bfdb50f17081f3d1df743880dba9dff830044497b10bfc6b7d407e97aec962079a11c757960defd452c SHA512 5c31abb335a6527d4a038c419372968e23cf3bf518f8be2ca2c1b386b4d03edc43380208ce519988912a988edcb3cd94f7890793740288de3ebe4ee52cc9a10f
MISC metadata.xml 744 BLAKE2B c3cbea51dafa4c3faa9ad130a2cb493ec87489a574dea464d884b15188c54bd60cb9e6dc30fa8f453bff041d374a3e9ff3f20a78580bdc8fad2bf26b0e3b3c90 SHA512 361401b649e07b2a4d577788d8552fc744271fa8e14e8a53083fa5aeea8a39f183eb6c736c941e10878ef24700a1e2a80201bc36ed646406586835cacdeee1a2
diff --git a/dev-cpp/cpp-httplib/cpp-httplib-0.14.1-r1.ebuild b/dev-cpp/cpp-httplib/cpp-httplib-0.14.1-r1.ebuild
new file mode 100644
index 000000000000..3df1116a1b74
--- /dev/null
+++ b/dev-cpp/cpp-httplib/cpp-httplib-0.14.1-r1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 2022-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit cmake-multilib python-any-r1 toolchain-funcs
+
+DESCRIPTION="C++ HTTP/HTTPS server and client library"
+HOMEPAGE="https://github.com/yhirose/cpp-httplib/"
+
+if [[ ${PV} == *9999* ]] ; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/yhirose/${PN}.git"
+else
+ SRC_URI="https://github.com/yhirose/${PN}/archive/v${PV}.tar.gz
+ -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~loong ~x86"
+fi
+
+LICENSE="MIT"
+SLOT="0/$(ver_cut 1-2)" # soversion
+
+IUSE="brotli ssl test zlib"
+REQUIRED_USE="test? ( brotli ssl zlib )"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ brotli? ( app-arch/brotli:=[${MULTILIB_USEDEP}] )
+ ssl? ( dev-libs/openssl:=[${MULTILIB_USEDEP}] )
+ zlib? ( sys-libs/zlib[${MULTILIB_USEDEP}] )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="${PYTHON_DEPS}"
+
+PATCHES=(
+ "${FILESDIR}/${P}-fix-version.patch"
+)
+
+src_configure() {
+ local -a mycmakeargs=(
+ -DHTTPLIB_COMPILE=yes
+ -DBUILD_SHARED_LIBS=yes
+ -DHTTPLIB_USE_BROTLI_IF_AVAILABLE=no
+ -DHTTPLIB_USE_OPENSSL_IF_AVAILABLE=no
+ -DHTTPLIB_USE_ZLIB_IF_AVAILABLE=no
+ -DHTTPLIB_REQUIRE_BROTLI=$(usex brotli)
+ -DHTTPLIB_REQUIRE_OPENSSL=$(usex ssl)
+ -DHTTPLIB_REQUIRE_ZLIB=$(usex zlib)
+ -DPython3_EXECUTABLE="${PYTHON}"
+ )
+ cmake-multilib_src_configure
+}
+
+multilib_src_test() {
+ cp -p -R --reflink=auto "${S}/test" ./test || die
+
+ GTEST_FILTER='-*.*_Online' emake -C test "CXX=$(tc-getCXX)" CXXFLAGS="${CXXFLAGS} -I."
+}
diff --git a/dev-cpp/cpp-httplib/files/cpp-httplib-0.14.1-fix-version.patch b/dev-cpp/cpp-httplib/files/cpp-httplib-0.14.1-fix-version.patch
new file mode 100644
index 000000000000..1f2c37f56518
--- /dev/null
+++ b/dev-cpp/cpp-httplib/files/cpp-httplib-0.14.1-fix-version.patch
@@ -0,0 +1,16 @@
+From https://github.com/yhirose/cpp-httplib/commit/0a629d739127dcc5d828474a5aedae1f234687d3 Mon Sep 17 00:00:00 2001
+From: yhirose <yuji.hirose.bug@gmail.com>
+Date: Sat, 30 Sep 2023 22:14:02 -0400
+Subject: [PATCH] Release v0.14.1
+
+--- a/httplib.h
++++ b/httplib.h
+@@ -8,7 +8,7 @@
+ #ifndef CPPHTTPLIB_HTTPLIB_H
+ #define CPPHTTPLIB_HTTPLIB_H
+
+-#define CPPHTTPLIB_VERSION "0.14.0"
++#define CPPHTTPLIB_VERSION "0.14.1"
+
+ /*
+ * Configuration