# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 CMAKE_ECLASS="cmake" inherit cmake ros-catkin DESCRIPTION="Open source lighthouse tracking system" HOMEPAGE="https://github.com/cntools/libsurvive" if [[ ${PV} = *9999* ]] ; then inherit git-r3 EGIT_REPO_URI="https://github.com/cntools/libsurvive.git" else SRC_URI="https://github.com/cntools/${PN}/releases/download/v${PV}/${PN}-v${PV}-source.zip -> ${P}.zip" KEYWORDS="~amd64" S="${WORKDIR}"/${PN} fi LICENSE="MIT" SLOT="0" RDEPEND=" dev-ros/roscpp dev-ros/tf " DEPEND="${RDEPEND} dev-ros/geometry_msgs" BDEPEND=">=dev-util/cmake-3.10.0" src_prepare() { sed -i "s|SET(LIB_INSTALL_DIR \"lib\/\"|SET(LIB_INSTALL_DIR \"$(get_libdir)/\"|" src/CMakeLists.txt sed -i "s|link_directories(\${CMAKE_INSTALL_PREFIX}/lib)|link_directories($(get_libdir))|" ./CMakeLists.txt ros-catkin_src_prepare }