dev-ros/pluginlib: set proper pathes for tests

Closes: https://bugs.gentoo.org/624934
Package-Manager: Portage-3.0.1, Repoman-2.3.23
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
This commit is contained in:
Alexis Ballier
2020-07-29 20:05:52 +02:00
parent aef048ef50
commit e3a611e378
2 changed files with 22 additions and 0 deletions

View File

@@ -24,3 +24,14 @@ RDEPEND="
DEPEND="${RDEPEND}
test? ( dev-cpp/gtest )"
PATCHES=( "${FILESDIR}/catkin_prefix_path2.patch" )
src_test() {
cmake_build tests
export ROS_PACKAGE_PATH="${S}:${ROS_PACKAGE_PATH}"
if [ ! -e "${BUILD_DIR}/devel/lib" ] ; then
ln -s $(get_libdir) "${BUILD_DIR}/devel/lib" || die
fi
export CATKIN_PREFIX_PATH=devel/
ros-catkin_src_test
}

View File

@@ -24,3 +24,14 @@ RDEPEND="
DEPEND="${RDEPEND}
test? ( dev-cpp/gtest )"
PATCHES=( "${FILESDIR}/catkin_prefix_path2.patch" )
src_test() {
cmake_build tests
export ROS_PACKAGE_PATH="${S}:${ROS_PACKAGE_PATH}"
if [ ! -e "${BUILD_DIR}/devel/lib" ] ; then
ln -s $(get_libdir) "${BUILD_DIR}/devel/lib" || die
fi
export CATKIN_PREFIX_PATH=devel/
ros-catkin_src_test
}