diff options
author | Jakov Smolić <jsmolic@gentoo.org> | 2022-01-18 14:08:28 +0100 |
---|---|---|
committer | Jakov Smolić <jsmolic@gentoo.org> | 2022-01-18 14:09:22 +0100 |
commit | 05afee1ba9ea7b937824802341d17075a1abfacc (patch) | |
tree | 98ce83108eeee4d4e551c536b3d51ed19e8b92cb /net-libs/libwebsockets | |
parent | dev-util/bpftool: drop 5.15.12 (diff) | |
download | gentoo-05afee1ba9ea7b937824802341d17075a1abfacc.tar.gz gentoo-05afee1ba9ea7b937824802341d17075a1abfacc.tar.bz2 gentoo-05afee1ba9ea7b937824802341d17075a1abfacc.zip |
net-libs/libwebsockets: add 4.3.1
Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
Diffstat (limited to 'net-libs/libwebsockets')
-rw-r--r-- | net-libs/libwebsockets/Manifest | 1 | ||||
-rw-r--r-- | net-libs/libwebsockets/libwebsockets-4.3.1.ebuild | 81 |
2 files changed, 82 insertions, 0 deletions
diff --git a/net-libs/libwebsockets/Manifest b/net-libs/libwebsockets/Manifest index 58a721aea77a..1e2ec8ebeee7 100644 --- a/net-libs/libwebsockets/Manifest +++ b/net-libs/libwebsockets/Manifest @@ -1 +1,2 @@ DIST libwebsockets-4.3.0.tar.gz 15605272 BLAKE2B 6ea48fedf3755f55885f32bc289513182cf735472c161f15d720a76ddfa54e5e2c2d93a343f98d941d14b88f8ca8a13039922f8669b85562c5c0c4312f878b98 SHA512 7f183cb0417a902cb18e76431a8580d87db09c973483f3a129e138e4644b9d0e78e0539e985dc6286d9fe429edea7f63147864dc0413cf8e40fca3d67f9c3c42 +DIST libwebsockets-4.3.1.tar.gz 15607585 BLAKE2B 420343dd358e4ca45d0cadde7f0a6398dbd5043c4cd2c1a70f32dc9b5ef4cb222239971c4ce758ee156deac4d06bd18289a8e975a7f41508abfdcb05870994f6 SHA512 3cc2daadd7d2587ce946209a31741662d98367f0f9f77a1555497bef6fc6acc6cb97f5196d6ecef2d13828bb5613c60cccada03d9a01a5c970a9cfd25baeb0ae diff --git a/net-libs/libwebsockets/libwebsockets-4.3.1.ebuild b/net-libs/libwebsockets/libwebsockets-4.3.1.ebuild new file mode 100644 index 000000000000..5db0694c894d --- /dev/null +++ b/net-libs/libwebsockets/libwebsockets-4.3.1.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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 ~ppc ~ppc64 ~x86" +IUSE="access-log caps cgi client dbus 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_TESTAPPS=ON + ) + + cmake_src_configure +} |