diff options
Diffstat (limited to 'dev-cpp/cpp-httplib/cpp-httplib-0.16.0.ebuild')
| -rw-r--r-- | dev-cpp/cpp-httplib/cpp-httplib-0.16.0.ebuild | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/dev-cpp/cpp-httplib/cpp-httplib-0.16.0.ebuild b/dev-cpp/cpp-httplib/cpp-httplib-0.16.0.ebuild index 7773fdd1648b..3ddfccc68bc6 100644 --- a/dev-cpp/cpp-httplib/cpp-httplib-0.16.0.ebuild +++ b/dev-cpp/cpp-httplib/cpp-httplib-0.16.0.ebuild @@ -1,6 +1,5 @@ -# Copyright 2022-2024 Gentoo Authors +# Copyright 2024 Liguros Authors # Distributed under the terms of the GNU General Public License v2 - EAPI=8 PYTHON_COMPAT=( python3_{8,9,10,11,12} ) @@ -24,7 +23,7 @@ fi LICENSE="MIT" SLOT="0/$(ver_cut 1-2)" # soversion -IUSE="brotli ssl test zlib" +IUSE="brotli libressl ssl test zlib" REQUIRED_USE="test? ( brotli ssl zlib )" RESTRICT="!test? ( test )" @@ -33,7 +32,8 @@ RDEPEND=" app-arch/brotli:=[${MULTILIB_USEDEP}] ) ssl? ( - >=dev-libs/openssl-3.0.13:=[${MULTILIB_USEDEP}] + !libressl? ( >=dev-libs/openssl-3.0.13:=[${MULTILIB_USEDEP}] ) + libressl? ( dev-libs/libressl:=[${MULTILIB_USEDEP}] ) ) zlib? ( sys-libs/zlib[${MULTILIB_USEDEP}] @@ -46,6 +46,15 @@ BDEPEND=" ${PYTHON_DEPS} " +src_prepare() { + if use libressl; then + eapply -p1 $FILESDIR/cmakelists.patch + eapply -p1 $FILESDIR/httplib_h.patch + fi + + cmake_src_prepare +} + src_configure() { local -a mycmakeargs=( -DHTTPLIB_COMPILE=yes |
