summaryrefslogtreecommitdiff
path: root/dev-cpp/cpp-httplib/cpp-httplib-0.16.0.ebuild
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2024-07-14 18:04:31 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2024-07-14 18:04:31 +0000
commitf003095531247db30c44c4f935ecbb216a3014fc (patch)
tree3dcb71429ce5ccb4f07f7be5189477634f9b0b6d /dev-cpp/cpp-httplib/cpp-httplib-0.16.0.ebuild
parent2eb9743ff9bb1999fa3671f852c70a86f494fb4b (diff)
downloadbaldeagleos-repo-f003095531247db30c44c4f935ecbb216a3014fc.tar.gz
baldeagleos-repo-f003095531247db30c44c4f935ecbb216a3014fc.tar.xz
baldeagleos-repo-f003095531247db30c44c4f935ecbb216a3014fc.zip
Adding metadata
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.ebuild17
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