1 |
commit: d93e9e03612215ec613e1736e02356d82540924c |
2 |
Author: Adrian Schollmeyer <nex+b-g-o <AT> nexadn <DOT> de> |
3 |
AuthorDate: Sun Nov 28 13:54:45 2021 +0000 |
4 |
Commit: Adrian Schollmeyer <nex+b-g-o <AT> nexadn <DOT> de> |
5 |
CommitDate: Sun Nov 28 13:57:08 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d93e9e03 |
7 |
|
8 |
net-libs/ixwebsocket: Bump to 11.3.2 |
9 |
|
10 |
Patching CMakeLists.txt to use GNUInstallDirs has become obsolete, since |
11 |
the patches have been applied upstream. |
12 |
|
13 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
14 |
Signed-off-by: Adrian Schollmeyer <nex+b-g-o <AT> nexadn.de> |
15 |
|
16 |
net-libs/ixwebsocket/Manifest | 2 +- |
17 |
.../files/ixwebsocket-11.3.2-remove-deflate.patch | 19 ++++++++ |
18 |
.../ixwebsocket-11.3.2-remove-network-tests.patch | 28 +++++++++++ |
19 |
.../ixwebsocket-11.3.2-use-system-spdlog.patch | 55 ++++++++++++++++++++++ |
20 |
...ket-11.2.8.ebuild => ixwebsocket-11.3.2.ebuild} | 2 - |
21 |
5 files changed, 103 insertions(+), 3 deletions(-) |
22 |
|
23 |
diff --git a/net-libs/ixwebsocket/Manifest b/net-libs/ixwebsocket/Manifest |
24 |
index a2f68d56b..75cedd7f5 100644 |
25 |
--- a/net-libs/ixwebsocket/Manifest |
26 |
+++ b/net-libs/ixwebsocket/Manifest |
27 |
@@ -1 +1 @@ |
28 |
-DIST ixwebsocket-11.2.8.tar.gz 583075 BLAKE2B 014af74ec236a49b8bad574761e6d861348ef22f3cbda798862f87591c27c2ee8b94f740d534ed7f6fc0736ea2e06788c64a208dab65575aa815d40472c6c50d SHA512 7938c2b59b5f310afa1a0c94171dd55a4e8821ac0763feb11528d520f1d3bf1037bb8d53d31eec1952888f601f597c00c9490e15cfca7f9c3aa6d80614d7b1f5 |
29 |
+DIST ixwebsocket-11.3.2.tar.gz 600266 BLAKE2B 21051ddbea29fa1cb7a2e4a04426b9bc2e518e7ab93bb866005948e9726b78cb45ce5a2f672c2924affc5e897e5e37e6d2f62fdf7d07d6675888352b9dd0c5ba SHA512 2ee25575d3315a64eef370df87f431e055293105cc6e784c4a776c2c5c5ec45f6c9d39e900fdcea1ad6b4a26b55581600250a9b1c300ce2eb8eebd670e6fda26 |
30 |
|
31 |
diff --git a/net-libs/ixwebsocket/files/ixwebsocket-11.3.2-remove-deflate.patch b/net-libs/ixwebsocket/files/ixwebsocket-11.3.2-remove-deflate.patch |
32 |
new file mode 100644 |
33 |
index 000000000..fffedc6b7 |
34 |
--- /dev/null |
35 |
+++ b/net-libs/ixwebsocket/files/ixwebsocket-11.3.2-remove-deflate.patch |
36 |
@@ -0,0 +1,19 @@ |
37 |
+diff --git a/CMakeLists.txt b/CMakeLists.txt |
38 |
+index 77d2f6b..665c35f 100644 |
39 |
+--- a/CMakeLists.txt |
40 |
++++ b/CMakeLists.txt |
41 |
+@@ -206,14 +206,6 @@ if (USE_ZLIB) |
42 |
+ target_compile_definitions(ixwebsocket PUBLIC IXWEBSOCKET_USE_ZLIB) |
43 |
+ endif() |
44 |
+ |
45 |
+-# brew install libdeflate |
46 |
+-find_package(Deflate) |
47 |
+-if (DEFLATE_FOUND) |
48 |
+- include_directories(${DEFLATE_INCLUDE_DIRS}) |
49 |
+- target_link_libraries(ixwebsocket ${DEFLATE_LIBRARIES}) |
50 |
+- target_compile_definitions(ixwebsocket PUBLIC IXWEBSOCKET_USE_DEFLATE) |
51 |
+-endif() |
52 |
+- |
53 |
+ if (WIN32) |
54 |
+ target_link_libraries(ixwebsocket wsock32 ws2_32 shlwapi) |
55 |
+ add_definitions(-D_CRT_SECURE_NO_WARNINGS) |
56 |
|
57 |
diff --git a/net-libs/ixwebsocket/files/ixwebsocket-11.3.2-remove-network-tests.patch b/net-libs/ixwebsocket/files/ixwebsocket-11.3.2-remove-network-tests.patch |
58 |
new file mode 100644 |
59 |
index 000000000..a2d1360cb |
60 |
--- /dev/null |
61 |
+++ b/net-libs/ixwebsocket/files/ixwebsocket-11.3.2-remove-network-tests.patch |
62 |
@@ -0,0 +1,28 @@ |
63 |
+diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt |
64 |
+index 661aebb..bab73c7 100644 |
65 |
+--- a/test/CMakeLists.txt |
66 |
++++ b/test/CMakeLists.txt |
67 |
+@@ -11,15 +11,12 @@ option(USE_TLS "Add TLS support" ON) |
68 |
+ |
69 |
+ # Shared sources |
70 |
+ set (TEST_TARGET_NAMES |
71 |
+- IXSocketTest |
72 |
+ IXSocketConnectTest |
73 |
+ IXWebSocketServerTest |
74 |
+ IXWebSocketTestConnectionDisconnection |
75 |
+ IXUrlParserTest |
76 |
+- IXHttpClientTest |
77 |
+ IXUnityBuildsTest |
78 |
+ IXHttpTest |
79 |
+- IXDNSLookupTest |
80 |
+ IXWebSocketSubProtocolTest |
81 |
+ # IXWebSocketBroadcastTest ## FIXME was depending on cobra / take a broadcast server from ws |
82 |
+ IXStrCaseCompareTest |
83 |
+@@ -33,7 +30,6 @@ if (UNIX) |
84 |
+ |
85 |
+ # Fail on Windows in CI probably because the pathing is wrong and |
86 |
+ # some resource files cannot be found |
87 |
+- IXHttpServerTest |
88 |
+ IXWebSocketChatTest |
89 |
+ ) |
90 |
+ endif() |
91 |
|
92 |
diff --git a/net-libs/ixwebsocket/files/ixwebsocket-11.3.2-use-system-spdlog.patch b/net-libs/ixwebsocket/files/ixwebsocket-11.3.2-use-system-spdlog.patch |
93 |
new file mode 100644 |
94 |
index 000000000..ed329b41d |
95 |
--- /dev/null |
96 |
+++ b/net-libs/ixwebsocket/files/ixwebsocket-11.3.2-use-system-spdlog.patch |
97 |
@@ -0,0 +1,55 @@ |
98 |
+diff --git a/CMakeLists.txt b/CMakeLists.txt |
99 |
+index 77d2f6b..86c7172 100644 |
100 |
+--- a/CMakeLists.txt |
101 |
++++ b/CMakeLists.txt |
102 |
+@@ -257,13 +257,9 @@ install(EXPORT ixwebsocket |
103 |
+ DESTINATION lib/cmake/ixwebsocket) |
104 |
+ |
105 |
+ if (USE_WS OR USE_TEST) |
106 |
+- include(FetchContent) |
107 |
+- FetchContent_Declare(spdlog |
108 |
+- GIT_REPOSITORY "https://github.com/gabime/spdlog" |
109 |
+- GIT_TAG "v1.8.0" |
110 |
+- GIT_SHALLOW 1) |
111 |
+- |
112 |
+- FetchContent_MakeAvailable(spdlog) |
113 |
++ find_package(spdlog REQUIRED) |
114 |
++ find_package(fmt REQUIRED) |
115 |
++ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DSPDLOG_FMT_EXTERNAL") |
116 |
+ |
117 |
+ if (USE_WS) |
118 |
+ add_subdirectory(ws) |
119 |
+diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt |
120 |
+index 661aebb..ab0c92e 100644 |
121 |
+--- a/test/CMakeLists.txt |
122 |
++++ b/test/CMakeLists.txt |
123 |
+@@ -66,7 +66,7 @@ target_include_directories(ixwebsocket_test PRIVATE |
124 |
+ ../third_party |
125 |
+ ) |
126 |
+ target_link_libraries(ixwebsocket_test ixwebsocket) |
127 |
+-target_link_libraries(ixwebsocket_test spdlog) |
128 |
++target_link_libraries(ixwebsocket_test spdlog::spdlog fmt::fmt) |
129 |
+ |
130 |
+ foreach(TEST_TARGET_NAME ${TEST_TARGET_NAMES}) |
131 |
+ add_executable(${TEST_TARGET_NAME} |
132 |
+@@ -89,7 +89,7 @@ foreach(TEST_TARGET_NAME ${TEST_TARGET_NAMES}) |
133 |
+ target_link_libraries(${TEST_TARGET_NAME} ixwebsocket_test) |
134 |
+ target_link_libraries(${TEST_TARGET_NAME} ixwebsocket) |
135 |
+ |
136 |
+- target_link_libraries(${TEST_TARGET_NAME} spdlog) |
137 |
++ target_link_libraries(${TEST_TARGET_NAME} spdlog fmt) |
138 |
+ |
139 |
+ add_test(NAME ${TEST_TARGET_NAME} |
140 |
+ COMMAND ${TEST_TARGET_NAME} |
141 |
+diff --git a/ws/CMakeLists.txt b/ws/CMakeLists.txt |
142 |
+index 98f15de..10834e5 100644 |
143 |
+--- a/ws/CMakeLists.txt |
144 |
++++ b/ws/CMakeLists.txt |
145 |
+@@ -31,6 +31,6 @@ add_executable(ws |
146 |
+ # library with the most dependencies come first |
147 |
+ target_link_libraries(ws ixwebsocket) |
148 |
+ |
149 |
+-target_link_libraries(ws spdlog) |
150 |
++target_link_libraries(ws spdlog::spdlog fmt::fmt) |
151 |
+ |
152 |
+ install(TARGETS ws RUNTIME DESTINATION bin) |
153 |
|
154 |
diff --git a/net-libs/ixwebsocket/ixwebsocket-11.2.8.ebuild b/net-libs/ixwebsocket/ixwebsocket-11.3.2.ebuild |
155 |
similarity index 92% |
156 |
rename from net-libs/ixwebsocket/ixwebsocket-11.2.8.ebuild |
157 |
rename to net-libs/ixwebsocket/ixwebsocket-11.3.2.ebuild |
158 |
index a31363a8c..1f07f2f48 100644 |
159 |
--- a/net-libs/ixwebsocket/ixwebsocket-11.2.8.ebuild |
160 |
+++ b/net-libs/ixwebsocket/ixwebsocket-11.3.2.ebuild |
161 |
@@ -45,8 +45,6 @@ S="${WORKDIR}/${MY_P}" |
162 |
RESTRICT="!test? ( test )" |
163 |
|
164 |
PATCHES=( |
165 |
- # Upstream installs to hardcoded lib- and include-dirs |
166 |
- "${FILESDIR}/${P}-use-gnuinstalldirs.patch" |
167 |
# Some tests require network connectivity |
168 |
"${FILESDIR}/${P}-remove-network-tests.patch" |
169 |
# Upstream uses git submodules |