1 |
commit: 2e15b300f2358c42521115dcd788a0d5ee5fef24 |
2 |
Author: Denis Reva <denis7774 <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Feb 28 11:55:21 2023 +0000 |
4 |
Commit: Denis Reva <denis7774 <AT> gmail <DOT> com> |
5 |
CommitDate: Tue Feb 28 12:57:33 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2e15b300 |
7 |
|
8 |
dev-cpp/wangle: Unorphaned and updated |
9 |
|
10 |
Signed-off-by: Denis Reva <denis7774 <AT> gmail.com> |
11 |
|
12 |
dev-cpp/wangle/Manifest | 1 + |
13 |
dev-cpp/wangle/metadata.xml | 51 ++++++++++++++++++++++++++++++ |
14 |
dev-cpp/wangle/wangle-2023.02.06.00.ebuild | 43 +++++++++++++++++++++++++ |
15 |
3 files changed, 95 insertions(+) |
16 |
|
17 |
diff --git a/dev-cpp/wangle/Manifest b/dev-cpp/wangle/Manifest |
18 |
new file mode 100644 |
19 |
index 000000000..42fdce640 |
20 |
--- /dev/null |
21 |
+++ b/dev-cpp/wangle/Manifest |
22 |
@@ -0,0 +1 @@ |
23 |
+DIST wangle-2023.02.06.00.tar.gz 339890 BLAKE2B a1b1d50083bac9de7ea6bf586cd677d44a3baf5fcec0ac92d82cda16fcfad055b1e91fec2fa75143ab1ee488bc638a0d6153d19b65b30fc63829fdfdfd0c3156 SHA512 93ea81c5a4b5929e543abd77c2a0e70cec33dcdf928665f71436c1ee5d2afbf338d7ca7000e124c295821f68a1763c847f306eb8ece487047548989609a8cbc0 |
24 |
|
25 |
diff --git a/dev-cpp/wangle/metadata.xml b/dev-cpp/wangle/metadata.xml |
26 |
new file mode 100644 |
27 |
index 000000000..9b43b5159 |
28 |
--- /dev/null |
29 |
+++ b/dev-cpp/wangle/metadata.xml |
30 |
@@ -0,0 +1,51 @@ |
31 |
+<?xml version="1.0" encoding="UTF-8"?> |
32 |
+<!DOCTYPE pkgmetadata SYSTEM 'http://www.gentoo.org/dtd/metadata.dtd'> |
33 |
+<pkgmetadata> |
34 |
+ <maintainer type="person"> |
35 |
+ <email>denis7774@×××××.com</email> |
36 |
+ <name>Denis Reva</name> |
37 |
+ <description>rarogcmex</description> |
38 |
+ </maintainer> |
39 |
+ <maintainer type="person"> |
40 |
+ <description>co-maintainers welcome</description> |
41 |
+ <email>lssndrbarbieri@×××××.com</email> |
42 |
+ <name>Alessandro Barbieri</name> |
43 |
+ </maintainer> |
44 |
+ <longdescription lang="en"> |
45 |
+Client / Server abstraction |
46 |
+ |
47 |
+You're probably familiar with Java's Netty, or Python's twisted, or similar libraries. |
48 |
+ |
49 |
+It is built on top of folly/async/io, so it's one level up the stack from that (or similar abstractions like boost::asio) |
50 |
+ |
51 |
+ServerBootstrap - easily manage creation of threadpools and pipelines |
52 |
+ |
53 |
+ClientBootstrap - the same for clients |
54 |
+ |
55 |
+Pipeline - set up a series of handlers that modify your socket data |
56 |
+ |
57 |
+Request / Response abstraction |
58 |
+ |
59 |
+This is roughly equivalent to the Finagle library. |
60 |
+ |
61 |
+Aims to provide easy testing, load balancing, client pooling, retry logic, etc. for any request/response type service - i.e. thrift, http, etc. |
62 |
+ |
63 |
+Service - a matched interface between client/server. A server will implement this interface, and a client will call in to it. These are protocol-specific |
64 |
+ |
65 |
+ServiceFilter - a generic filter on a service. Examples: stats, request timeouts, rate limiting |
66 |
+ |
67 |
+ServiceFactory - A factory that creates client connections. Any protocol specific setup code goes here |
68 |
+ |
69 |
+ServiceFactoryFilter - Generic filters that control how connections are created. Client examples: load balancing, pooling, idle timeouts, markdowns, etc. |
70 |
+ |
71 |
+ServerBootstrap |
72 |
+ |
73 |
+Easily create a new server |
74 |
+ |
75 |
+ServerBootstrap does the work to set up one or multiple acceptor threads, and one or multiple sets of IO threads. The thread pools can be the same. SO_REUSEPORT is automatically supported for multiple accept threads. tcp is most common, although udp is also supported. |
76 |
+ </longdescription> |
77 |
+ <upstream> |
78 |
+ <bugs-to>https://github.com/facebook/wangle/issues</bugs-to> |
79 |
+ <remote-id type="github">facebook/wangle</remote-id> |
80 |
+ </upstream> |
81 |
+</pkgmetadata> |
82 |
|
83 |
diff --git a/dev-cpp/wangle/wangle-2023.02.06.00.ebuild b/dev-cpp/wangle/wangle-2023.02.06.00.ebuild |
84 |
new file mode 100644 |
85 |
index 000000000..3dd02e256 |
86 |
--- /dev/null |
87 |
+++ b/dev-cpp/wangle/wangle-2023.02.06.00.ebuild |
88 |
@@ -0,0 +1,43 @@ |
89 |
+# Copyright 2021-2023 Gentoo Authors |
90 |
+# Distributed under the terms of the GNU General Public License v2 |
91 |
+ |
92 |
+EAPI=8 |
93 |
+ |
94 |
+inherit cmake |
95 |
+ |
96 |
+DESCRIPTION="Framework providing common client/server abstractions" |
97 |
+HOMEPAGE="https://github.com/facebook/wangle" |
98 |
+SRC_URI="https://github.com/facebook/wangle/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
99 |
+ |
100 |
+LICENSE="Apache-2.0" |
101 |
+SLOT="0/${PV}" |
102 |
+KEYWORDS="~amd64" |
103 |
+IUSE="examples test" |
104 |
+ |
105 |
+RDEPEND=" |
106 |
+ >=dev-cpp/fizz-${PV}:= |
107 |
+ >=dev-cpp/folly-${PV}:= |
108 |
+ dev-cpp/gflags |
109 |
+ dev-cpp/glog |
110 |
+ dev-libs/double-conversion |
111 |
+ dev-libs/libevent |
112 |
+ dev-libs/libfmt |
113 |
+ dev-libs/openssl:0= |
114 |
+" |
115 |
+DEPEND=" |
116 |
+ ${RDEPEND} |
117 |
+ dev-cpp/gtest |
118 |
+" |
119 |
+ |
120 |
+RESTRICT="!test? ( test )" |
121 |
+CMAKE_USE_DIR="${S}/wangle" |
122 |
+ |
123 |
+src_configure() { |
124 |
+ local mycmakeargs=( |
125 |
+ -DBUILD_EXAMPLES=$(usex examples) |
126 |
+ -DBUILD_TESTS=$(usex test) |
127 |
+ -DLIB_INSTALL_DIR=$(get_libdir) |
128 |
+ ) |
129 |
+ |
130 |
+ cmake_src_configure |
131 |
+} |