From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D069E15800F for ; Thu, 5 Jan 2023 14:31:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9DAE5E07E0; Thu, 5 Jan 2023 14:31:17 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7FCD3E07E0 for ; Thu, 5 Jan 2023 14:31:17 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5FC2833BE3B for ; Thu, 5 Jan 2023 14:31:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B6ABF7FA for ; Thu, 5 Jan 2023 14:31:14 +0000 (UTC) From: "Maciej Barć" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Maciej Barć" Message-ID: <1672929069.12b14e09f8258030ca7005f7d1cebc749ac752c6.xgqt@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-cpp/cpp-httplib/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-cpp/cpp-httplib/cpp-httplib-0.11.3.ebuild dev-cpp/cpp-httplib/metadata.xml X-VCS-Directories: dev-cpp/cpp-httplib/ X-VCS-Committer: xgqt X-VCS-Committer-Name: Maciej Barć X-VCS-Revision: 12b14e09f8258030ca7005f7d1cebc749ac752c6 X-VCS-Branch: master Date: Thu, 5 Jan 2023 14:31:14 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: bc030229-577c-4f9e-8702-d2eab14d2c62 X-Archives-Hash: 6531f802effa426d4e0a9b91572e6881 commit: 12b14e09f8258030ca7005f7d1cebc749ac752c6 Author: Alexey Sokolov asokolov org> AuthorDate: Sun Dec 25 17:06:53 2022 +0000 Commit: Maciej Barć gentoo org> CommitDate: Thu Jan 5 14:31:09 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12b14e09 dev-cpp/cpp-httplib: build the library Signed-off-by: Alexey Sokolov asokolov.org> Signed-off-by: Maciej Barć gentoo.org> dev-cpp/cpp-httplib/cpp-httplib-0.11.3.ebuild | 32 ++++++++++++++++++++++++--- dev-cpp/cpp-httplib/metadata.xml | 12 +++++++++- 2 files changed, 40 insertions(+), 4 deletions(-) diff --git a/dev-cpp/cpp-httplib/cpp-httplib-0.11.3.ebuild b/dev-cpp/cpp-httplib/cpp-httplib-0.11.3.ebuild index 69ebbe1db747..b7916da7774e 100644 --- a/dev-cpp/cpp-httplib/cpp-httplib-0.11.3.ebuild +++ b/dev-cpp/cpp-httplib/cpp-httplib-0.11.3.ebuild @@ -3,12 +3,38 @@ EAPI=8 -inherit cmake +PYTHON_COMPAT=( python3_{8..11} ) +inherit cmake-multilib python-any-r1 -DESCRIPTION="C++ header-only HTTP/HTTPS server and client library" +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" +SLOT="0/0.11" # soversion KEYWORDS="~amd64 ~x86" + +IUSE="brotli ssl zlib" + +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 +} diff --git a/dev-cpp/cpp-httplib/metadata.xml b/dev-cpp/cpp-httplib/metadata.xml index 69c77c0d5d18..f4f5863299df 100644 --- a/dev-cpp/cpp-httplib/metadata.xml +++ b/dev-cpp/cpp-httplib/metadata.xml @@ -1,7 +1,17 @@ - + + alexey+gentoo@asokolov.org + Alexey Sokolov + + + proxy-maint@gentoo.org + Proxy Maintainers + + + Enable app-arch/brotli support + yhirose/cpp-httplib https://github.com/yhirose/cpp-httplib/issues