You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.5 KiB
61 lines
1.5 KiB
4 years ago
|
# Copyright 1999-2020 Gentoo Authors
|
||
7 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
4 years ago
|
EAPI=7
|
||
7 years ago
|
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=""
|
||
4 years ago
|
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
|
||
|
"
|
||
7 years ago
|
|
||
|
RDEPEND="
|
||
|
dev-ros/cv_bridge
|
||
4 years ago
|
dev-ros/dynamic_reconfigure[${PYTHON_SINGLE_USEDEP}]
|
||
7 years ago
|
dev-ros/image_transport
|
||
|
dev-ros/nodelet
|
||
7 years ago
|
dev-libs/console_bridge:=
|
||
7 years ago
|
dev-ros/roscpp
|
||
|
>=media-libs/opencv-3.3:0=[contrib]
|
||
|
dev-libs/boost:=
|
||
|
"
|
||
4 years ago
|
DEPEND="${RDEPEND}
|
||
|
dev-ros/std_srvs[${CATKIN_MESSAGES_CXX_USEDEP}]
|
||
4 years ago
|
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
|
||
4 years ago
|
dev-ros/image_view
|
||
4 years ago
|
)
|
||
4 years ago
|
"
|
||
4 years ago
|
|
||
|
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
|
||
|
}
|