mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
dev-util/rtc-testbench: new package, add 5.3
Signed-off-by: Kurt Kanzenbach <kurt@kmk-computers.de>
This commit is contained in:
1
dev-util/rtc-testbench/Manifest
Normal file
1
dev-util/rtc-testbench/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST rtc-testbench-5.3.tar.gz 2107611 BLAKE2B 9297ea4ffd77cc4d94f5b7ba873f392c4b89ee95970c205e2888a0a4f20ce20215d6db4370ee36304d4026d8acf9101b482ecd3dc3f7806f6ff364be356f4a86 SHA512 32bb6277f330d3e50ca7028043b3bbef9559074b8e436ba294e3ae9673fbd7373706759bdbca82636cd74ffef687a91d04f9fdb5520ac3cff6ef0267bc80fc2b
|
||||
21
dev-util/rtc-testbench/metadata.xml
Normal file
21
dev-util/rtc-testbench/metadata.xml
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>kurt@kmk-computers.de</email>
|
||||
<name>Kurt Kanzenbach</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
The RTC Testbench is a real-time and non-real-time traffic validation tool
|
||||
for converged real-time networks. PROFINET as well as OPC/UA PubSub and
|
||||
other configurable protocols are supported.
|
||||
</longdescription>
|
||||
<use>
|
||||
<flag name="mqtt">
|
||||
Enable logging via <pkg>app-misc/mosquitto</pkg>
|
||||
</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="github">Linutronix/RTC-Testbench</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
74
dev-util/rtc-testbench/rtc-testbench-5.3.ebuild
Normal file
74
dev-util/rtc-testbench/rtc-testbench-5.3.ebuild
Normal file
@@ -0,0 +1,74 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
LLVM_COMPAT=( {15..20} )
|
||||
PYTHON_COMPAT=( python3_{11..13} )
|
||||
|
||||
inherit cmake python-single-r1 llvm-r2
|
||||
|
||||
DESCRIPTION="RTC Testbench is a set of tools for validating Ethernet networks"
|
||||
HOMEPAGE="https://github.com/Linutronix/RTC-Testbench"
|
||||
SRC_URI="https://github.com/Linutronix/RTC-Testbench/archive/refs/tags/v${PV}.tar.gz -> ${PN}-${PV}.tar.gz"
|
||||
S="${WORKDIR}/RTC-Testbench-${PV}"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc mqtt"
|
||||
|
||||
# Generated eBPF files
|
||||
QA_PREBUILT="usr/lib*/rtc-testbench/ebpf/*.o"
|
||||
|
||||
REQUIRED_USE="
|
||||
${PYTHON_REQUIRED_USE}
|
||||
"
|
||||
|
||||
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}]
|
||||
')
|
||||
)
|
||||
$(llvm_gen_dep '
|
||||
llvm-core/clang:${LLVM_SLOT}=[llvm_targets_BPF(-)]
|
||||
')
|
||||
"
|
||||
DEPEND="
|
||||
mqtt? ( app-misc/mosquitto )
|
||||
dev-libs/libyaml
|
||||
dev-libs/libbpf:=
|
||||
dev-libs/openssl:=
|
||||
net-libs/xdp-tools
|
||||
"
|
||||
RDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
${DEPEND}
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
llvm-r2_pkg_setup
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DWITH_MQTT=$(usex mqtt)
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake_src_compile
|
||||
use doc && make -C "${S}/Documentation" html
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
use doc && HTML_DOCS=( "${S}/Documentation/_build/html" )
|
||||
}
|
||||
Reference in New Issue
Block a user