summaryrefslogtreecommitdiff
path: root/dev-cpp/robotraconteur
diff options
context:
space:
mode:
Diffstat (limited to 'dev-cpp/robotraconteur')
-rw-r--r--dev-cpp/robotraconteur/Manifest1
-rw-r--r--dev-cpp/robotraconteur/metadata.xml23
-rw-r--r--dev-cpp/robotraconteur/robotraconteur-1.2.6.ebuild90
3 files changed, 114 insertions, 0 deletions
diff --git a/dev-cpp/robotraconteur/Manifest b/dev-cpp/robotraconteur/Manifest
new file mode 100644
index 000000000000..41b905bfb91e
--- /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 000000000000..643e865ee088
--- /dev/null
+++ b/dev-cpp/robotraconteur/metadata.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>wason@wasontech.com</email>
+ <name>John Wason</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <longdescription lang="en">
+ Robot Raconteur C++ library with Python bindings. See http://robotraconteur.com for documentation.
+ </longdescription>
+ <upstream>
+ <bugs-to>https://github.com/robotraconteur/robotraconteur/issues</bugs-to>
+ <doc>http://robotraconteur.com</doc>
+ </upstream>
+ <use>
+ <flag name="python">Enable Python bindings</flag>
+ </use>
+ <origin>gentoo-guru-overlay</origin>
+</pkgmetadata> \ No newline at end of file
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 000000000000..2a9644dc4866
--- /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_{9,10,11,12,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
+}