diff options
author | Alexis Ballier <aballier@gentoo.org> | 2023-01-02 17:55:17 +0100 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2023-02-23 17:34:53 +0100 |
commit | b1dfbf66cdb74748792875e54ca5c3380955fb3d (patch) | |
tree | 57b5aecde1d2eaa3babdaa10581ad54e8d9dfa49 /sci-libs/rtabmap | |
parent | app-emulation/diskimage-builder: drop 3.25.0 (diff) | |
download | gentoo-b1dfbf66cdb74748792875e54ca5c3380955fb3d.tar.gz gentoo-b1dfbf66cdb74748792875e54ca5c3380955fb3d.tar.bz2 gentoo-b1dfbf66cdb74748792875e54ca5c3380955fb3d.zip |
sci-libs/rtabmap: bump to 0.20.22
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
Diffstat (limited to 'sci-libs/rtabmap')
-rw-r--r-- | sci-libs/rtabmap/Manifest | 1 | ||||
-rw-r--r-- | sci-libs/rtabmap/files/vtk.patch | 12 | ||||
-rw-r--r-- | sci-libs/rtabmap/rtabmap-0.20.22.ebuild | 68 |
3 files changed, 81 insertions, 0 deletions
diff --git a/sci-libs/rtabmap/Manifest b/sci-libs/rtabmap/Manifest index 691d91fcd682..c98c0621d010 100644 --- a/sci-libs/rtabmap/Manifest +++ b/sci-libs/rtabmap/Manifest @@ -1 +1,2 @@ DIST rtabmap-0.20.18.tar.gz 21545395 BLAKE2B 1cd7727cc499f0c78fa62f94fca4517e9a5f1eb79e0690683da1c61536542a6d3e342794f4282c92aa725be221fd88afb1f730cc8e431bb9ac293bd73e7146cf SHA512 313b95ba741ecbbec721ce3c339b508e75578f2b85f23739d22ddda5be28c03104e9bb6c4ab8a45ac2225bd72c7b9e84b4c5a5ae7bd4d04b1bb054566be23fff +DIST rtabmap-0.20.22.tar.gz 21920843 BLAKE2B a430d6ba52a6496adb3dda2cec636d351f541a4052daff75edd69af5318ed24351205c7fe3c4740f490d1a999b90608f70630a78ce3e6bceed85b26a3d81e9ad SHA512 29554bf62f09d55fe4df2c777495ab849e3911119493cb3fd6cdf3319cb6e7f2d9b2b25930a49e40403f64049b0bcbd514e7ae7b2f6a3ac3affe61c19f1e7e39 diff --git a/sci-libs/rtabmap/files/vtk.patch b/sci-libs/rtabmap/files/vtk.patch new file mode 100644 index 000000000000..adb80216a8da --- /dev/null +++ b/sci-libs/rtabmap/files/vtk.patch @@ -0,0 +1,12 @@ +Index: rtabmap-0.20.22-rolling/guilib/src/opencv/vtkImageMatSource.cpp +=================================================================== +--- rtabmap-0.20.22-rolling.orig/guilib/src/opencv/vtkImageMatSource.cpp ++++ rtabmap-0.20.22-rolling/guilib/src/opencv/vtkImageMatSource.cpp +@@ -48,6 +48,7 @@ + #include <vtkInformationVector.h> + #include <vtkStreamingDemandDrivenPipeline.h> + #include <vtkObjectFactory.h> ++#include <vtkVersionMacros.h> + + namespace rtabmap { + vtkStandardNewMacro(vtkImageMatSource); diff --git a/sci-libs/rtabmap/rtabmap-0.20.22.ebuild b/sci-libs/rtabmap/rtabmap-0.20.22.ebuild new file mode 100644 index 000000000000..480f83d5b6bb --- /dev/null +++ b/sci-libs/rtabmap/rtabmap-0.20.22.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +SCM="" +if [ "${PV#9999}" != "${PV}" ] ; then + SCM="git-r3" + EGIT_REPO_URI="https://github.com/introlab/rtabmap" +fi + +inherit ${SCM} cmake multilib + +VER_SUFFIX=rolling + +if [ "${PV#9999}" != "${PV}" ] ; then + SRC_URI="" +else + KEYWORDS="~amd64" + SRC_URI="https://github.com/introlab/rtabmap/archive/${PV}-${VER_SUFFIX}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${P}-${VER_SUFFIX}" +fi + +DESCRIPTION="Real-Time Appearance-Based Mapping (RGB-D Graph SLAM)" +HOMEPAGE="http://introlab.github.io/rtabmap/" +LICENSE="BSD" +SLOT="0" +IUSE="examples ieee1394 openni2 qt5" + +RDEPEND=" + media-libs/opencv:=[qt5(-)?] + sci-libs/pcl:=[openni,vtk,qt5(-)?] + sci-libs/vtk:=[qt5(-)?] + sys-libs/zlib + sci-libs/octomap:= + dev-libs/boost:= + dev-cpp/yaml-cpp:= + ieee1394? ( media-libs/libdc1394:2= ) + openni2? ( dev-libs/OpenNI2 ) + qt5? ( + dev-qt/qtwidgets:5 + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtsvg:5 + ) +" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( "${FILESDIR}/yamlcpp.patch" "${FILESDIR}/vtk.patch" ) + +src_configure() { + local mycmakeargs=( + "-DWITH_QT=$(usex qt5 ON OFF)" + "-DWITH_DC1394=$(usex ieee1394 ON OFF)" + "-DWITH_OPENNI2=$(usex openni2 ON OFF)" + "-DBUILD_EXAMPLES=$(usex examples ON OFF)" + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + # Needed since we force ros crawling to be done only in + # /usr/share/ros_packages/ + insinto /usr/share/ros_packages/${PN} + doins "${ED}/usr/share/${PN}/package.xml" +} |