1 |
commit: 15df1b747096cc3f97394e2afbcb8557b61c1246 |
2 |
Author: Aisha Tammy <gentoo <AT> aisha <DOT> cc> |
3 |
AuthorDate: Thu Apr 30 17:13:11 2020 +0000 |
4 |
Commit: Aisha Tammy <gentoo <AT> aisha <DOT> cc> |
5 |
CommitDate: Thu Apr 30 17:13:11 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=15df1b74 |
7 |
|
8 |
dev-cpp/uwebsockets: async tcp, udp websockets framework |
9 |
|
10 |
Package-Manager: Portage-2.3.89, Repoman-2.3.20 |
11 |
Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc> |
12 |
|
13 |
dev-cpp/uwebsockets/Manifest | 1 + |
14 |
.../uwebsockets/files/uwebsockets-Makefile.patch | 24 +++++++++++++++ |
15 |
.../uwebsockets/files/uwebsockets-src_Loop.h.patch | 13 +++++++++ |
16 |
dev-cpp/uwebsockets/metadata.xml | 12 ++++++++ |
17 |
dev-cpp/uwebsockets/uwebsockets-0.17.4.ebuild | 34 ++++++++++++++++++++++ |
18 |
5 files changed, 84 insertions(+) |
19 |
|
20 |
diff --git a/dev-cpp/uwebsockets/Manifest b/dev-cpp/uwebsockets/Manifest |
21 |
new file mode 100644 |
22 |
index 0000000..a34d17f |
23 |
--- /dev/null |
24 |
+++ b/dev-cpp/uwebsockets/Manifest |
25 |
@@ -0,0 +1 @@ |
26 |
+DIST uwebsockets-0.17.4.tar.gz 206285 BLAKE2B bf1394dc2c1e2bbb557238089443ab99e7de5fd73a2998ec5b1f392d80254ec0858a5ed58d94b98aeb0094ad0a1883772d41548583e3beafd12f263adbf4ccf1 SHA512 5d40003d69b0541e9f73b028ca1630f0840fc40495a88de23656829169088f7c5ce23ec2f6d0da07a9a1cd42b5be3a47fb719f4c98e546eb9a4a80e29010889d |
27 |
|
28 |
diff --git a/dev-cpp/uwebsockets/files/uwebsockets-Makefile.patch b/dev-cpp/uwebsockets/files/uwebsockets-Makefile.patch |
29 |
new file mode 100644 |
30 |
index 0000000..bc6ba5c |
31 |
--- /dev/null |
32 |
+++ b/dev-cpp/uwebsockets/files/uwebsockets-Makefile.patch |
33 |
@@ -0,0 +1,24 @@ |
34 |
+diff --git a/Makefile b/Makefile |
35 |
+index ae71753..d057e96 100644 |
36 |
+--- a/Makefile |
37 |
++++ b/Makefile |
38 |
+@@ -1,3 +1,9 @@ |
39 |
++DESTDIR ?= |
40 |
++ |
41 |
++prefix ?= "/usr/local" |
42 |
++exec_prefix ?= "$(prefix)" |
43 |
++includedir?= "$(exec_prefix)/include/uWebSockets" |
44 |
++ |
45 |
+ EXAMPLE_FILES := HelloWorld EchoServer BroadcastingEchoServer |
46 |
+ THREADED_EXAMPLE_FILES := HelloWorldThreaded EchoServerThreaded |
47 |
+ override CXXFLAGS += -lpthread -Wconversion -std=c++17 -Isrc -IuSockets/src |
48 |
+@@ -38,3 +44,9 @@ all: |
49 |
+ clean: |
50 |
+ rm -rf $(EXAMPLE_FILES) $(THREADED_EXAMPLE_FILES) |
51 |
+ rm -rf fuzzing/*.o benchmarks/*.o |
52 |
++install: |
53 |
++ # create the folder for the header files |
54 |
++ install -d "$(DESTDIR)$(includedir)/f2" |
55 |
++ # now install the header files |
56 |
++ install -m 644 src/*.h "$(DESTDIR)$(includedir)/" |
57 |
++ install -m 644 src/f2/function2.hpp "$(DESTDIR)$(includedir)/f2/" |
58 |
|
59 |
diff --git a/dev-cpp/uwebsockets/files/uwebsockets-src_Loop.h.patch b/dev-cpp/uwebsockets/files/uwebsockets-src_Loop.h.patch |
60 |
new file mode 100644 |
61 |
index 0000000..d4bded9 |
62 |
--- /dev/null |
63 |
+++ b/dev-cpp/uwebsockets/files/uwebsockets-src_Loop.h.patch |
64 |
@@ -0,0 +1,13 @@ |
65 |
+diff --git a/src/Loop.h b/src/Loop.h |
66 |
+index 3681dad..03d8a75 100644 |
67 |
+--- a/src/Loop.h |
68 |
++++ b/src/Loop.h |
69 |
+@@ -21,7 +21,7 @@ |
70 |
+ /* The loop is lazily created per-thread and run with uWS::run() */ |
71 |
+ |
72 |
+ #include "LoopData.h" |
73 |
+-#include <libusockets.h> |
74 |
++#include <uSockets/libusockets.h> |
75 |
+ |
76 |
+ namespace uWS { |
77 |
+ struct Loop { |
78 |
|
79 |
diff --git a/dev-cpp/uwebsockets/metadata.xml b/dev-cpp/uwebsockets/metadata.xml |
80 |
new file mode 100644 |
81 |
index 0000000..cfbacce |
82 |
--- /dev/null |
83 |
+++ b/dev-cpp/uwebsockets/metadata.xml |
84 |
@@ -0,0 +1,12 @@ |
85 |
+<?xml version="1.0" encoding="UTF-8"?> |
86 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
87 |
+<pkgmetadata> |
88 |
+ <maintainer type="person"> |
89 |
+ <email>gentoo@×××××.cc</email> |
90 |
+ <name>Aisha Tammy</name> |
91 |
+ </maintainer> |
92 |
+ <maintainer type="project"> |
93 |
+ <email>proxy-maint@g.o</email> |
94 |
+ <name>Proxy Maintainers</name> |
95 |
+ </maintainer> |
96 |
+</pkgmetadata> |
97 |
|
98 |
diff --git a/dev-cpp/uwebsockets/uwebsockets-0.17.4.ebuild b/dev-cpp/uwebsockets/uwebsockets-0.17.4.ebuild |
99 |
new file mode 100644 |
100 |
index 0000000..994c569 |
101 |
--- /dev/null |
102 |
+++ b/dev-cpp/uwebsockets/uwebsockets-0.17.4.ebuild |
103 |
@@ -0,0 +1,34 @@ |
104 |
+# Copyright 2019-2020 Gentoo Authors |
105 |
+# Distributed under the terms of the GNU General Public License v2 |
106 |
+ |
107 |
+EAPI=7 |
108 |
+ |
109 |
+DESCRIPTION="ultra fast, simple, secure & standards compliant web I/O" |
110 |
+HOMEPAGE="https://github.com/uNetworking/uWebSockets" |
111 |
+ |
112 |
+if [[ ${PV} == 9999 ]]; then |
113 |
+ inherit git-r3 |
114 |
+ EGIT_REPO_URI="https://github.com/uNetworking/uWebSockets.git" |
115 |
+else |
116 |
+ SRC_URI="https://github.com/uNetworking/uWebSockets/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
117 |
+ KEYWORDS="~amd64 ~arm64 ~x86" |
118 |
+ S="${WORKDIR}/uWebSockets-${PV}" |
119 |
+fi |
120 |
+ |
121 |
+LICENSE="Apache-2.0" |
122 |
+SLOT="0" |
123 |
+IUSE="" |
124 |
+RDEPEND="~dev-cpp/usockets-0.3.5" |
125 |
+ |
126 |
+PATCHES=( |
127 |
+ "${FILESDIR}/${PN}-Makefile.patch" |
128 |
+ "${FILESDIR}/${PN}-src_Loop.h.patch" |
129 |
+) |
130 |
+ |
131 |
+src_compile() { |
132 |
+ return 0 |
133 |
+} |
134 |
+ |
135 |
+src_install() { |
136 |
+ emake prefix="/usr" DESTDIR="${D}" install |
137 |
+} |