From: Alexis Ballier Date: Tue, 22 Sep 2015 12:48:54 +0000 (+0200) Subject: dev-ros/rosconsole: Initial import. Ebuild by me. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=818593da6bae4279100f4a6624f274d44eb9ba21;p=gentoo.git dev-ros/rosconsole: Initial import. Ebuild by me. Package-Manager: portage-2.2.21 --- diff --git a/dev-ros/rosconsole/Manifest b/dev-ros/rosconsole/Manifest new file mode 100644 index 000000000000..84bda7639707 --- /dev/null +++ b/dev-ros/rosconsole/Manifest @@ -0,0 +1 @@ +DIST ros_comm-1.11.14.tar.gz 945041 SHA256 8e7beff35711b1918501c69cca4f29648d4d4207878edab069bcd59d515c78f3 SHA512 be768faa0a2f45c464e963934a95dc617cac6c3fcec2388602a27846774c25b882b5139099ce10d1d051a21d5938819942e079836d14618071bc7ad90ee78bab WHIRLPOOL e047ce984086655294c20dbf0715cc29f51ec358f075f02de80c5de0d4ef8059990dc8312d78d7a7fa91c4a974dc21cba15d6eacafe02fd3df527770e50f75a5 diff --git a/dev-ros/rosconsole/metadata.xml b/dev-ros/rosconsole/metadata.xml new file mode 100644 index 000000000000..deb6fce6c1ff --- /dev/null +++ b/dev-ros/rosconsole/metadata.xml @@ -0,0 +1,9 @@ + + + +ros + + Use dev-cpp/glog as log backend. + Use dev-libs/log4cxx as log backend. + + diff --git a/dev-ros/rosconsole/rosconsole-1.11.14.ebuild b/dev-ros/rosconsole/rosconsole-1.11.14.ebuild new file mode 100644 index 000000000000..7d1cc2938086 --- /dev/null +++ b/dev-ros/rosconsole/rosconsole-1.11.14.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +ROS_REPO_URI="https://github.com/ros/ros_comm" +KEYWORDS="~amd64 ~arm" +ROS_SUBDIR=tools/${PN} + +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 +} diff --git a/dev-ros/rosconsole/rosconsole-9999.ebuild b/dev-ros/rosconsole/rosconsole-9999.ebuild new file mode 100644 index 000000000000..7d1cc2938086 --- /dev/null +++ b/dev-ros/rosconsole/rosconsole-9999.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +ROS_REPO_URI="https://github.com/ros/ros_comm" +KEYWORDS="~amd64 ~arm" +ROS_SUBDIR=tools/${PN} + +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 +}