diff options
Diffstat (limited to 'dev-ros/rosconsole/rosconsole-1.13.9.ebuild')
-rw-r--r-- | dev-ros/rosconsole/rosconsole-1.13.9.ebuild | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/dev-ros/rosconsole/rosconsole-1.13.9.ebuild b/dev-ros/rosconsole/rosconsole-1.13.9.ebuild new file mode 100644 index 000000000000..247659b7d3ab --- /dev/null +++ b/dev-ros/rosconsole/rosconsole-1.13.9.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +ROS_REPO_URI="https://github.com/ros/rosconsole" +KEYWORDS="~amd64 ~arm" + +inherit ros-catkin + +DESCRIPTION="ROS console output library" +LICENSE="BSD" +SLOT="0" +IUSE="+log4cxx glog" + +RDEPEND=" + dev-ros/cpp_common + dev-ros/rostime + dev-ros/rosunit + dev-libs/boost:=[threads] + log4cxx? ( dev-libs/log4cxx ) + !log4cxx? ( glog? ( dev-cpp/glog ) ) +" +DEPEND="${RDEPEND}" + +src_configure() { + local ROSCONSOLE_BACKEND="" + if use log4cxx; then + ROSCONSOLE_BACKEND="log4cxx" + elif use glog; then + ROSCONSOLE_BACKEND="glog" + else + ROSCONSOLE_BACKEND="print" + fi + local mycatkincmakeargs=( "-DROSCONSOLE_BACKEND=${ROSCONSOLE_BACKEND}" ) + ros-catkin_src_configure +} |