dev-cpp/robotraconteur: new package, add 1.2.6

Signed-off-by: John Wason <wason@wasontech.com>
This commit is contained in:
John Wason
2025-09-01 18:21:33 +00:00
parent b325b4e0d5
commit 5af02aee70
3 changed files with 113 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST RobotRaconteur-1.2.6-Source.tar.gz 11806135 BLAKE2B 64bf2a49434b307a260e82d937b76a6fbc6353ed3499da44048e75c88c94ba6a96b713c95264c6d4cba3dcdc6745a7237a5526eb95c593ffc6733c63e25feafa SHA512 ff5934182b6e97a1f07c11623d9ec570ab762ac915eb74b38f0e21f9d76cc6e779f8faf7a32fb684ef54738474c89c60c8f7401785262d54bd48dfe805c642b8

View File

@@ -0,0 +1,22 @@
<?xml version="1.0"?>
<pkgmetadata>
<maintainer type="person">
<name>John Wason</name>
<email>wason@wasontech.com</email>
</maintainer>
<maintainer type="project">
<email>proxy-maint@gentoo.org</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>

View File

@@ -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
}