summaryrefslogtreecommitdiff
path: root/net-libs/libwebsockets
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-12-27 01:38:47 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-12-27 01:38:47 +0000
commita2210d6624510ad5825191a26603b73bbc096b98 (patch)
tree532ae6f32e362993fd926b040ad57cabe1c8d4e8 /net-libs/libwebsockets
parent7ab79528a3e9a77497eb58022bb0e775e7440885 (diff)
gentoo auto-resync : 27:12:2023 - 01:38:47
Diffstat (limited to 'net-libs/libwebsockets')
-rw-r--r--net-libs/libwebsockets/Manifest2
-rw-r--r--net-libs/libwebsockets/libwebsockets-4.3.3.ebuild82
2 files changed, 84 insertions, 0 deletions
diff --git a/net-libs/libwebsockets/Manifest b/net-libs/libwebsockets/Manifest
index dc92d0bd557c..85b20a61b148 100644
--- a/net-libs/libwebsockets/Manifest
+++ b/net-libs/libwebsockets/Manifest
@@ -1,3 +1,5 @@
DIST libwebsockets-4.3.2.tar.gz 15616264 BLAKE2B 3b8657b79828102cbfba71ea789acd3b7aec7faaa6317974d182b3cb4b5091d8efcf1f184278f71674624a0f1968450ab056e1d91f9faf2c35c67c6c6f4cb695 SHA512 68d18574dea0563fa4f080c5d0d1cfe21a115bffdb17c6190f6741998f1e5db0739e252ef344ffe6fa4bd6781372456b240539471dd2aa900e43759e0f2d42ad
+DIST libwebsockets-4.3.3.tar.gz 15618186 BLAKE2B 24393e0238160767e77a428b1db8430ae5c6efa715e9d917a3fc64c8272e92c8617031c50a75adea4199d678f5ba752f49c24a5d9214aaf43d4e2349c03494ca SHA512 2ffd248ddf283369725097ca7410f947fe0389c360b329c76f0754afab4ba87c20a0687c5e7b8bd991b157f9d20c6faa3049757b3398e66d08662c3aa7ff9658
EBUILD libwebsockets-4.3.2-r1.ebuild 2374 BLAKE2B f67e0a055bb88559743e3fd018e936d49113ff79bdb45ea95754181b4f24863f14af52164c14ff3c0470cb8f19ad50d158259efc98c893d257d64b504e13b251 SHA512 211bba79d0ad03e18a94e9ae1aa1d2ba17bde80e1ae01756183cfeabdde19cfdd947aaea43e847302d7e00993758fb252832d700f42f039bdac08d6840604faf
+EBUILD libwebsockets-4.3.3.ebuild 2379 BLAKE2B 210ddb377a0d241494fe512175979bb4b9055efe572a871658155ef1c0dd3bba83c24eb4df2e47ec5dd2582eefb7a3799bf9fa9cd6eda509e693e40ada24c12e SHA512 6652095947e2a9ab5cc11a83d633b9d6848b6c8c655905bcadc8c9de21d22fd45ab5fa56da71423a2de6e8bc7e8e0ef0d61a2ee332b73889c8079b15bf52d6e9
MISC metadata.xml 1699 BLAKE2B 0436e4a694a6b0d99599d39502d3e92b52b31ff6926c68d7307efeee73f71a9b5ef3b7cbfa6197e0b65d301baa02f91ae88cee6c259b5b12129011cca237c3f1 SHA512 53c0951ddbf202ccde33f851ea7fb801e1ea4340afbe586ab937c17b7d36406dcdd777f091fc79a1767f826d19e836534ed8d020e562779867286bf6c0ea4a30
diff --git a/net-libs/libwebsockets/libwebsockets-4.3.3.ebuild b/net-libs/libwebsockets/libwebsockets-4.3.3.ebuild
new file mode 100644
index 000000000000..172b26185c71
--- /dev/null
+++ b/net-libs/libwebsockets/libwebsockets-4.3.3.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="A flexible pure-C library for implementing network protocols"
+HOMEPAGE="https://libwebsockets.org/"
+SRC_URI="https://github.com/warmcat/libwebsockets/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/19" # libwebsockets.so.19
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86"
+IUSE="access-log caps cgi client dbus extensions generic-sessions http-proxy http2 ipv6
+ +lejp libev libevent libuv mbedtls peer-limits server-status smtp socks5
+ sqlite3 ssl threads zip"
+
+REQUIRED_USE="
+ access-log? ( http2 )
+ generic-sessions? ( smtp sqlite3 )
+ http-proxy? ( client )
+ mbedtls? ( ssl )
+ smtp? ( libuv )
+ socks5? ( client http-proxy )
+ ?? ( libev libevent )"
+
+RDEPEND="
+ sys-libs/zlib
+ caps? ( sys-libs/libcap )
+ dbus? ( sys-apps/dbus )
+ http-proxy? ( net-libs/libhubbub )
+ libev? ( dev-libs/libev )
+ libevent? ( dev-libs/libevent:= )
+ libuv? ( dev-libs/libuv:= )
+ sqlite3? ( dev-db/sqlite:= )
+ ssl? (
+ !mbedtls? ( dev-libs/openssl:0= )
+ mbedtls? ( net-libs/mbedtls:= )
+ )"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ dev-lang/perl
+ virtual/pkgconfig"
+
+src_configure() {
+ local mycmakeargs=(
+ -DCMAKE_DISABLE_FIND_PACKAGE_Git=ON
+ -DDISABLE_WERROR=ON
+ -DLWS_BUILD_HASH="unknown"
+ -DLWS_HAVE_LIBCAP=$(usex caps)
+ -DLWS_IPV6=$(usex ipv6)
+ -DLWS_ROLE_DBUS=$(usex dbus)
+ -DLWS_WITHOUT_CLIENT=$(usex !client)
+ -DLWS_WITHOUT_TEST_CLIENT=$(usex !client)
+ -DLWS_WITH_ACCESS_LOG=$(usex access-log)
+ -DLWS_WITH_CGI=$(usex cgi)
+ -DLWS_WITH_GENERIC_SESSIONS=$(usex generic-sessions)
+ -DLWS_WITH_HTTP2=$(usex http2)
+ -DLWS_WITH_HTTP_PROXY=$(usex http-proxy)
+ -DLWS_WITH_HUBBUB=$(usex http-proxy)
+ -DLWS_WITH_LEJP=$(usex lejp)
+ -DLWS_WITH_LIBEV=$(usex libev)
+ -DLWS_WITH_LIBEVENT=$(usex libevent)
+ -DLWS_WITH_LIBUV=$(usex libuv)
+ -DLWS_WITH_MBEDTLS=$(usex mbedtls)
+ -DLWS_WITH_PEER_LIMITS=$(usex peer-limits)
+ -DLWS_WITH_SERVER_STATUS=$(usex server-status)
+ -DLWS_WITH_SMTP=$(usex smtp)
+ -DLWS_WITH_SOCKS5=$(usex socks5)
+ -DLWS_WITH_SQLITE3=$(usex sqlite3)
+ -DLWS_WITH_SSL=$(usex ssl)
+ -DLWS_WITH_STATIC=OFF
+ -DLWS_WITH_STRUCT_JSON=$(usex lejp)
+ -DLWS_WITH_THREADPOOL=$(usex threads)
+ -DLWS_WITH_ZIP_FOPS=$(usex zip)
+ -DLWS_WITHOUT_EXTENSIONS=$(usex !extensions)
+ -DLWS_WITHOUT_TESTAPPS=ON
+ )
+
+ cmake_src_configure
+}