Skip to content

Commit

Permalink
dev-libs/open62541: add 1.4.4
Browse files Browse the repository at this point in the history
Signed-off-by: Kurt Kanzenbach <[email protected]>
  • Loading branch information
shifty91 committed Sep 7, 2024
1 parent a4b53ad commit ead358d
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 0 deletions.
1 change: 1 addition & 0 deletions dev-libs/open62541/Manifest
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
DIST open62541-1.4.3.tar.gz 4198524 BLAKE2B 8dbafa568381a93e2c6e5c95a51a193b63330cb980f4ea7026fb19d5c1d8519fcc345789520dbb68757a3fd9b41b19027bca4148ccc4d321f44a355365ae7ff6 SHA512 53388315eb78ad74b947f36ab92de0431c936d7a42883331e1145b5636cfcc82c45a060001296e9b45373b5755e870d3919a85f598dc441dc89bbf3da5e3f734
DIST open62541-1.4.4.tar.gz 4198326 BLAKE2B 57b4fe26e71f8de05e62542632d5a0747614812f0658cd4c788bc9c72f290d21b0d40ded8d0c06d1087620e25e6796906b81061256a791e2ef6a832f8d0e39a4 SHA512 8702cd80d0e7950cad20aefba794e3a9ae40cb8f303794387b10d8cf9ea70fd02afc80d76e0244092b49c4be9dd43f84eb658b3f9f7e9f6ef4410e0983b22b46
82 changes: 82 additions & 0 deletions dev-libs/open62541/open62541-1.4.4.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{10..13} )

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 examples mbedtls pubsub openssl tools"
# Requires network access
RESTRICT="test"

REQUIRED_USE="
${PYTHON_REQUIRED_USE}
?? ( 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}
"

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_HARDENING=OFF
-DUA_ENABLE_PUBSUB=$(usex pubsub)
-DUA_ENABLE_PUBSUB_INFORMATIONMODEL=$(usex pubsub)
-DUA_FORCE_WERROR=OFF
)

use mbedtls && mycmakeargs+=(-DUA_ENABLE_ENCRYPTION=MBEDTLS)
use openssl && mycmakeargs+=(-DUA_ENABLE_ENCRYPTION=OPENSSL)

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
}

src_test() {
cmake_src_test -j1
}

0 comments on commit ead358d

Please sign in to comment.