1 |
commit: e8504e012a850c282f3a901f42ca0a85d4b3ae4b |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 28 15:21:28 2018 +0000 |
4 |
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 28 15:21:54 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8504e01 |
7 |
|
8 |
dev-ros/hector_geotiff: port to qt5 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/644564 |
11 |
Package-Manager: Portage-2.3.31, Repoman-2.3.9 |
12 |
|
13 |
dev-ros/hector_geotiff/files/qt5.patch | 91 ++++++++++++++++++++++ |
14 |
...-9999.ebuild => hector_geotiff-0.3.5-r2.ebuild} | 9 ++- |
15 |
dev-ros/hector_geotiff/hector_geotiff-9999.ebuild | 9 ++- |
16 |
3 files changed, 103 insertions(+), 6 deletions(-) |
17 |
|
18 |
diff --git a/dev-ros/hector_geotiff/files/qt5.patch b/dev-ros/hector_geotiff/files/qt5.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..07b44ef23a1 |
21 |
--- /dev/null |
22 |
+++ b/dev-ros/hector_geotiff/files/qt5.patch |
23 |
@@ -0,0 +1,91 @@ |
24 |
+Index: hector_geotiff/CMakeLists.txt |
25 |
+=================================================================== |
26 |
+--- hector_geotiff.orig/CMakeLists.txt |
27 |
++++ hector_geotiff/CMakeLists.txt |
28 |
+@@ -9,7 +9,7 @@ find_package(catkin REQUIRED COMPONENTS |
29 |
+ ## System dependencies are found with CMake's conventions |
30 |
+ # find_package(Boost REQUIRED COMPONENTS system) |
31 |
+ |
32 |
+-find_package(Qt4 4.6 COMPONENTS QtCore QtGui REQUIRED) |
33 |
++find_package(Qt5 5.7 COMPONENTS Core Gui Widgets REQUIRED) |
34 |
+ |
35 |
+ # Find Eigen3 (from http://wiki.ros.org/jade/Migration) |
36 |
+ find_package(Eigen3) |
37 |
+@@ -24,8 +24,7 @@ else() |
38 |
+ set(EIGEN3_INCLUDE_DIRS ${EIGEN3_INCLUDE_DIR}) |
39 |
+ endif() |
40 |
+ |
41 |
+-include(${QT_USE_FILE}) |
42 |
+- |
43 |
++add_compile_options(-fPIC) |
44 |
+ |
45 |
+ ## Uncomment this if the package has a setup.py. This macro ensures |
46 |
+ ## modules and global scripts declared therein get installed |
47 |
+@@ -82,10 +81,14 @@ include_directories(include include/hect |
48 |
+ include_directories( |
49 |
+ ${catkin_INCLUDE_DIRS} |
50 |
+ ${EIGEN3_INCLUDE_DIRS} |
51 |
++ ${Qt5Core_INCLUDE_DIRS} |
52 |
++ ${Qt5Widgets_INCLUDE_DIRS} |
53 |
++ ${Qt5Gui_INCLUDE_DIRS} |
54 |
+ ) |
55 |
+ |
56 |
+ add_library(geotiff_writer src/geotiff_writer/geotiff_writer.cpp) |
57 |
+-target_link_libraries(geotiff_writer ${catkin_LIBRARIES} ${QT_LIBRARIES}) |
58 |
++target_link_libraries(geotiff_writer ${catkin_LIBRARIES} ${Qt5Core_LIBRARIES} |
59 |
++ ${Qt5Widgets_LIBRARIES} ${Qt5Gui_LIBRARIES}) |
60 |
+ add_dependencies(geotiff_writer ${catkin_EXPORTED_TARGETS}) |
61 |
+ |
62 |
+ add_executable(geotiff_saver src/geotiff_saver.cpp) |
63 |
+Index: hector_geotiff/include/hector_geotiff/geotiff_writer.h |
64 |
+=================================================================== |
65 |
+--- hector_geotiff.orig/include/hector_geotiff/geotiff_writer.h |
66 |
++++ hector_geotiff/include/hector_geotiff/geotiff_writer.h |
67 |
+@@ -37,7 +37,7 @@ |
68 |
+ #include <nav_msgs/MapMetaData.h> |
69 |
+ |
70 |
+ #include <QtGui/QImage> |
71 |
+-#include <QtGui/QApplication> |
72 |
++#include <QtWidgets/QApplication> |
73 |
+ #include <QtGui/QFont> |
74 |
+ #include <QtGui/QPen> |
75 |
+ |
76 |
+Index: hector_geotiff/src/geotiff_node.cpp |
77 |
+=================================================================== |
78 |
+--- hector_geotiff.orig/src/geotiff_node.cpp |
79 |
++++ hector_geotiff/src/geotiff_node.cpp |
80 |
+@@ -40,7 +40,7 @@ |
81 |
+ |
82 |
+ #include <Eigen/Geometry> |
83 |
+ |
84 |
+-#include <QtGui/QApplication> |
85 |
++#include <QtWidgets/QApplication> |
86 |
+ |
87 |
+ #include <hector_map_tools/HectorMapTools.h> |
88 |
+ |
89 |
+Index: hector_geotiff/src/geotiff_saver.cpp |
90 |
+=================================================================== |
91 |
+--- hector_geotiff.orig/src/geotiff_saver.cpp |
92 |
++++ hector_geotiff/src/geotiff_saver.cpp |
93 |
+@@ -34,7 +34,7 @@ |
94 |
+ |
95 |
+ #include <Eigen/Geometry> |
96 |
+ |
97 |
+-#include <QtGui/QApplication> |
98 |
++#include <QtWidgets/QApplication> |
99 |
+ |
100 |
+ #include <hector_map_tools/HectorMapTools.h> |
101 |
+ |
102 |
+Index: hector_geotiff/src/geotiff_writer/geotiff_writer.cpp |
103 |
+=================================================================== |
104 |
+--- hector_geotiff.orig/src/geotiff_writer/geotiff_writer.cpp |
105 |
++++ hector_geotiff/src/geotiff_writer/geotiff_writer.cpp |
106 |
+@@ -31,7 +31,7 @@ |
107 |
+ |
108 |
+ #include <QtGui/QPainter> |
109 |
+ #include <QtGui/QImageWriter> |
110 |
+-#include <QtGui/QApplication> |
111 |
++#include <QtWidgets/QApplication> |
112 |
+ #include <QtCore/QFile> |
113 |
+ //#include <QtCore/QDateTime> |
114 |
+ #include <QtCore/QTime> |
115 |
|
116 |
diff --git a/dev-ros/hector_geotiff/hector_geotiff-9999.ebuild b/dev-ros/hector_geotiff/hector_geotiff-0.3.5-r2.ebuild |
117 |
similarity index 83% |
118 |
copy from dev-ros/hector_geotiff/hector_geotiff-9999.ebuild |
119 |
copy to dev-ros/hector_geotiff/hector_geotiff-0.3.5-r2.ebuild |
120 |
index 44e33566e42..1bc71fd4e8b 100644 |
121 |
--- a/dev-ros/hector_geotiff/hector_geotiff-9999.ebuild |
122 |
+++ b/dev-ros/hector_geotiff/hector_geotiff-0.3.5-r2.ebuild |
123 |
@@ -1,4 +1,4 @@ |
124 |
-# Copyright 1999-2017 Gentoo Foundation |
125 |
+# Copyright 1999-2018 Gentoo Foundation |
126 |
# Distributed under the terms of the GNU General Public License v2 |
127 |
|
128 |
EAPI=5 |
129 |
@@ -22,9 +22,12 @@ RDEPEND=" |
130 |
dev-libs/console_bridge:= |
131 |
dev-ros/roscpp |
132 |
dev-ros/std_msgs[${CATKIN_MESSAGES_CXX_USEDEP}] |
133 |
- dev-qt/qtcore:4 |
134 |
- dev-qt/qtgui:4 |
135 |
+ dev-qt/qtcore:5 |
136 |
+ dev-qt/qtgui:5 |
137 |
+ dev-qt/qtwidgets:5 |
138 |
dev-libs/boost:= |
139 |
" |
140 |
DEPEND="${RDEPEND} |
141 |
dev-cpp/eigen:3" |
142 |
+ |
143 |
+PATCHES=( "${FILESDIR}/qt5.patch" ) |
144 |
|
145 |
diff --git a/dev-ros/hector_geotiff/hector_geotiff-9999.ebuild b/dev-ros/hector_geotiff/hector_geotiff-9999.ebuild |
146 |
index 44e33566e42..1bc71fd4e8b 100644 |
147 |
--- a/dev-ros/hector_geotiff/hector_geotiff-9999.ebuild |
148 |
+++ b/dev-ros/hector_geotiff/hector_geotiff-9999.ebuild |
149 |
@@ -1,4 +1,4 @@ |
150 |
-# Copyright 1999-2017 Gentoo Foundation |
151 |
+# Copyright 1999-2018 Gentoo Foundation |
152 |
# Distributed under the terms of the GNU General Public License v2 |
153 |
|
154 |
EAPI=5 |
155 |
@@ -22,9 +22,12 @@ RDEPEND=" |
156 |
dev-libs/console_bridge:= |
157 |
dev-ros/roscpp |
158 |
dev-ros/std_msgs[${CATKIN_MESSAGES_CXX_USEDEP}] |
159 |
- dev-qt/qtcore:4 |
160 |
- dev-qt/qtgui:4 |
161 |
+ dev-qt/qtcore:5 |
162 |
+ dev-qt/qtgui:5 |
163 |
+ dev-qt/qtwidgets:5 |
164 |
dev-libs/boost:= |
165 |
" |
166 |
DEPEND="${RDEPEND} |
167 |
dev-cpp/eigen:3" |
168 |
+ |
169 |
+PATCHES=( "${FILESDIR}/qt5.patch" ) |