diff options
Diffstat (limited to 'dev-ros/opencv_apps/opencv_apps-9999.ebuild')
-rw-r--r-- | dev-ros/opencv_apps/opencv_apps-9999.ebuild | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/dev-ros/opencv_apps/opencv_apps-9999.ebuild b/dev-ros/opencv_apps/opencv_apps-9999.ebuild index bb49ddbddb1e..d53270120b50 100644 --- a/dev-ros/opencv_apps/opencv_apps-9999.ebuild +++ b/dev-ros/opencv_apps/opencv_apps-9999.ebuild @@ -13,6 +13,10 @@ 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 @@ -35,5 +39,22 @@ DEPEND="${RDEPEND} 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 +} |