From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3B7AF158089 for ; Sun, 24 Sep 2023 00:34:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D79AF2BC053; Sun, 24 Sep 2023 00:33:59 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C06D02BC053 for ; Sun, 24 Sep 2023 00:33:59 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 061BF3408A6 for ; Sun, 24 Sep 2023 00:33:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2ECB7124C for ; Sun, 24 Sep 2023 00:33:56 +0000 (UTC) From: "David Roman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Roman" Message-ID: <1695368862.e7e5a3870a3e2132b0ba16f22f5b050fe7141aaa.davidroman@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-libs/open62541/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-libs/open62541/Manifest dev-libs/open62541/open62541-1.3.7.ebuild X-VCS-Directories: dev-libs/open62541/ X-VCS-Committer: davidroman X-VCS-Committer-Name: David Roman X-VCS-Revision: e7e5a3870a3e2132b0ba16f22f5b050fe7141aaa X-VCS-Branch: master Date: Sun, 24 Sep 2023 00:33:56 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 14515005-cfe6-4aa3-9149-2a32bab938da X-Archives-Hash: 417e2cbbae75153fd56a5d6478155ff2 commit: e7e5a3870a3e2132b0ba16f22f5b050fe7141aaa Author: Kurt Kanzenbach kmk-computers de> AuthorDate: Fri Sep 22 07:47:42 2023 +0000 Commit: David Roman gmail com> CommitDate: Fri Sep 22 07:47:42 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e7e5a387 dev-libs/open62541: add 1.3.7 Signed-off-by: Kurt Kanzenbach kmk-computers.de> dev-libs/open62541/Manifest | 1 + dev-libs/open62541/open62541-1.3.7.ebuild | 89 +++++++++++++++++++++++++++++++ 2 files changed, 90 insertions(+) diff --git a/dev-libs/open62541/Manifest b/dev-libs/open62541/Manifest index 80992b4748..df6319f749 100644 --- a/dev-libs/open62541/Manifest +++ b/dev-libs/open62541/Manifest @@ -1 +1,2 @@ DIST open62541-1.3.6.tar.gz 3870528 BLAKE2B 588a56f0dd9e8d78482c6fd3ce9324f4f3e031ff64de7c67a4eaaa9914e47454878cfa893c5a4c2ba3212cabbd0a3ae17742c41fce374a906ec25b73246089b1 SHA512 5e8d5e438a1550c0c4365147851f85c7f90a9f390d657f9280e1506b85bfd95136199512a63d24dd0df956d908aa724197ebca8ed9a5c6badcdab2ba40add0a3 +DIST open62541-1.3.7.tar.gz 3871057 BLAKE2B 68bd5f2090dc94cbfa7e0b299e744371559fb580fcc32f6bb02ab3d3aadb90454e75a9478f1997a630d04ce14696289b79e7aab375c5e55ac82d3f2c3f97e0fb SHA512 c0598642eaddf24313b22f01b95646aed508aaf1d39f8f6cbcc9ffa679fab73c9407e880480a39e50deb16fa5f36d769183d8fe4589f7ac54d97142d2a27a84b diff --git a/dev-libs/open62541/open62541-1.3.7.ebuild b/dev-libs/open62541/open62541-1.3.7.ebuild new file mode 100644 index 0000000000..e76cdfe025 --- /dev/null +++ b/dev-libs/open62541/open62541-1.3.7.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..11} ) + +inherit cmake python-single-r1 + +DESCRIPTION="Open source C implementation of OPC UA" +HOMEPAGE="https://www.open62541.org/" +SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MPL-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="doc encryption examples mbedtls pubsub openssl tools" +# Requires network access +RESTRICT="test" + +REQUIRED_USE=" + ${PYTHON_REQUIRED_USE} + encryption? ( || ( mbedtls openssl ) ) +" + +BDEPEND=" + ${PYTHON_DEPS} + virtual/pkgconfig + doc? ( + media-gfx/graphviz + $(python_gen_cond_dep ' + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/sphinx-rtd-theme[${PYTHON_USEDEP}] + ') + ) +" +DEPEND=" + mbedtls? ( net-libs/mbedtls:= ) + openssl? ( dev-libs/openssl:0= ) +" +RDEPEND=" + ${PYTHON_DEPS} + ${DEPEND} +" + +PATCHES=( + "${FILESDIR}/${PN}-1.3.5-disable-xdp.patch" +) + +src_configure() { + local mycmakeargs=( + -DBUILD_SHARED_LIBS=ON + -DOPEN62541_VERSION=v${PV} + -DUA_BUILD_EXAMPLES=OFF + -DUA_BUILD_TOOLS=$(usex tools) + -DUA_BUILD_UNIT_TESTS=OFF + -DUA_ENABLE_PUBSUB=$(usex pubsub) + -DUA_ENABLE_PUBSUB_ETH_UADP=$(usex pubsub) + -DUA_FORCE_WERROR=OFF + ) + + if use encryption; then + use mbedtls && mycmakeargs+=(-DUA_ENABLE_ENCRYPTION=MBEDTLS) + use openssl && mycmakeargs+=(-DUA_ENABLE_ENCRYPTION=OPENSSL) + fi + + cmake_src_configure +} + +src_compile() { + cmake_src_compile + use doc && cmake_build doc +} + +src_install() { + use doc && local HTML_DOCS=( "${WORKDIR}"/${P}_build/doc/. ) + cmake_src_install + + if use examples; then + docompress -x /usr/share/doc/${PF}/examples + dodoc -r examples/ + fi + + python_fix_shebang "${ED}" +} + +src_test() { + cmake_src_test -j1 +}