summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-ros/calibration_estimation/calibration_estimation-0.10.15-r1.ebuild (renamed from dev-ros/calibration_estimation/calibration_estimation-0.10.15.ebuild)0
-rw-r--r--dev-ros/calibration_estimation/calibration_estimation-9999.ebuild20
2 files changed, 14 insertions, 6 deletions
diff --git a/dev-ros/calibration_estimation/calibration_estimation-0.10.15.ebuild b/dev-ros/calibration_estimation/calibration_estimation-0.10.15-r1.ebuild
index 65951f6a974b..65951f6a974b 100644
--- a/dev-ros/calibration_estimation/calibration_estimation-0.10.15.ebuild
+++ b/dev-ros/calibration_estimation/calibration_estimation-0.10.15-r1.ebuild
diff --git a/dev-ros/calibration_estimation/calibration_estimation-9999.ebuild b/dev-ros/calibration_estimation/calibration_estimation-9999.ebuild
index 65951f6a974b..860c62b9d87d 100644
--- a/dev-ros/calibration_estimation/calibration_estimation-9999.ebuild
+++ b/dev-ros/calibration_estimation/calibration_estimation-9999.ebuild
@@ -14,16 +14,18 @@ SLOT="0"
IUSE=""
RDEPEND="
- $(python_gen_cond_dep "dev-python/numpy[\${PYTHON_USEDEP}]")
dev-ros/rosgraph[${PYTHON_SINGLE_USEDEP}]
dev-ros/roslib[${PYTHON_SINGLE_USEDEP}]
- $(python_gen_cond_dep "dev-python/rospkg[\${PYTHON_USEDEP}]")
dev-ros/rospy[${PYTHON_SINGLE_USEDEP}]
dev-ros/calibration_msgs[${CATKIN_MESSAGES_PYTHON_USEDEP}]
- $(python_gen_cond_dep "dev-python/matplotlib[\${PYTHON_USEDEP}]")
- $(python_gen_cond_dep "dev-python/python_orocos_kdl[\${PYTHON_USEDEP}]")
- $(python_gen_cond_dep "dev-python/scipy[\${PYTHON_USEDEP}]")
- $(python_gen_cond_dep "dev-python/urdf_parser_py[\${PYTHON_USEDEP}]")
+ $(python_gen_cond_dep '
+ dev-python/numpy[${PYTHON_USEDEP}]
+ dev-python/rospkg[${PYTHON_USEDEP}]
+ dev-python/matplotlib[${PYTHON_USEDEP}]
+ dev-python/python_orocos_kdl[${PYTHON_USEDEP}]
+ dev-python/scipy[${PYTHON_USEDEP}]
+ dev-python/urdf_parser_py[${PYTHON_USEDEP}]
+ ')
"
DEPEND="${RDEPEND}
test? (
@@ -33,6 +35,7 @@ DEPEND="${RDEPEND}
src_prepare() {
ros-catkin_src_prepare
+ 2to3 -n -w --no-diffs test/*.py src/${PN}/{,sensors/}*.py || die
sed -e 's/yaml.load/yaml.safe_load/g' -i src/*/*.py -i test/*.py || die
}
@@ -40,3 +43,8 @@ src_test() {
export ROS_PACKAGE_PATH="${S}:${ROS_PACKAGE_PATH}"
ros-catkin_src_test
}
+
+src_install() {
+ ros-catkin_src_install
+ python_optimize
+}