1 |
commit: 15931f3a10a54646ae43dceef3912bb8888a0814 |
2 |
Author: Kurt Kanzenbach <kurt <AT> kmk-computers <DOT> de> |
3 |
AuthorDate: Fri Apr 9 18:06:00 2021 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
5 |
CommitDate: Fri Apr 9 18:06:00 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=15931f3a |
7 |
|
8 |
dev-libs/open62541: Drop old |
9 |
|
10 |
Package-Manager: Portage-3.0.17, Repoman-3.0.2 |
11 |
Signed-off-by: Kurt Kanzenbach <kurt <AT> kmk-computers.de> |
12 |
|
13 |
dev-libs/open62541/Manifest | 1 - |
14 |
dev-libs/open62541/files/open62541-1.1.5-etf.patch | 40 -------- |
15 |
.../open62541/files/open62541-1.1.5-headers.patch | 33 ------- |
16 |
.../open62541/files/open62541-1.1.5-tests.patch | 101 -------------------- |
17 |
dev-libs/open62541/open62541-1.1.5.ebuild | 105 --------------------- |
18 |
5 files changed, 280 deletions(-) |
19 |
|
20 |
diff --git a/dev-libs/open62541/Manifest b/dev-libs/open62541/Manifest |
21 |
index 229988584..43c70fd57 100644 |
22 |
--- a/dev-libs/open62541/Manifest |
23 |
+++ b/dev-libs/open62541/Manifest |
24 |
@@ -1,3 +1,2 @@ |
25 |
DIST open62541-1.0.6.tar.gz 2691627 BLAKE2B 72a0eb5870bf4233ac6f3911c1a7ad95d4cfa1c26be581815e99189206e188beedc1c2c81ea4cbd038ef545b9548949735353a550bb54ca6a7fb6a6fd60ffa65 SHA512 f317476e19fd2cc1cbd9155e2fe8bcac6499758f35a2f4eb59403add7d66ef94d45bae06bc8ece79eedceef1d0a364565d567b97e94da6b333591f4347961955 |
26 |
-DIST open62541-1.1.5.tar.gz 2925670 BLAKE2B 5da0795801f2fd92fd3d922fbda83d8ef6f22f19a9e17d585fd2f9dddf37e3fc95290ac3d49774ebad0bee8114f5bec4af11d01998ba765b93311062681c7114 SHA512 46379047c83bd728343c4d5b78bf5ade02bd9af4c430350d54366aeab66dadfaee2bded317e990b2456d98dd7277877824e6ad3c632d62c94ba50b14433ea880 |
27 |
DIST open62541-1.2.tar.gz 3640972 BLAKE2B 0b27837ba953338923651919accfb30356d1ecd83c911586720c803bb5cfce193361111e962c79b0e1739e804bb2de25a74e6b105b80eb58b497d7f5fa7ed469 SHA512 f492db2fe1569cf831f67e55d633af13bac1026e4ab8a30c2e1c36ada9b635e0086f176cb8f53665b2254ca9ba8c8f46ea850b1a0430045b71502f166645613a |
28 |
|
29 |
diff --git a/dev-libs/open62541/files/open62541-1.1.5-etf.patch b/dev-libs/open62541/files/open62541-1.1.5-etf.patch |
30 |
deleted file mode 100644 |
31 |
index 09f47ed87..000000000 |
32 |
--- a/dev-libs/open62541/files/open62541-1.1.5-etf.patch |
33 |
+++ /dev/null |
34 |
@@ -1,40 +0,0 @@ |
35 |
-From 8cac173827297e936a24b4bdfe73f2498dfe483a Mon Sep 17 00:00:00 2001 |
36 |
-From: Kurt Kanzenbach <kurt@×××××××××××××.de> |
37 |
-Date: Sun, 12 Jul 2020 10:57:08 +0200 |
38 |
-Subject: [PATCH 3/3] etf: Fix compiler warning/build error in etf plugin |
39 |
-MIME-Version: 1.0 |
40 |
-Content-Type: text/plain; charset=UTF-8 |
41 |
-Content-Transfer-Encoding: 8bit |
42 |
- |
43 |
-Fix the following warning/error: |
44 |
- |
45 |
-|In function ‘snprintf’, |
46 |
-| inlined from ‘UA_PubSubChannelEthernetETF_open’ at /var/tmp/portage/dev-libs/open62541-1.1/work/open62541-1.1/plugins/ua_pubsub_ethernet_etf.c:189:5, |
47 |
-| inlined from ‘TransportLayerEthernetETF_addChannel’ at /var/tmp/portage/dev-libs/open62541-1.1/work/open62541-1.1/plugins/ua_pubsub_ethernet_etf.c:563:40: |
48 |
-|/usr/include/bits/stdio2.h:67:10: error: ‘__builtin___snprintf_chk’ specified bound 40 exceeds destination size 16 [-Werror=stringop-overflow=] |
49 |
-| 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, |
50 |
-| | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
51 |
-| 68 | __bos (__s), __fmt, __va_arg_pack ()); |
52 |
-| | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
53 |
-| |
54 |
- |
55 |
-By using the correct size. |
56 |
- |
57 |
-Signed-off-by: Kurt Kanzenbach <kurt@×××××××××××××.de> |
58 |
---- |
59 |
- plugins/ua_pubsub_ethernet_etf.c | 2 +- |
60 |
- 1 file changed, 1 insertion(+), 1 deletion(-) |
61 |
- |
62 |
-Index: open62541/plugins/ua_pubsub_ethernet_etf.c |
63 |
-=================================================================== |
64 |
---- open62541.orig/plugins/ua_pubsub_ethernet_etf.c |
65 |
-+++ open62541/plugins/ua_pubsub_ethernet_etf.c |
66 |
-@@ -186,7 +186,7 @@ UA_PubSubChannelEthernetETF_open(const U |
67 |
- struct ifreq ifreq; |
68 |
- memset(&ifreq, 0, sizeof(struct ifreq)); |
69 |
- UA_UInt64 len = UA_MIN(address->networkInterface.length, sizeof(ifreq.ifr_name)-1); |
70 |
-- UA_snprintf(ifreq.ifr_name, sizeof(struct ifreq), |
71 |
-+ UA_snprintf(ifreq.ifr_name, sizeof(ifreq.ifr_name), |
72 |
- "%.*s", (int)len, |
73 |
- (char*)address->networkInterface.data); |
74 |
- |
75 |
|
76 |
diff --git a/dev-libs/open62541/files/open62541-1.1.5-headers.patch b/dev-libs/open62541/files/open62541-1.1.5-headers.patch |
77 |
deleted file mode 100644 |
78 |
index 8cedc3f06..000000000 |
79 |
--- a/dev-libs/open62541/files/open62541-1.1.5-headers.patch |
80 |
+++ /dev/null |
81 |
@@ -1,33 +0,0 @@ |
82 |
-From a5697f1eb69822e172bc31d1549222c8ca718844 Mon Sep 17 00:00:00 2001 |
83 |
-From: Kurt Kanzenbach <kurt@×××××××××××××.de> |
84 |
-Date: Sun, 12 Jul 2020 10:39:31 +0200 |
85 |
-Subject: [PATCH 2/3] cmake: Install ETF and XDP plugin headers |
86 |
- |
87 |
-When the corresponding features are enabled, the headers should be installed as |
88 |
-well. |
89 |
- |
90 |
-Signed-off-by: Kurt Kanzenbach <kurt@×××××××××××××.de> |
91 |
---- |
92 |
- CMakeLists.txt | 2 ++ |
93 |
- 1 file changed, 2 insertions(+) |
94 |
- |
95 |
-Index: open62541/CMakeLists.txt |
96 |
-=================================================================== |
97 |
---- open62541.orig/CMakeLists.txt |
98 |
-+++ open62541/CMakeLists.txt |
99 |
-@@ -877,6 +877,7 @@ if(UA_ENABLE_PUBSUB) |
100 |
- list(APPEND default_plugin_headers ${PROJECT_SOURCE_DIR}/plugins/include/open62541/plugin/pubsub_udp.h) |
101 |
- list(APPEND default_plugin_sources ${PROJECT_SOURCE_DIR}/plugins/ua_pubsub_udp.c) |
102 |
- if(UA_ENABLE_PUBSUB_ETH_UADP_ETF) |
103 |
-+ list(APPEND default_plugin_headers ${PROJECT_SOURCE_DIR}/plugins/include/open62541/plugin/pubsub_ethernet_etf.h) |
104 |
- list(APPEND default_plugin_sources ${PROJECT_SOURCE_DIR}/plugins/ua_pubsub_ethernet_etf.c) |
105 |
- endif() |
106 |
- if(UA_ENABLE_PUBSUB_ETH_UADP) |
107 |
-@@ -886,6 +887,7 @@ if(UA_ENABLE_PUBSUB) |
108 |
- if(UA_ENABLE_PUBSUB_ETH_UADP_XDP) |
109 |
- if(EXISTS "${XDP_LIBRARY}") |
110 |
- list(APPEND open62541_LIBRARIES ${XDP_LIBRARY}) |
111 |
-+ list(APPEND default_plugin_headers ${PROJECT_SOURCE_DIR}/plugins/include/open62541/plugin/pubsub_ethernet_xdp.h) |
112 |
- list(APPEND default_plugin_sources ${PROJECT_SOURCE_DIR}/plugins/ua_pubsub_ethernet_xdp.c) |
113 |
- else() |
114 |
- MESSAGE(WARNING "samples in bpf-next directory were not built. Build the bpf-next to use XDP") |
115 |
|
116 |
diff --git a/dev-libs/open62541/files/open62541-1.1.5-tests.patch b/dev-libs/open62541/files/open62541-1.1.5-tests.patch |
117 |
deleted file mode 100644 |
118 |
index 03a1bf081..000000000 |
119 |
--- a/dev-libs/open62541/files/open62541-1.1.5-tests.patch |
120 |
+++ /dev/null |
121 |
@@ -1,101 +0,0 @@ |
122 |
-From ab9a4a1c826bb662816f71020054ba2558afefc7 Mon Sep 17 00:00:00 2001 |
123 |
-From: Kurt Kanzenbach <kurt@×××××××××××××.de> |
124 |
-Date: Sat, 20 Jun 2020 14:28:57 +0200 |
125 |
-Subject: [PATCH 1/3] cmake: pubsub: Disable failing tests within portage |
126 |
- |
127 |
-The Pub/Sub tests won't work within portage. Disable them. |
128 |
- |
129 |
-Signed-off-by: Kurt Kanzenbach <kurt@×××××××××××××.de> |
130 |
---- |
131 |
- tests/CMakeLists.txt | 78 -------------------------------------------- |
132 |
- 1 file changed, 78 deletions(-) |
133 |
- |
134 |
-Index: open62541/tests/CMakeLists.txt |
135 |
-=================================================================== |
136 |
---- open62541.orig/tests/CMakeLists.txt |
137 |
-+++ open62541/tests/CMakeLists.txt |
138 |
-@@ -331,84 +331,6 @@ if(UA_ENABLE_DISCOVERY) |
139 |
- add_test_valgrind(discovery ${TESTS_BINARY_DIR}/check_discovery) |
140 |
- endif() |
141 |
- |
142 |
--if(UA_ENABLE_PUBSUB) |
143 |
-- add_executable(check_pubsub_encoding pubsub/check_pubsub_encoding.c $<TARGET_OBJECTS:open62541-object> $<TARGET_OBJECTS:open62541-testplugins>) |
144 |
-- target_link_libraries(check_pubsub_encoding ${LIBS}) |
145 |
-- add_test_valgrind(pubsub_encoding ${TESTS_BINARY_DIR}/check_pubsub_encoding) |
146 |
-- add_executable(check_pubsub_pds pubsub/check_pubsub_pds.c $<TARGET_OBJECTS:open62541-object> $<TARGET_OBJECTS:open62541-plugins>) |
147 |
-- target_link_libraries(check_pubsub_pds ${LIBS}) |
148 |
-- add_test_valgrind(pubsub_pds ${TESTS_BINARY_DIR}/check_pubsub_pds) |
149 |
-- add_executable(check_pubsub_connection_udp pubsub/check_pubsub_connection_udp.c $<TARGET_OBJECTS:open62541-object> $<TARGET_OBJECTS:open62541-plugins>) |
150 |
-- target_link_libraries(check_pubsub_connection_udp ${LIBS}) |
151 |
-- add_test_valgrind(pubsub_connection_udp ${TESTS_BINARY_DIR}/check_pubsub_connection_udp) |
152 |
-- add_executable(check_pubsub_publish pubsub/check_pubsub_publish.c $<TARGET_OBJECTS:open62541-object> $<TARGET_OBJECTS:open62541-plugins>) |
153 |
-- target_link_libraries(check_pubsub_publish ${LIBS}) |
154 |
-- add_test_valgrind(pubsub_publish ${TESTS_BINARY_DIR}/check_pubsub_publish) |
155 |
-- add_executable(check_pubsub_publish_uadp pubsub/check_pubsub_publish_uadp.c $<TARGET_OBJECTS:open62541-object> $<TARGET_OBJECTS:open62541-plugins>) |
156 |
-- target_link_libraries(check_pubsub_publish_uadp ${LIBS}) |
157 |
-- add_test_valgrind(pubsub_publish ${TESTS_BINARY_DIR}/check_pubsub_publish_uadp) |
158 |
-- |
159 |
-- #Link libraries for executing subscriber unit test |
160 |
-- add_executable(check_pubsub_subscribe pubsub/check_pubsub_subscribe.c $<TARGET_OBJECTS:open62541-object> $<TARGET_OBJECTS:open62541-plugins>) |
161 |
-- target_link_libraries(check_pubsub_subscribe ${LIBS}) |
162 |
-- add_executable(check_pubsub_publishspeed pubsub/check_pubsub_publishspeed.c $<TARGET_OBJECTS:open62541-object> $<TARGET_OBJECTS:open62541-plugins>) |
163 |
-- target_link_libraries(check_pubsub_publishspeed ${LIBS}) |
164 |
-- add_test_valgrind(pubsub_publishspeed ${TESTS_BINARY_DIR}/check_pubsub_publish) |
165 |
-- add_executable(check_pubsub_config_freeze pubsub/check_pubsub_config_freeze.c $<TARGET_OBJECTS:open62541-object> $<TARGET_OBJECTS:open62541-plugins>) |
166 |
-- target_link_libraries(check_pubsub_config_freeze ${LIBS}) |
167 |
-- add_test_valgrind(check_pubsub_config_freeze ${TESTS_BINARY_DIR}/check_pubsub_config_freeze) |
168 |
-- add_executable(check_pubsub_publish_rt_levels pubsub/check_pubsub_publish_rt_levels.c $<TARGET_OBJECTS:open62541-object> $<TARGET_OBJECTS:open62541-plugins>) |
169 |
-- target_link_libraries(check_pubsub_publish_rt_levels ${LIBS}) |
170 |
-- add_test_valgrind(check_pubsub_publish_rt_levels ${TESTS_BINARY_DIR}/check_pubsub_publish_rt_levels) |
171 |
-- |
172 |
-- add_executable(check_pubsub_multiple_layer pubsub/check_pubsub_multiple_layer.c $<TARGET_OBJECTS:open62541-object> $<TARGET_OBJECTS:open62541-plugins>) |
173 |
-- target_link_libraries(check_pubsub_multiple_layer ${LIBS}) |
174 |
-- add_test_valgrind(pubsub_multiple_layer ${TESTS_BINARY_DIR}/check_pubsub_multiple_layer) |
175 |
-- |
176 |
-- if(UA_ENABLE_PUBSUB_ETH_UADP) |
177 |
-- if(NOT UA_ENABLE_PUBSUB_ETH_UADP_ETF) |
178 |
-- add_executable(check_pubsub_connection_ethernet pubsub/check_pubsub_connection_ethernet.c $<TARGET_OBJECTS:open62541-object> $<TARGET_OBJECTS:open62541-plugins>) |
179 |
-- target_link_libraries(check_pubsub_connection_ethernet ${LIBS}) |
180 |
-- add_test_valgrind(pubsub_connection_ethernet ${TESTS_BINARY_DIR}/check_pubsub_connection_ethernet) |
181 |
-- add_executable(check_pubsub_publish_ethernet pubsub/check_pubsub_publish_ethernet.c $<TARGET_OBJECTS:open62541-object> $<TARGET_OBJECTS:open62541-plugins>) |
182 |
-- target_link_libraries(check_pubsub_publish_ethernet ${LIBS}) |
183 |
-- add_test_valgrind(pubsub_publish_ethernet ${TESTS_BINARY_DIR}/check_pubsub_publish_ethernet) |
184 |
-- endif() |
185 |
-- if(UA_ENABLE_PUBSUB_ETH_UADP_XDP) |
186 |
-- add_executable(check_pubsub_connection_xdp pubsub/check_pubsub_connection_xdp.c $<TARGET_OBJECTS:open62541-object> $<TARGET_OBJECTS:open62541-plugins>) |
187 |
-- target_link_libraries(check_pubsub_connection_xdp ${LIBS}) |
188 |
-- add_test_valgrind(pubsub_connection_xdp ${TESTS_BINARY_DIR}/check_pubsub_connection_xdp) |
189 |
-- endif() |
190 |
-- endif() |
191 |
-- if(UA_ENABLE_PUBSUB_ETH_UADP_ETF) |
192 |
-- add_executable(check_pubsub_connection_ethernet_etf pubsub/check_pubsub_connection_ethernet_etf.c $<TARGET_OBJECTS:open62541-object> $<TARGET_OBJECTS:open62541-plugins>) |
193 |
-- target_link_libraries(check_pubsub_connection_ethernet_etf ${LIBS}) |
194 |
-- add_test_valgrind(pubsub_connection_ethernet_etf ${TESTS_BINARY_DIR}/check_pubsub_connection_ethernet_etf) |
195 |
-- add_executable(check_pubsub_publish_ethernet_etf pubsub/check_pubsub_publish_ethernet_etf.c $<TARGET_OBJECTS:open62541-object> $<TARGET_OBJECTS:open62541-plugins>) |
196 |
-- target_link_libraries(check_pubsub_publish_ethernet_etf ${LIBS}) |
197 |
-- add_test_valgrind(pubsub_publish_ethernet_etf ${TESTS_BINARY_DIR}/check_pubsub_publish_ethernet_etf) |
198 |
-- endif() |
199 |
-- |
200 |
-- if(UA_ENABLE_PUBSUB_INFORMATIONMODEL) |
201 |
-- add_executable(check_pubsub_informationmodel pubsub/check_pubsub_informationmodel.c $<TARGET_OBJECTS:open62541-object> $<TARGET_OBJECTS:open62541-plugins>) |
202 |
-- target_link_libraries(check_pubsub_informationmodel ${LIBS}) |
203 |
-- add_test_valgrind(check_pubsub_informationmodel ${TESTS_BINARY_DIR}/check_pubsub_informationmodel) |
204 |
-- if(UA_ENABLE_PUBSUB_INFORMATIONMODEL_METHODS) |
205 |
-- add_executable(check_pubsub_informationmodel_methods pubsub/check_pubsub_informationmodel_methods.c $<TARGET_OBJECTS:open62541-object> $<TARGET_OBJECTS:open62541-plugins>) |
206 |
-- target_link_libraries(check_pubsub_informationmodel_methods ${LIBS}) |
207 |
-- add_test_valgrind(check_pubsub_informationmodel_methods ${TESTS_BINARY_DIR}/check_pubsub_informationmodel_methods) |
208 |
-- |
209 |
-- endif() |
210 |
-- endif() |
211 |
-- if(UA_ENABLE_PUBSUB_MQTT) |
212 |
-- if(NOT WIN32) |
213 |
-- add_executable(check_pubsub_connection_mqtt pubsub/check_pubsub_connection_mqtt.c $<TARGET_OBJECTS:open62541-object> $<TARGET_OBJECTS:open62541-plugins>) |
214 |
-- target_link_libraries(check_pubsub_connection_mqtt ${LIBS}) |
215 |
-- add_test_valgrind(pubsub_connection_mqtt ${TESTS_BINARY_DIR}/check_pubsub_connection_mqtt) |
216 |
-- endif() |
217 |
-- endif() |
218 |
--endif() |
219 |
-- |
220 |
- add_executable(check_server_readspeed server/check_server_readspeed.c $<TARGET_OBJECTS:open62541-object> $<TARGET_OBJECTS:open62541-testplugins>) |
221 |
- target_link_libraries(check_server_readspeed ${LIBS}) |
222 |
- add_test_no_valgrind(server_readspeed ${TESTS_BINARY_DIR}/check_server_readspeed) |
223 |
|
224 |
diff --git a/dev-libs/open62541/open62541-1.1.5.ebuild b/dev-libs/open62541/open62541-1.1.5.ebuild |
225 |
deleted file mode 100644 |
226 |
index f8658a835..000000000 |
227 |
--- a/dev-libs/open62541/open62541-1.1.5.ebuild |
228 |
+++ /dev/null |
229 |
@@ -1,105 +0,0 @@ |
230 |
-# Copyright 1999-2021 Gentoo Authors |
231 |
-# Distributed under the terms of the GNU General Public License v2 |
232 |
- |
233 |
-EAPI=7 |
234 |
- |
235 |
-PYTHON_COMPAT=( python3_{7..9} ) |
236 |
- |
237 |
-inherit cmake python-single-r1 |
238 |
- |
239 |
-DESCRIPTION="Open source C implementation of OPC UA" |
240 |
-HOMEPAGE="https://open62541.org/" |
241 |
-SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
242 |
- |
243 |
-LICENSE="MPL-2.0" |
244 |
-SLOT="0" |
245 |
-KEYWORDS="~amd64 ~arm64 ~x86" |
246 |
-IUSE="doc encryption examples etf mbedtls pubsub openssl test tools xdp" |
247 |
-RESTRICT="!test? ( test )" |
248 |
- |
249 |
-REQUIRED_USE=" |
250 |
- ${PYTHON_REQUIRED_USE} |
251 |
- encryption? ( || ( mbedtls openssl ) ) |
252 |
- etf? ( pubsub ) |
253 |
- xdp? ( pubsub ) |
254 |
-" |
255 |
- |
256 |
-BDEPEND=" |
257 |
- ${PYTHON_DEPS} |
258 |
- virtual/pkgconfig |
259 |
- doc? ( |
260 |
- media-gfx/graphviz |
261 |
- $(python_gen_cond_dep ' |
262 |
- dev-python/sphinx[${PYTHON_MULTI_USEDEP}] |
263 |
- dev-python/sphinx_rtd_theme[${PYTHON_MULTI_USEDEP}] |
264 |
- ') |
265 |
- ) |
266 |
- test? ( |
267 |
- dev-libs/check |
268 |
- dev-util/valgrind |
269 |
- $(python_gen_cond_dep ' |
270 |
- dev-python/subunit[${PYTHON_MULTI_USEDEP}] |
271 |
- ') |
272 |
- ) |
273 |
-" |
274 |
-DEPEND=" |
275 |
- mbedtls? ( net-libs/mbedtls:= ) |
276 |
- openssl? ( dev-libs/openssl:0= ) |
277 |
-" |
278 |
-RDEPEND=" |
279 |
- ${PYTHON_DEPS} |
280 |
- ${DEPEND} |
281 |
-" |
282 |
- |
283 |
-PATCHES=( |
284 |
- "${FILESDIR}/${P}-etf.patch" |
285 |
- "${FILESDIR}/${P}-headers.patch" |
286 |
- "${FILESDIR}/${P}-tests.patch" |
287 |
-) |
288 |
- |
289 |
-src_prepare() { |
290 |
- # bug 780912 |
291 |
- sed -i -e 's/check_add_cc_flag("-Werror")//g' CMakeLists.txt || die |
292 |
- |
293 |
- cmake_src_prepare |
294 |
-} |
295 |
- |
296 |
-src_configure() { |
297 |
- local mycmakeargs=( |
298 |
- -DBUILD_SHARED_LIBS=ON |
299 |
- -DOPEN62541_VERSION=v${PV} |
300 |
- -DUA_BUILD_EXAMPLES=OFF |
301 |
- -DUA_BUILD_TOOLS=$(usex tools) |
302 |
- -DUA_BUILD_UNIT_TESTS=$(usex test) |
303 |
- -DUA_ENABLE_ENCRYPTION=$(usex encryption) |
304 |
- -DUA_ENABLE_ENCRYPTION_MBEDTLS=$(usex mbedtls) |
305 |
- -DUA_ENABLE_ENCRYPTION_OPENSSL=$(usex openssl) |
306 |
- -DUA_ENABLE_PUBSUB=$(usex pubsub) |
307 |
- -DUA_ENABLE_PUBSUB_ETH_UADP=$(usex pubsub) |
308 |
- -DUA_ENABLE_PUBSUB_ETH_UADP_ETF=$(usex etf) |
309 |
- -DUA_ENABLE_PUBSUB_ETH_UADP_XDP=$(usex xdp) |
310 |
- ) |
311 |
- |
312 |
- cmake_src_configure |
313 |
-} |
314 |
- |
315 |
-src_compile() { |
316 |
- cmake_src_compile |
317 |
- use doc && cmake_build doc |
318 |
-} |
319 |
- |
320 |
-src_install() { |
321 |
- use doc && local HTML_DOCS=( "${WORKDIR}"/${P}_build/doc/. ) |
322 |
- cmake_src_install |
323 |
- |
324 |
- if use examples; then |
325 |
- docompress -x /usr/share/doc/${PF}/examples |
326 |
- dodoc -r examples/ |
327 |
- fi |
328 |
- |
329 |
- python_fix_shebang "${ED}" |
330 |
-} |
331 |
- |
332 |
-src_test() { |
333 |
- cmake_src_test -j1 |
334 |
-} |