From 4242446a1af7d38662da76b31d2e6254d64706ec Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 7 Jul 2023 22:17:58 +0100 Subject: gentoo auto-resync : 07:07:2023 - 22:17:58 --- dev-cpp/cpp-httplib/Manifest | 2 ++ dev-cpp/cpp-httplib/cpp-httplib-0.13.0.ebuild | 50 +++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 dev-cpp/cpp-httplib/cpp-httplib-0.13.0.ebuild (limited to 'dev-cpp/cpp-httplib') diff --git a/dev-cpp/cpp-httplib/Manifest b/dev-cpp/cpp-httplib/Manifest index 193e727b7a78..eb4165035191 100644 --- a/dev-cpp/cpp-httplib/Manifest +++ b/dev-cpp/cpp-httplib/Manifest @@ -1,5 +1,7 @@ DIST cpp-httplib-0.12.3.tar.gz 639107 BLAKE2B 15db0056069cbda5359c6279ebc84520039e809f32cd8314c180dd761324a76fccaae0e80f39d0b69563903bd667799425c7e85708962b2763416a3c8bbd09bb SHA512 3465e5c843ad4087bababadf8fe9f3e6961213301540053bb47f242f958280f43c85b03b8cf6f955a6b91bf9511a81669feeb9989344caf2a1e42ff587b3a460 DIST cpp-httplib-0.12.6.tar.gz 641145 BLAKE2B 56a1a9c2d048a608664cce1ea3737d8633d6dbc124b4a5b2b5a33f81d678efdd2b8b0c79fb88c23dd861f1c6264eddba32349740142e3765d61f811dd50d9909 SHA512 63f0172bb7f4b02f3640634f25801bc1e34d85f53c9915e6402d825891793de26faa7551dff88a44c23af39e3592b7863454d9c070b5bd0e546cb987bca14885 +DIST cpp-httplib-0.13.0.tar.gz 644021 BLAKE2B 9ed1d49819662dbb6af04c4ab8b1d1cfa68db07d5b147f64c8c20a6a61f61490f518d9c8e405f867a130f0b455e530582ec9685deaadfd4b9f34790becf6495f SHA512 8d91fe1f2780d2330112ebb3f3d3c6ac6526e8cb04902e15edefe6121d588495519551007c3c134e0d16f71460cba1680860e229b2318f8725ce651027a68a9a EBUILD cpp-httplib-0.12.3.ebuild 1314 BLAKE2B 6b9874966e1b346189732803dbce30f3e306a60182269d64581a22646c97e8c884622a2dd94879db412d763639656c68a2bf5d2d1c993b2a0b57a98f5a445944 SHA512 9a02f97726c99f4489f9ba9d4e06bf755c5585bd70514a0e516665a73f34c8b63115f813c523f92e0dabdbeb25f10302e4bf5b36c900cd8846dcad93ba8d8d20 EBUILD cpp-httplib-0.12.6.ebuild 1342 BLAKE2B 2246303a14ae4830a106eccc1b3edb0d4acdd401e118207c1f45124574bd55e2bf49c534ae4d4562d7a8401f046337abe9793e0be6dc201973093c09ea07d198 SHA512 d6e988dc4cf3d6a8b9b9034d98349689c3e86fd179b3d598775d00a1eed7161749e1f1829b2a2a4e5e91cd6e179ff496253e22394cb34cdd0115ca5d32dd90a6 +EBUILD cpp-httplib-0.13.0.ebuild 1342 BLAKE2B 2246303a14ae4830a106eccc1b3edb0d4acdd401e118207c1f45124574bd55e2bf49c534ae4d4562d7a8401f046337abe9793e0be6dc201973093c09ea07d198 SHA512 d6e988dc4cf3d6a8b9b9034d98349689c3e86fd179b3d598775d00a1eed7161749e1f1829b2a2a4e5e91cd6e179ff496253e22394cb34cdd0115ca5d32dd90a6 MISC metadata.xml 744 BLAKE2B c3cbea51dafa4c3faa9ad130a2cb493ec87489a574dea464d884b15188c54bd60cb9e6dc30fa8f453bff041d374a3e9ff3f20a78580bdc8fad2bf26b0e3b3c90 SHA512 361401b649e07b2a4d577788d8552fc744271fa8e14e8a53083fa5aeea8a39f183eb6c736c941e10878ef24700a1e2a80201bc36ed646406586835cacdeee1a2 diff --git a/dev-cpp/cpp-httplib/cpp-httplib-0.13.0.ebuild b/dev-cpp/cpp-httplib/cpp-httplib-0.13.0.ebuild new file mode 100644 index 000000000000..d084d2656c17 --- /dev/null +++ b/dev-cpp/cpp-httplib/cpp-httplib-0.13.0.ebuild @@ -0,0 +1,50 @@ +# 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/" +SRC_URI="https://github.com/yhirose/cpp-httplib/archive/v${PV}.tar.gz + -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0/$(ver_cut 1-2)" # soversion +KEYWORDS="~amd64 ~loong ~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 -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." +} -- cgit v1.2.3