From 1851fb3ab3f9118620bf179fe5b1e8271603ae0c Mon Sep 17 00:00:00 2001 From: Michael Mair-Keimberger Date: Tue, 19 May 2020 19:06:38 +0200 Subject: net-libs/libwebsockets: version bump to 4.0.10 Bump to latest upstream release and inherit flag-o-matic eclass as pointed out in #15910 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Michael Mair-Keimberger Signed-off-by: Jakov Smolic Signed-off-by: Joonas Niilola --- net-libs/libwebsockets/Manifest | 1 + net-libs/libwebsockets/libwebsockets-4.0.10.ebuild | 83 ++++++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 net-libs/libwebsockets/libwebsockets-4.0.10.ebuild (limited to 'net-libs/libwebsockets') diff --git a/net-libs/libwebsockets/Manifest b/net-libs/libwebsockets/Manifest index 57790136add6..8560ff631dbe 100644 --- a/net-libs/libwebsockets/Manifest +++ b/net-libs/libwebsockets/Manifest @@ -1,2 +1,3 @@ DIST libwebsockets-3.2.1.tar.gz 9868342 BLAKE2B d822552c611f7cd0ee416bf9b9576c6052e196c1aa68b12c46a00865d3dcd131840218394317f191485fc61d8f3b7654d4a652a47f11d279a555522df84a2350 SHA512 a2d30a7a0416a26484743efdaa8635542480a74b0ef0f6e172dab5de4688486efb13457fc8a884d9916f76322cab0cbc9ab675f496558edd1dd9b833d087207d +DIST libwebsockets-4.0.10.tar.gz 12337448 BLAKE2B 91c38703e6cb98c66fb4e5fd6939c98d98c076b5a4ebd931a23da20e834de54cd61f4e8c121245970a34210d2e8720c0c7429846101ad6f4c4d3fd9a23fcf993 SHA512 25857c03d02c0c55dea1095fd64e1df112e938e975f04d8a28b56b4899a5cce900d500a139e9353ba548b0c59a23bad982dac0e0e0621e869b78e1e130c33cfe DIST libwebsockets-4.0.7.tar.gz 12337469 BLAKE2B 0ca58050e60afb4fcb349a8035afa629fb2d4645d7413cbaf7f1cf6cae8c5606de2aa72f1dc78778ba00c0fe723dd4aab55cd03c0a96122a1e4ff7d3cdf66644 SHA512 14b2f762db220fd6003d04c05566786b292913bfc71667327b17e8a357f4a7b5b0a09f246fc9ed527f7db106586c567345200120d32428183d39e16ae5a6287e diff --git a/net-libs/libwebsockets/libwebsockets-4.0.10.ebuild b/net-libs/libwebsockets/libwebsockets-4.0.10.ebuild new file mode 100644 index 000000000000..b0fe7aa758df --- /dev/null +++ b/net-libs/libwebsockets/libwebsockets-4.0.10.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake flag-o-matic + +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/16" # libwebsockets.so.16 +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +IUSE="access-log caps cgi client dbus generic-sessions http-proxy http2 ipv6 + +lejp libev libevent libressl libuv mbedtls peer-limits server-status smtp socks5 + sqlite3 ssl static-libs threads zip" + +REQUIRED_USE=" + access-log? ( http2 ) + generic-sessions? ( smtp sqlite3 ) + http-proxy? ( client ) + smtp? ( libuv ) + ssl? ( ?? ( libressl mbedtls ) ) + ?? ( libev libevent ) +" + +RDEPEND=" + sys-libs/zlib + caps? ( sys-libs/libcap ) + http-proxy? ( net-libs/libhubbub ) + libev? ( dev-libs/libev ) + libevent? ( dev-libs/libevent:= ) + libuv? ( dev-libs/libuv:= ) + sqlite3? ( dev-db/sqlite:= ) + ssl? ( + !libressl? ( + !mbedtls? ( dev-libs/openssl:0= ) + mbedtls? ( >net-libs/mbedtls-2.0.0 ) + ) + ) +" +DEPEND="${RDEPEND}" +BDEPEND="dev-lang/perl" + +PATCHES=( + "${FILESDIR}/libwebsockets-3.2.0-check_chown_result.patch" +) + +src_configure() { + append-cflags -Wno-error + local mycmakeargs=( + -DCMAKE_DISABLE_FIND_PACKAGE_Git=ON + -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=$(usex static-libs) + -DLWS_WITH_THREADPOOL=$(usex threads) + -DLWS_WITH_ZIP_FOPS=$(usex zip) + -DLWS_WITHOUT_TESTAPPS=ON + ) + + cmake_src_configure +} -- cgit v1.2.3-65-gdbad