diff options
| author | Alexey Sokolov <alexey+gentoo@asokolov.org> | 2023-01-10 23:27:18 +0000 |
|---|---|---|
| committer | Maciej Barć <xgqt@gentoo.org> | 2023-01-11 00:51:41 +0100 |
| commit | 032a9cc8b09aad4acf1613be6ed9b7b7232acd0d (patch) | |
| tree | 89179ea89ba6f07cd8380a5e4261e80462936cef /dev-cpp/cpp-httplib/cpp-httplib-0.11.4.ebuild | |
| parent | 28f0cfe25e3a78db2ce76bc432bae5813e24556e (diff) | |
| download | gentoo-032a9cc8b09aad4acf1613be6ed9b7b7232acd0d.tar.gz gentoo-032a9cc8b09aad4acf1613be6ed9b7b7232acd0d.tar.bz2 gentoo-032a9cc8b09aad4acf1613be6ed9b7b7232acd0d.zip | |
dev-cpp/cpp-httplib: add 0.11.4
Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
Closes: https://github.com/gentoo/gentoo/pull/29056
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-cpp/cpp-httplib/cpp-httplib-0.11.4.ebuild')
| -rw-r--r-- | dev-cpp/cpp-httplib/cpp-httplib-0.11.4.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
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 +} |
