Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ros/stage_ros/files/, dev-ros/stage_ros/
Date: Wed, 23 Sep 2015 13:02:46
Message-Id: 1443013355.878ee7f61c7f3772139feb6bd9b72dc246e6b9b7.aballier@gentoo
1 commit: 878ee7f61c7f3772139feb6bd9b72dc246e6b9b7
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 23 13:00:33 2015 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 23 13:02:35 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=878ee7f6
7
8 dev-ros/stage_ros: Initial import. Ebuild by me.
9
10 Package-Manager: portage-2.2.21
11
12 dev-ros/stage_ros/Manifest | 1 +
13 dev-ros/stage_ros/files/fltk.patch | 68 ++++++++++++++++++++++++++++
14 dev-ros/stage_ros/files/stageconfig.patch | 73 +++++++++++++++++++++++++++++++
15 dev-ros/stage_ros/metadata.xml | 5 +++
16 dev-ros/stage_ros/stage_ros-1.7.5.ebuild | 32 ++++++++++++++
17 dev-ros/stage_ros/stage_ros-9999.ebuild | 32 ++++++++++++++
18 6 files changed, 211 insertions(+)
19
20 diff --git a/dev-ros/stage_ros/Manifest b/dev-ros/stage_ros/Manifest
21 new file mode 100644
22 index 0000000..b0c6783
23 --- /dev/null
24 +++ b/dev-ros/stage_ros/Manifest
25 @@ -0,0 +1 @@
26 +DIST stage_ros-1.7.5.tar.gz 58903 SHA256 44ce79611d3e6f2dc88000b3253986b2cebc9760909b90d9e512abf0f95ce376 SHA512 ce4e46f04d4440932f548ccb97745d421dbb5be41ead46df0f45a02e002c2ab672281277ad9835f8c40c001b823873299952b25d6758639a682b19ae470b9511 WHIRLPOOL 2991db94c7c52cef4d66556c669092cef5c046f0b63f0219fce43785d74a2b59fda05accfefca65b6ae00ea01ee5a0da938b924396abb59fd86346fbcc629b3d
27
28 diff --git a/dev-ros/stage_ros/files/fltk.patch b/dev-ros/stage_ros/files/fltk.patch
29 new file mode 100644
30 index 0000000..3e7dc25
31 --- /dev/null
32 +++ b/dev-ros/stage_ros/files/fltk.patch
33 @@ -0,0 +1,68 @@
34 +commit c62d2b2e64e3d36cac91fbd656db8f69b7c42dc5
35 +Author: Alexis Ballier <aballier@g.o>
36 +Date: Wed Sep 23 14:58:50 2015 +0200
37 +
38 + Revert "Remove all references to FLTK/Fluid"
39 +
40 + This reverts commit 933f2bf0b776ee028aaa4b58a382101d81fb042e.
41 +
42 +diff --git a/CMakeLists.txt b/CMakeLists.txt
43 +index 7ddd2c7..f709ea5 100644
44 +--- a/CMakeLists.txt
45 ++++ b/CMakeLists.txt
46 +@@ -14,12 +14,27 @@ find_package(catkin REQUIRED
47 +
48 + find_package(Boost REQUIRED COMPONENTS system thread)
49 +
50 ++find_package(FLTK REQUIRED)
51 ++if(FLTK_FOUND)
52 ++ # FindFLTK.cmake doesn't populate FLTK_INCLUDE_DIRS on some systems,
53 ++ # so we try to use FLTK_INCLUDE_DIR if we need to.
54 ++ if("${FLTK_INCLUDE_DIRS}" STREQUAL "")
55 ++ set(FLTK_INCLUDE_DIRS "${FLTK_INCLUDE_DIR}")
56 ++ endif()
57 ++ message(status "FLTK_LIBRARIES=" ${FLTK_LIBRARIES})
58 ++ message(status "FLTK_INCLUDE_DIR=" ${FLTK_INCLUDE_DIR})
59 ++ message(status "FLTK_INCLUDE_DIRS=" ${FLTK_INCLUDE_DIRS})
60 ++else()
61 ++ message(fatal_error "FLTK not found...aborting!")
62 ++endif()
63 ++
64 + set(Stage_DIR cmake)
65 + find_package(Stage REQUIRED)
66 +
67 + include_directories(
68 + ${catkin_INCLUDE_DIRS}
69 + ${Boost_INCLUDE_DIRS}
70 ++ ${FLTK_INCLUDE_DIRS}
71 + ${Stage_INCLUDE_DIRS}
72 + )
73 +
74 +@@ -34,6 +49,7 @@ endif()
75 + target_link_libraries(stageros
76 + ${catkin_LIBRARIES}
77 + ${Boost_LIBRARIES}
78 ++ ${FLTK_LIBRARIES}
79 + ${Stage_LIBRARIES}
80 + ${${PROJECT_NAME}_extra_libs}
81 + )
82 +diff --git a/package.xml b/package.xml
83 +index 8803254..fde1a64 100644
84 +--- a/package.xml
85 ++++ b/package.xml
86 +@@ -17,6 +17,7 @@
87 + <buildtool_depend>catkin</buildtool_depend>
88 +
89 + <build_depend>boost</build_depend>
90 ++ <build_depend>libfltk-dev</build_depend>
91 + <build_depend>geometry_msgs</build_depend>
92 + <build_depend>nav_msgs</build_depend>
93 + <build_depend>roscpp</build_depend>
94 +@@ -28,6 +29,7 @@
95 + <build_depend>tf</build_depend>
96 +
97 + <run_depend>boost</run_depend>
98 ++ <run_depend>fluid</run_depend>
99 + <run_depend>geometry_msgs</run_depend>
100 + <run_depend>nav_msgs</run_depend>
101 + <run_depend>roscpp</run_depend>
102
103 diff --git a/dev-ros/stage_ros/files/stageconfig.patch b/dev-ros/stage_ros/files/stageconfig.patch
104 new file mode 100644
105 index 0000000..baadba4
106 --- /dev/null
107 +++ b/dev-ros/stage_ros/files/stageconfig.patch
108 @@ -0,0 +1,73 @@
109 +commit 7e9a04fef3b02510017d0ea3bbea047c32a408b1
110 +Author: Alexis Ballier <aballier@g.o>
111 +Date: Wed Sep 23 14:55:50 2015 +0200
112 +
113 + Revert "Use upstream stage-config.cmake"
114 +
115 + This reverts commit 55700196507b44ea577233747de25dbf271cdef8.
116 +
117 +diff --git a/CMakeLists.txt b/CMakeLists.txt
118 +index 89c433d..7ddd2c7 100644
119 +--- a/CMakeLists.txt
120 ++++ b/CMakeLists.txt
121 +@@ -14,12 +14,13 @@ find_package(catkin REQUIRED
122 +
123 + find_package(Boost REQUIRED COMPONENTS system thread)
124 +
125 +-find_package(stage REQUIRED)
126 ++set(Stage_DIR cmake)
127 ++find_package(Stage REQUIRED)
128 +
129 + include_directories(
130 + ${catkin_INCLUDE_DIRS}
131 + ${Boost_INCLUDE_DIRS}
132 +- ${STAGE_INCLUDE_DIRS}
133 ++ ${Stage_INCLUDE_DIRS}
134 + )
135 +
136 + catkin_package()
137 +@@ -33,7 +34,7 @@ endif()
138 + target_link_libraries(stageros
139 + ${catkin_LIBRARIES}
140 + ${Boost_LIBRARIES}
141 +- ${STAGE_LIBRARIES}
142 ++ ${Stage_LIBRARIES}
143 + ${${PROJECT_NAME}_extra_libs}
144 + )
145 + if(catkin_EXPORTED_TARGETS)
146 +diff --git a/cmake/StageConfig.cmake b/cmake/StageConfig.cmake
147 +new file mode 100644
148 +index 0000000..118e41c
149 +--- /dev/null
150 ++++ b/cmake/StageConfig.cmake
151 +@@ -0,0 +1,30 @@
152 ++# - Try to find Stage
153 ++#
154 ++# Once done this will define
155 ++#
156 ++# Stage_FOUND - system has Stage
157 ++# Stage_INCLUDE_DIRS - the Stage include directory
158 ++# Stage_LIBRARIES - the Stage libraries
159 ++#
160 ++# Written by William Woodall <william@×××××××××××××.org>
161 ++#
162 ++
163 ++find_package(PkgConfig)
164 ++pkg_check_modules(PC_Stage stage)
165 ++
166 ++find_library(Stage_LIBRARIES
167 ++ NAMES ${PC_Stage_LIBRARIES}
168 ++ PATHS ${PC_Stage_LIBRARY_DIRS}
169 ++)
170 ++
171 ++set(Stage_INCLUDE_DIRS ${PC_Stage_INCLUDE_DIRS})
172 ++
173 ++include(FindPackageHandleStandardArgs)
174 ++find_package_handle_standard_args(Stage
175 ++ DEFAULT_MSG
176 ++ Stage_LIBRARIES Stage_INCLUDE_DIRS
177 ++)
178 ++
179 ++mark_as_advanced(Stage_LIBRARIES Stage_INCLUDE_DIRS)
180 ++
181 ++set(Stage_FOUND ${STAGE_FOUND})
182
183 diff --git a/dev-ros/stage_ros/metadata.xml b/dev-ros/stage_ros/metadata.xml
184 new file mode 100644
185 index 0000000..c42ea5b
186 --- /dev/null
187 +++ b/dev-ros/stage_ros/metadata.xml
188 @@ -0,0 +1,5 @@
189 +<?xml version="1.0" encoding="UTF-8"?>
190 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
191 +<pkgmetadata>
192 +<herd>ros</herd>
193 +</pkgmetadata>
194
195 diff --git a/dev-ros/stage_ros/stage_ros-1.7.5.ebuild b/dev-ros/stage_ros/stage_ros-1.7.5.ebuild
196 new file mode 100644
197 index 0000000..00cb85f
198 --- /dev/null
199 +++ b/dev-ros/stage_ros/stage_ros-1.7.5.ebuild
200 @@ -0,0 +1,32 @@
201 +# Copyright 1999-2014 Gentoo Foundation
202 +# Distributed under the terms of the GNU General Public License v2
203 +# $Id$
204 +
205 +EAPI=5
206 +
207 +ROS_REPO_URI="https://github.com/ros-simulation/stage_ros"
208 +KEYWORDS="~amd64"
209 +
210 +inherit ros-catkin
211 +
212 +DESCRIPTION="ROS specific hooks and tools for the Stage simulator"
213 +LICENSE="BSD"
214 +SLOT="0"
215 +IUSE=""
216 +
217 +RDEPEND="
218 + dev-libs/boost:=[threads]
219 + dev-ros/geometry_msgs
220 + dev-ros/nav_msgs
221 + dev-ros/roscpp
222 + dev-ros/rostest
223 + dev-ros/sensor_msgs
224 + dev-ros/std_msgs
225 + dev-ros/tf
226 + x11-libs/fltk
227 + sci-electronics/Stage
228 +"
229 +DEPEND="${RDEPEND}
230 + test? ( dev-ros/rostest )
231 + virtual/pkgconfig"
232 +PATCHES=( "${FILESDIR}/stageconfig.patch" "${FILESDIR}/fltk.patch" )
233
234 diff --git a/dev-ros/stage_ros/stage_ros-9999.ebuild b/dev-ros/stage_ros/stage_ros-9999.ebuild
235 new file mode 100644
236 index 0000000..00cb85f
237 --- /dev/null
238 +++ b/dev-ros/stage_ros/stage_ros-9999.ebuild
239 @@ -0,0 +1,32 @@
240 +# Copyright 1999-2014 Gentoo Foundation
241 +# Distributed under the terms of the GNU General Public License v2
242 +# $Id$
243 +
244 +EAPI=5
245 +
246 +ROS_REPO_URI="https://github.com/ros-simulation/stage_ros"
247 +KEYWORDS="~amd64"
248 +
249 +inherit ros-catkin
250 +
251 +DESCRIPTION="ROS specific hooks and tools for the Stage simulator"
252 +LICENSE="BSD"
253 +SLOT="0"
254 +IUSE=""
255 +
256 +RDEPEND="
257 + dev-libs/boost:=[threads]
258 + dev-ros/geometry_msgs
259 + dev-ros/nav_msgs
260 + dev-ros/roscpp
261 + dev-ros/rostest
262 + dev-ros/sensor_msgs
263 + dev-ros/std_msgs
264 + dev-ros/tf
265 + x11-libs/fltk
266 + sci-electronics/Stage
267 +"
268 +DEPEND="${RDEPEND}
269 + test? ( dev-ros/rostest )
270 + virtual/pkgconfig"
271 +PATCHES=( "${FILESDIR}/stageconfig.patch" "${FILESDIR}/fltk.patch" )