diff options
Diffstat (limited to 'dev-ros/opencv_apps/opencv_apps-2.0.2.ebuild')
-rw-r--r-- | dev-ros/opencv_apps/opencv_apps-2.0.2.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/dev-ros/opencv_apps/opencv_apps-2.0.2.ebuild b/dev-ros/opencv_apps/opencv_apps-2.0.2.ebuild new file mode 100644 index 000000000000..d53270120b50 --- /dev/null +++ b/dev-ros/opencv_apps/opencv_apps-2.0.2.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +ROS_REPO_URI="https://github.com/ros-perception/opencv_apps" +KEYWORDS="~amd64 ~arm" +CATKIN_HAS_MESSAGES=yes +CATKIN_MESSAGES_TRANSITIVE_DEPS="dev-ros/std_msgs" + +inherit ros-catkin + +DESCRIPTION="OpenCV applications for ROS" +LICENSE="BSD" +SLOT="0" +IUSE="" +SRC_URI="${SRC_URI} + http://download.ros.org/data/face_detector/face_detector_withface_test_diamondback.bag -> ${P}-face_detector_withface_test_diamondback.bag + http://download.ros.org/data/vslam_system/vslam_tutorial.bag -> ${P}-vslam_tutorial.bag +" + +RDEPEND=" + dev-ros/cv_bridge + dev-ros/dynamic_reconfigure[${PYTHON_SINGLE_USEDEP}] + dev-ros/image_transport + dev-ros/nodelet + dev-libs/console_bridge:= + dev-ros/roscpp + >=media-libs/opencv-3.3:0=[contrib] + dev-libs/boost:= +" +DEPEND="${RDEPEND} + dev-ros/std_srvs[${CATKIN_MESSAGES_CXX_USEDEP}] + test? ( + dev-ros/roslaunch + dev-ros/rostest + dev-ros/rosbag + dev-ros/rosservice + dev-ros/rostopic + dev-ros/image_proc + dev-ros/topic_tools + dev-ros/compressed_image_transport + dev-ros/image_view + ) +" + +src_prepare() { + ros-catkin_src_prepare + for i in face_detector_withface_test_diamondback.bag vslam_tutorial.bag ; do + cp "${DISTDIR}/${P}-${i}" "${S}/${i}" || die + done + sed \ + -e "s#http://download.ros.org/data/face_detector#file://${S}#" \ + -e "s#http://download.ros.org/data/vslam_system#file://${S}#" \ + -i test/CMakeLists.txt || die +} + +src_test() { + export ROS_PACKAGE_PATH="${S}:${ROS_PACKAGE_PATH}" + ros-catkin_src_test +} |