summaryrefslogtreecommitdiff
path: root/dev-cpp/fizz
diff options
context:
space:
mode:
Diffstat (limited to 'dev-cpp/fizz')
-rw-r--r--dev-cpp/fizz/Manifest1
-rw-r--r--dev-cpp/fizz/fizz-2022.03.21.00.ebuild49
-rw-r--r--dev-cpp/fizz/metadata.xml17
3 files changed, 67 insertions, 0 deletions
diff --git a/dev-cpp/fizz/Manifest b/dev-cpp/fizz/Manifest
new file mode 100644
index 000000000000..7e54932b0250
--- /dev/null
+++ b/dev-cpp/fizz/Manifest
@@ -0,0 +1 @@
+DIST fizz-2022.03.21.00.tar.gz 581670 BLAKE2B 2dc9691abfaf646db56e047a74894b745102764c773b9f244c4b357b74b6d00d1a2548664a5e343f2c5f84458de36d453e99b9901c89bc621c54840a7b45b5e4 SHA512 81a7b764c2c2e17fd5df32a69ecb368eb01df04df6dbd1155a40b68fc39cda4f86ce81afc5c89425a5751ef7f4dbb8a40df8b5095685e72ce5e9043c0a74682e
diff --git a/dev-cpp/fizz/fizz-2022.03.21.00.ebuild b/dev-cpp/fizz/fizz-2022.03.21.00.ebuild
new file mode 100644
index 000000000000..12e7ec5679e6
--- /dev/null
+++ b/dev-cpp/fizz/fizz-2022.03.21.00.ebuild
@@ -0,0 +1,49 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="C++14 implementation of the TLS-1.3 standard"
+HOMEPAGE="https://github.com/facebookincubator/fizz"
+SRC_URI="https://github.com/facebookincubator/fizz/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="examples test"
+
+RDEPEND="
+ ~dev-cpp/folly-${PV}:=
+ dev-cpp/gflags
+ dev-cpp/glog
+ dev-libs/double-conversion
+ dev-libs/libevent
+ dev-libs/libfmt
+ dev-libs/libsodium
+ dev-libs/openssl:0=
+"
+#TODO: discover if gtest is linked
+DEPEND="
+ ${RDEPEND}
+ test? ( <dev-cpp/gtest-1.11.0 )
+"
+
+RESTRICT="!test? ( test )"
+CMAKE_USE_DIR="${S}/fizz"
+
+src_prepare() {
+ cmake_src_prepare
+ sed -i '/Sodium/d' fizz/cmake/fizz-config.cmake.in || die
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_EXAMPLES=$(usex examples)
+ -DBUILD_TESTS=$(usex test)
+ -DLIB_INSTALL_DIR=$(get_libdir)
+ )
+
+ cmake_src_configure
+}
diff --git a/dev-cpp/fizz/metadata.xml b/dev-cpp/fizz/metadata.xml
new file mode 100644
index 000000000000..44dd63454b2b
--- /dev/null
+++ b/dev-cpp/fizz/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM 'http://www.gentoo.org/dtd/metadata.dtd'>
+<pkgmetadata>
+ <maintainer type="person">
+ <email>lssndrbarbieri@gmail.com</email>
+ <name>Alessandro Barbieri</name>
+ </maintainer>
+ <longdescription lang="en">
+The core protocol implementations are in ClientProtocol and ServerProtocol. FizzClientContext and FizzServerContext provide configuration options. FizzClient and FizzServer (which both inherit from FizzBase) provide applications with an interface to interact with the state machine. FizzClient/FizzServer receives events from the application layer, invokes the correct event handler, and invokes the application ActionVisitor to process the actions.
+
+AsyncFizzClient and AsyncFizzServer provide implementations of the folly AsyncTransportWrapper interface. They own an underlying transport (for example AsyncSocket) and perform the TLS handshake and encrypt/decrypt application data.
+ </longdescription>
+ <upstream>
+ <bugs-to>https://github.com/facebookincubator/fizz/issues</bugs-to>
+ <remote-id type="github">facebookincubator/fizz</remote-id>
+ </upstream>
+</pkgmetadata>