summaryrefslogtreecommitdiff
path: root/dev-cpp/cpp-httplib
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-01-11 05:43:34 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-01-11 05:43:34 +0000
commitad391b961414c99124b93cb86695c04bd8d57937 (patch)
tree446151aff1c09db21505a46da4107f9a5be588e0 /dev-cpp/cpp-httplib
parent113cc6fe7a9adc2baf67f9ef7723db6ed2b24887 (diff)
gentoo auto-resync : 11:01:2023 - 05:43:34
Diffstat (limited to 'dev-cpp/cpp-httplib')
-rw-r--r--dev-cpp/cpp-httplib/Manifest2
-rw-r--r--dev-cpp/cpp-httplib/cpp-httplib-0.11.4.ebuild49
2 files changed, 51 insertions, 0 deletions
diff --git a/dev-cpp/cpp-httplib/Manifest b/dev-cpp/cpp-httplib/Manifest
index 3585b6db4812..809b132bc1ec 100644
--- a/dev-cpp/cpp-httplib/Manifest
+++ b/dev-cpp/cpp-httplib/Manifest
@@ -1,3 +1,5 @@
DIST cpp-httplib-0.11.3.tar.gz 633203 BLAKE2B 7418b958610a5f9fa634bd67622d176bdbb54a93c6478578ea0f9a9f1104b72923a8909702ae994edecc6e1f37d63ba09444913d44785e944426464df7c48cb1 SHA512 b0c46bf11c8bc84ab52143559ff1c4682b02504921855e5cd7e82bc65a04b192281ef7a124c7c7dfe928ae3842d5065097b6a4608be1c74dc51b563b15b93d0f
+DIST cpp-httplib-0.11.4.tar.gz 634929 BLAKE2B b6a6626de54e6828f08cd8f36934716969bc6c0485b8899522de2bd0c6b325c52c7541eccc095093062b4a3744b6170b10169d7e4a7a32a2cd683c292f9da85c SHA512 3f8a905cebee388526ebffeb431a90c9de2e8e92058ec0847f55fe0a43957ce6edaf093b3a516563d18d6105557af39270b9803865d400bbd849a60a5c8e8c17
EBUILD cpp-httplib-0.11.3.ebuild 1068 BLAKE2B 5841acff45c4b5cd811e7e2c836e10e3cd008ff057f6c45e65c352acd7ca3f4dc53775273ce6cf6bab16208cd988d2229e9ecd2bdbf729aac3471899ec2db898 SHA512 3450071a71abc60e23cd581499ada961037961db71559076e1d3292b6e6b88809ca6ea90d557dc6008c331a6c07fd0664531fc1f89d292fb30609ee3245187e4
+EBUILD cpp-httplib-0.11.4.ebuild 1331 BLAKE2B 2e185a6c2155823376684045428e1f192f64907895293ca03eaff4056a7440a8a7e00e303b66462276e8035f547aeded2ca9e1e59fa6d47e6a23d69ab5bce6d0 SHA512 bfea89ad57aad0cffe01273a195f57653c40627d71d7932f32f4167f2c87681b55ff3f28a3a5e5f76ce2375520abfe5534aa3b77338e3a8fdd4ef3dab9708f09
MISC metadata.xml 744 BLAKE2B c3cbea51dafa4c3faa9ad130a2cb493ec87489a574dea464d884b15188c54bd60cb9e6dc30fa8f453bff041d374a3e9ff3f20a78580bdc8fad2bf26b0e3b3c90 SHA512 361401b649e07b2a4d577788d8552fc744271fa8e14e8a53083fa5aeea8a39f183eb6c736c941e10878ef24700a1e2a80201bc36ed646406586835cacdeee1a2
diff --git a/dev-cpp/cpp-httplib/cpp-httplib-0.11.4.ebuild b/dev-cpp/cpp-httplib/cpp-httplib-0.11.4.ebuild
new file mode 100644
index 000000000000..e7b23543a69f
--- /dev/null
+++ b/dev-cpp/cpp-httplib/cpp-httplib-0.11.4.ebuild
@@ -0,0 +1,49 @@
+# Copyright 2022-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..11} )
+inherit cmake-multilib python-any-r1
+
+DESCRIPTION="C++ HTTP/HTTPS server and client library"
+HOMEPAGE="https://github.com/yhirose/cpp-httplib"
+SRC_URI="https://github.com/yhirose/cpp-httplib/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/0.11" # soversion
+KEYWORDS="~amd64 ~x86"
+
+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}"
+
+src_configure() {
+ local 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
+ pushd test > /dev/null || die
+ emake "CXX=$(tc-getCXX)" CXXFLAGS="${CXXFLAGS} -I."
+ popd > /dev/null || die
+}