summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2020-08-27 12:01:31 +0200
committerAlexis Ballier <aballier@gentoo.org>2020-08-31 11:10:06 +0200
commit0eaa89c613294accaff04ee2c05c6d488254d756 (patch)
tree7cef2568fd201c0a078a19d37c4da3bf03871e0e /dev-ros
parentdev-ros/opencv_apps: add missing test dep (diff)
downloadgentoo-0eaa89c613294accaff04ee2c05c6d488254d756.tar.gz
gentoo-0eaa89c613294accaff04ee2c05c6d488254d756.tar.bz2
gentoo-0eaa89c613294accaff04ee2c05c6d488254d756.zip
dev-ros/opencv_apps: prefetch test data
Package-Manager: Portage-3.0.3, Repoman-3.0.0 Signed-off-by: Alexis Ballier <aballier@gentoo.org>
Diffstat (limited to 'dev-ros')
-rw-r--r--dev-ros/opencv_apps/Manifest4
-rw-r--r--dev-ros/opencv_apps/opencv_apps-2.0.2.ebuild20
-rw-r--r--dev-ros/opencv_apps/opencv_apps-9999.ebuild20
3 files changed, 44 insertions, 0 deletions
diff --git a/dev-ros/opencv_apps/Manifest b/dev-ros/opencv_apps/Manifest
index bf5a37ab155d..54a72dbd625a 100644
--- a/dev-ros/opencv_apps/Manifest
+++ b/dev-ros/opencv_apps/Manifest
@@ -1 +1,5 @@
+DIST opencv_apps-2.0.2-face_detector_withface_test_diamondback.bag 124489590 BLAKE2B a115cc48739ce6b422ea83bb763e3371b40b67febbfb650ffd114caf0cbc5d91d9e83cbdcc7330e9eed2735224ca5ee081cba4480607bdb0c5036e6704641c84 SHA512 944ba8649612283444c1bc191c0f2d502c52aa12d6edaf4615360e17c4c1cdc014e92dd0fe997718c6bd3a7b64e668fa117b0680449c169c99c5e516383d8597
+DIST opencv_apps-2.0.2-vslam_tutorial.bag 467607323 BLAKE2B 11d386de93fea9703f4ab5a807f47082da2f139102aa44ec6cb00f0785b2f129e98eb682ebd8e5c3a51b6919f17fe43d5e9c7ad7ef2d1d8dd328193849d4379b SHA512 82db8d7073d47e870604d21035fd5061a484ecf69c3d0f1d747938f435788b51fc8370e54ad5a0efa14ec28b529b52393514e3a753463fbc4824b0b51c285f25
DIST opencv_apps-2.0.2.tar.gz 84924 BLAKE2B 1c305bf4f6f64f1f92675264b80c167f4ca0a751ef1901c7112171a82b139a836c7be6afa3f0f493d60d295261c3877c129bb00d69b9542d28e16cd91b6772c3 SHA512 86b5ca3be54b839fc4aa0c786d5a181b85c2c2585c1bed2c2acc273ad66464c1d58fda96f63d4cb474d21d7b203f9c725110d2702c218a28361fdfc6c857fd88
+DIST opencv_apps-9999-face_detector_withface_test_diamondback.bag 124489590 BLAKE2B a115cc48739ce6b422ea83bb763e3371b40b67febbfb650ffd114caf0cbc5d91d9e83cbdcc7330e9eed2735224ca5ee081cba4480607bdb0c5036e6704641c84 SHA512 944ba8649612283444c1bc191c0f2d502c52aa12d6edaf4615360e17c4c1cdc014e92dd0fe997718c6bd3a7b64e668fa117b0680449c169c99c5e516383d8597
+DIST opencv_apps-9999-vslam_tutorial.bag 467607323 BLAKE2B 11d386de93fea9703f4ab5a807f47082da2f139102aa44ec6cb00f0785b2f129e98eb682ebd8e5c3a51b6919f17fe43d5e9c7ad7ef2d1d8dd328193849d4379b SHA512 82db8d7073d47e870604d21035fd5061a484ecf69c3d0f1d747938f435788b51fc8370e54ad5a0efa14ec28b529b52393514e3a753463fbc4824b0b51c285f25
diff --git a/dev-ros/opencv_apps/opencv_apps-2.0.2.ebuild b/dev-ros/opencv_apps/opencv_apps-2.0.2.ebuild
index aa89cbe96f82..d53270120b50 100644
--- a/dev-ros/opencv_apps/opencv_apps-2.0.2.ebuild
+++ b/dev-ros/opencv_apps/opencv_apps-2.0.2.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
@@ -38,3 +42,19 @@ DEPEND="${RDEPEND}
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
+}
diff --git a/dev-ros/opencv_apps/opencv_apps-9999.ebuild b/dev-ros/opencv_apps/opencv_apps-9999.ebuild
index aa89cbe96f82..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
@@ -38,3 +42,19 @@ DEPEND="${RDEPEND}
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
+}