commit: 5af02aee702d9affceec0a991026e1a32de68332 Author: John Wason <wason <AT> wasontech <DOT> com> AuthorDate: Mon Sep 1 18:21:33 2025 +0000 Commit: David Roman <davidroman96 <AT> gmail <DOT> com> CommitDate: Mon Sep 1 18:21:33 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5af02aee
dev-cpp/robotraconteur: new package, add 1.2.6 Signed-off-by: John Wason <wason <AT> wasontech.com> dev-cpp/robotraconteur/Manifest | 1 + dev-cpp/robotraconteur/metadata.xml | 22 ++++++ dev-cpp/robotraconteur/robotraconteur-1.2.6.ebuild | 90 ++++++++++++++++++++++ 3 files changed, 113 insertions(+) diff --git a/dev-cpp/robotraconteur/Manifest b/dev-cpp/robotraconteur/Manifest new file mode 100644 index 0000000000..41b905bfb9 --- /dev/null +++ b/dev-cpp/robotraconteur/Manifest @@ -0,0 +1 @@ +DIST RobotRaconteur-1.2.6-Source.tar.gz 11806135 BLAKE2B 64bf2a49434b307a260e82d937b76a6fbc6353ed3499da44048e75c88c94ba6a96b713c95264c6d4cba3dcdc6745a7237a5526eb95c593ffc6733c63e25feafa SHA512 ff5934182b6e97a1f07c11623d9ec570ab762ac915eb74b38f0e21f9d76cc6e779f8faf7a32fb684ef54738474c89c60c8f7401785262d54bd48dfe805c642b8 diff --git a/dev-cpp/robotraconteur/metadata.xml b/dev-cpp/robotraconteur/metadata.xml new file mode 100644 index 0000000000..92e421eca1 --- /dev/null +++ b/dev-cpp/robotraconteur/metadata.xml @@ -0,0 +1,22 @@ +<?xml version="1.0"?> +<pkgmetadata> + <maintainer type="person"> + <name>John Wason</name> + <email>[email protected]</email> + </maintainer> + <maintainer type="project"> + <email>[email protected]</email> + <name>Proxy Maintainers</name> + </maintainer> + <upstream> + <remote-id type="github">robotraconteur/robotraconteur</remote-id> + <bugs-to>https://github.com/robotraconteur/robotraconteur/issues</bugs-to> + <doc>http://robotraconteur.com</doc> + </upstream> + <longdescription lang="en"> + Robot Raconteur C++ library with Python bindings. See http://robotraconteur.com for documentation. + </longdescription> + <use> + <flag name="python">Enable Python bindings</flag> + </use> +</pkgmetadata> diff --git a/dev-cpp/robotraconteur/robotraconteur-1.2.6.ebuild b/dev-cpp/robotraconteur/robotraconteur-1.2.6.ebuild new file mode 100644 index 0000000000..c7e9b967bb --- /dev/null +++ b/dev-cpp/robotraconteur/robotraconteur-1.2.6.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} ) + +inherit cmake python-r1 + +DESCRIPTION="Robot Raconteur C++ library with Python bindings" +HOMEPAGE="https://github.com/robotraconteur/robotraconteur" +SRC_URI="https://github.com/robotraconteur/robotraconteur/releases/download/v${PV}/RobotRaconteur-${PV}-Source.tar.gz" + +S="${WORKDIR}/RobotRaconteur-${PV}-Source" + +LICENSE="Apache-2.0" +SLOT="1/${PV}" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +IUSE="python" + +DEPEND="dev-libs/boost + dev-libs/openssl + dev-libs/libusb + sys-apps/dbus + net-wireless/bluez + dev-build/cmake + python? ( dev-python/numpy[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/pip[${PYTHON_USEDEP}] ) +" +RDEPEND=" + ${DEPEND} + python? ( + ${PYTHON_DEPS} + ) +" + +REQUIRED_USE=" + python? ( ${PYTHON_REQUIRED_USE} ) +" + +python_configure() { + local mycmakeargs=( + -DCMAKE_SKIP_RPATH=ON + -DBUILD_GEN=ON + -DBUILD_TESTING=OFF + -DBUILD_DOCUMENTATION=OFF + -DBUILD_PYTHON3=ON + -DINSTALL_PYTHON3_PIP=ON + -DINSTALL_PYTHON3_PIP_EXTRA_ARGS="--compile --use-pep517 --no-build-isolation --no-deps --root-user-action=ignore" + -DROBOTRACONTEURCORE_SOVERSION_MAJOR_ONLY=ON + ) + cmake_src_configure +} + +src_configure() { + if use python; then + python_foreach_impl python_configure + else + local mycmakeargs=( + -DCMAKE_SKIP_RPATH=ON + -DBUILD_GEN=ON + -DBUILD_TESTING=OFF + -DBUILD_DOCUMENTATION=OFF + -DROBOTRACONTEURCORE_SOVERSION_MAJOR_ONLY=ON + ) + cmake_src_configure + fi +} + +src_compile() { + if use python; then + python_foreach_impl cmake_src_compile + else + cmake_src_compile + fi +} + +python_install(){ + cmake_src_install + python_optimize "${D}$(python_get_sitedir)/RobotRaconteur" || die "Failed to optimize Python files" +} + +src_install() { + if use python; then + python_foreach_impl python_install + else + cmake_src_install + fi +}
