1 |
commit: 38077c5c4750fe3f0699de54a9339f68df19ec42 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 27 15:53:47 2018 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 27 15:54:36 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=38077c5c |
7 |
|
8 |
sci-geosciences/qgis: Drop old |
9 |
|
10 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
12 |
|
13 |
sci-geosciences/qgis/Manifest | 2 - |
14 |
.../qgis/files/qgis-3.0.3-qt-5.11.0.patch | 38 ---- |
15 |
sci-geosciences/qgis/qgis-3.0.3-r1.ebuild | 222 --------------------- |
16 |
sci-geosciences/qgis/qgis-3.2.2.ebuild | 220 -------------------- |
17 |
4 files changed, 482 deletions(-) |
18 |
|
19 |
diff --git a/sci-geosciences/qgis/Manifest b/sci-geosciences/qgis/Manifest |
20 |
index 8ad97a048eb..aa60e32de73 100644 |
21 |
--- a/sci-geosciences/qgis/Manifest |
22 |
+++ b/sci-geosciences/qgis/Manifest |
23 |
@@ -1,4 +1,2 @@ |
24 |
-DIST qgis-3.0.3.tar.bz2 94462631 BLAKE2B 047f4d8852b7572dc94b9c04ec9c81e53bab2ed63a7a490682b7c557ae1b21fcc3257e751cc794d368dc4124c20c008ffdc7f1f4b79af2faea78774dc6ef430c SHA512 67f46f1acacd6688984b0c13aa5880e2f31d85b5a28ebf12830d33f198c2e5983887a8c85036b8be59edf3836ba7d38985f58433f53d3164c2ffb4a6db94d046 |
25 |
-DIST qgis-3.2.2.tar.bz2 71947443 BLAKE2B a6fc159ce6d90f4273483159831c9b89db40c3bd5fb34ec90d799978aae11a609509d5fd5189dc1edfb9fb72cd9ccd9298414d024db3c43561ea096774b7be17 SHA512 d19d44f71285e1d8a1d365a406550c68cd48215c7f9f67a979052f1f115d636c66c6a291e1a108b19a641f357b27e104ac642158f375fb631c141e844f468949 |
26 |
DIST qgis-3.2.3.tar.bz2 71991789 BLAKE2B 656c0304cfc32d619a72f08185f76cf02aed7336fac8a4bf928c7f8b0e00df2e995e891a7ba757d8ce6acb5892c5c7425765608ee0441fa7eae8070a828734d4 SHA512 3366fce6232dd1b7657c0693debf742309d5594c7875017f464efd33e63bd4116eb062a0ebeb5b3108572a9658c3fb7d729e5a5db8fefb3ceae490ef1ec6bd22 |
27 |
DIST qgis_sample_data-2.8.14.tar.gz 22119181 BLAKE2B 2d0565e91ec8119382bc9ab8e262dc04227fe8289146794891759ff5a32012245270614ba1119a6329fc45cf56852830c2079589309aa3467873f71f5c608eac SHA512 6b2653d5b57ffc2c2317639dac212429840984ac917ca3e452b39aabb99ea106d1a77c1c1dd967244ef16ede9deae751b170affdf08b72239eafed5b8977da3d |
28 |
|
29 |
diff --git a/sci-geosciences/qgis/files/qgis-3.0.3-qt-5.11.0.patch b/sci-geosciences/qgis/files/qgis-3.0.3-qt-5.11.0.patch |
30 |
deleted file mode 100644 |
31 |
index abda33b2dd2..00000000000 |
32 |
--- a/sci-geosciences/qgis/files/qgis-3.0.3-qt-5.11.0.patch |
33 |
+++ /dev/null |
34 |
@@ -1,38 +0,0 @@ |
35 |
-From 83346e5ec77dc3474c01acd27d4a3e03690170b5 Mon Sep 17 00:00:00 2001 |
36 |
-From: Andreas Sturmlechner <andreas.sturmlechner@×××××.com> |
37 |
-Date: Sun, 24 Jun 2018 14:38:44 +0200 |
38 |
-Subject: [PATCH] Fix WITH_GRASS7 build with Qt-5.11.0 (missing headers) |
39 |
- |
40 |
---- |
41 |
- src/plugins/grass/qgsgrassmoduleinput.cpp | 1 + |
42 |
- src/plugins/grass/qgsgrassregion.cpp | 2 ++ |
43 |
- 2 files changed, 3 insertions(+) |
44 |
- |
45 |
-diff --git a/src/plugins/grass/qgsgrassmoduleinput.cpp b/src/plugins/grass/qgsgrassmoduleinput.cpp |
46 |
-index ebb8efd493..6968a34d8c 100644 |
47 |
---- a/src/plugins/grass/qgsgrassmoduleinput.cpp |
48 |
-+++ b/src/plugins/grass/qgsgrassmoduleinput.cpp |
49 |
-@@ -17,6 +17,7 @@ |
50 |
- #include <QCompleter> |
51 |
- #include <QFileDialog> |
52 |
- #include <QFileInfo> |
53 |
-+#include <QHeaderView> |
54 |
- #include <QHBoxLayout> |
55 |
- #include <QIcon> |
56 |
- #include <QLatin1String> |
57 |
-diff --git a/src/plugins/grass/qgsgrassregion.cpp b/src/plugins/grass/qgsgrassregion.cpp |
58 |
-index 00928da4a7..b31f1b9ae9 100644 |
59 |
---- a/src/plugins/grass/qgsgrassregion.cpp |
60 |
-+++ b/src/plugins/grass/qgsgrassregion.cpp |
61 |
-@@ -27,6 +27,8 @@ |
62 |
- |
63 |
- #include <QButtonGroup> |
64 |
- #include <QColorDialog> |
65 |
-+#include <QDoubleValidator> |
66 |
-+#include <QIntValidator> |
67 |
- #include <QMessageBox> |
68 |
- #include <QMouseEvent> |
69 |
- #include <QRubberBand> |
70 |
--- |
71 |
-2.18.0 |
72 |
- |
73 |
|
74 |
diff --git a/sci-geosciences/qgis/qgis-3.0.3-r1.ebuild b/sci-geosciences/qgis/qgis-3.0.3-r1.ebuild |
75 |
deleted file mode 100644 |
76 |
index df0980c51a1..00000000000 |
77 |
--- a/sci-geosciences/qgis/qgis-3.0.3-r1.ebuild |
78 |
+++ /dev/null |
79 |
@@ -1,222 +0,0 @@ |
80 |
-# Copyright 1999-2018 Gentoo Foundation |
81 |
-# Distributed under the terms of the GNU General Public License v2 |
82 |
- |
83 |
-EAPI=6 |
84 |
- |
85 |
-PYTHON_COMPAT=( python3_{5,6} ) |
86 |
-PYTHON_REQ_USE="sqlite" |
87 |
-QT_MIN_VER="5.9.4" |
88 |
- |
89 |
-if [[ ${PV} != *9999 ]]; then |
90 |
- SRC_URI="https://qgis.org/downloads/${P}.tar.bz2 |
91 |
- examples? ( https://qgis.org/downloads/data/qgis_sample_data.tar.gz -> qgis_sample_data-2.8.14.tar.gz )" |
92 |
- KEYWORDS="amd64 x86" |
93 |
-else |
94 |
- GIT_ECLASS="git-r3" |
95 |
- EGIT_REPO_URI="https://github.com/${PN}/${PN^^}.git" |
96 |
-fi |
97 |
-inherit cmake-utils eutils ${GIT_ECLASS} gnome2-utils python-single-r1 qmake-utils xdg-utils |
98 |
-unset GIT_ECLASS |
99 |
- |
100 |
-DESCRIPTION="User friendly Geographic Information System" |
101 |
-HOMEPAGE="https://www.qgis.org/" |
102 |
- |
103 |
-LICENSE="GPL-2+ GPL-3+" |
104 |
-SLOT="0" |
105 |
-IUSE="3d examples georeferencer grass mapserver oracle polar postgres python webkit" |
106 |
- |
107 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE} mapserver? ( python )" |
108 |
- |
109 |
-COMMON_DEPEND=" |
110 |
- app-crypt/qca:2[qt5(+),ssl] |
111 |
- >=dev-db/spatialite-4.2.0 |
112 |
- dev-db/sqlite:3 |
113 |
- dev-libs/expat |
114 |
- dev-libs/libzip:= |
115 |
- dev-libs/qtkeychain[qt5(+)] |
116 |
- >=dev-qt/designer-${QT_MIN_VER}:5 |
117 |
- >=dev-qt/qtconcurrent-${QT_MIN_VER}:5 |
118 |
- >=dev-qt/qtcore-${QT_MIN_VER}:5 |
119 |
- >=dev-qt/qtgui-${QT_MIN_VER}:5 |
120 |
- >=dev-qt/qtnetwork-${QT_MIN_VER}:5[ssl] |
121 |
- >=dev-qt/qtpositioning-${QT_MIN_VER}:5 |
122 |
- >=dev-qt/qtprintsupport-${QT_MIN_VER}:5 |
123 |
- >=dev-qt/qtsvg-${QT_MIN_VER}:5 |
124 |
- >=dev-qt/qtsql-${QT_MIN_VER}:5 |
125 |
- >=dev-qt/qtwidgets-${QT_MIN_VER}:5 |
126 |
- >=dev-qt/qtxml-${QT_MIN_VER}:5 |
127 |
- >=sci-libs/gdal-2.2.3:=[geos] |
128 |
- sci-libs/geos |
129 |
- sci-libs/libspatialindex:= |
130 |
- sci-libs/proj |
131 |
- >=x11-libs/qscintilla-2.10.1:=[qt5(+)] |
132 |
- >=x11-libs/qwt-6.1.2:6=[qt5(+),svg] |
133 |
- 3d? ( >=dev-qt/qt3d-${QT_MIN_VER}:5 ) |
134 |
- georeferencer? ( sci-libs/gsl:= ) |
135 |
- grass? ( =sci-geosciences/grass-7*:= ) |
136 |
- mapserver? ( dev-libs/fcgi ) |
137 |
- oracle? ( |
138 |
- dev-db/oracle-instantclient:= |
139 |
- sci-libs/gdal:=[oracle] |
140 |
- ) |
141 |
- polar? ( >=x11-libs/qwtpolar-1.1.1-r1[qt5(+)] ) |
142 |
- postgres? ( dev-db/postgresql:= ) |
143 |
- python? ( |
144 |
- ${PYTHON_DEPS} |
145 |
- dev-python/future[${PYTHON_USEDEP}] |
146 |
- dev-python/httplib2[${PYTHON_USEDEP}] |
147 |
- dev-python/jinja[${PYTHON_USEDEP}] |
148 |
- dev-python/markupsafe[${PYTHON_USEDEP}] |
149 |
- dev-python/owslib[${PYTHON_USEDEP}] |
150 |
- dev-python/pygments[${PYTHON_USEDEP}] |
151 |
- dev-python/PyQt5[designer,network,sql,svg,webkit?,${PYTHON_USEDEP}] |
152 |
- dev-python/python-dateutil[${PYTHON_USEDEP}] |
153 |
- dev-python/pytz[${PYTHON_USEDEP}] |
154 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
155 |
- >=dev-python/qscintilla-python-2.10.1[qt5(+),${PYTHON_USEDEP}] |
156 |
- dev-python/requests[${PYTHON_USEDEP}] |
157 |
- dev-python/sip:=[${PYTHON_USEDEP}] |
158 |
- dev-python/six[${PYTHON_USEDEP}] |
159 |
- >=sci-libs/gdal-2.2.3[python,${PYTHON_USEDEP}] |
160 |
- postgres? ( dev-python/psycopg:2[${PYTHON_USEDEP}] ) |
161 |
- ) |
162 |
- webkit? ( >=dev-qt/qtwebkit-5.9.1:5 ) |
163 |
-" |
164 |
-DEPEND="${COMMON_DEPEND} |
165 |
- >=dev-qt/linguist-tools-${QT_MIN_VER}:5 |
166 |
- >=dev-qt/qttest-${QT_MIN_VER}:5 |
167 |
- >=dev-qt/qtxmlpatterns-${QT_MIN_VER}:5 |
168 |
- sys-devel/bison |
169 |
- sys-devel/flex |
170 |
- python? ( ${PYTHON_DEPS} ) |
171 |
-" |
172 |
-RDEPEND="${COMMON_DEPEND} |
173 |
- sci-geosciences/gpsbabel |
174 |
-" |
175 |
- |
176 |
-# Disabling test suite because upstream disallow running from install path |
177 |
-RESTRICT="test" |
178 |
- |
179 |
-PATCHES=( |
180 |
- # git master |
181 |
- "${FILESDIR}/${PN}-2.18.12-cmake-lib-suffix.patch" |
182 |
- # TODO upstream |
183 |
- "${FILESDIR}/${PN}-3.0.0-featuresummary.patch" |
184 |
- "${FILESDIR}/${P}-qt-5.11.0.patch" |
185 |
-) |
186 |
- |
187 |
-pkg_setup() { |
188 |
- python-single-r1_pkg_setup |
189 |
-} |
190 |
- |
191 |
-src_prepare() { |
192 |
- cmake-utils_src_prepare |
193 |
- |
194 |
- sed -e "s:\${QT_BINARY_DIR}:$(qt5_get_bindir):" \ |
195 |
- -i CMakeLists.txt || die "Failed to fix lrelease path" |
196 |
- |
197 |
- sed -e "/QT_LRELEASE_EXECUTABLE/d" \ |
198 |
- -e "/QT_LUPDATE_EXECUTABLE/s/set/find_program/" \ |
199 |
- -e "s:lupdate-qt5:NAMES lupdate PATHS $(qt5_get_bindir) NO_DEFAULT_PATH:" \ |
200 |
- -i cmake/modules/ECMQt4To5Porting.cmake || die "Failed to fix ECMQt4To5Porting.cmake" |
201 |
- |
202 |
- cd src/plugins || die |
203 |
-} |
204 |
- |
205 |
-src_configure() { |
206 |
- local mycmakeargs=( |
207 |
- -DQGIS_MANUAL_SUBDIR=/share/man/ |
208 |
- -DBUILD_SHARED_LIBS=ON |
209 |
- -DQGIS_LIB_SUBDIR=$(get_libdir) |
210 |
- -DQGIS_PLUGIN_SUBDIR=$(get_libdir)/qgis |
211 |
- -DQWT_INCLUDE_DIR=/usr/include/qwt6 |
212 |
- -DQWT_LIBRARY=/usr/$(get_libdir)/libqwt6-qt5.so |
213 |
- -DPEDANTIC=OFF |
214 |
- -DWITH_APIDOC=OFF |
215 |
- -DWITH_QSPATIALITE=ON |
216 |
- -DENABLE_TESTS=OFF |
217 |
- -DWITH_3D=$(usex 3d) |
218 |
- -DWITH_GEOREFERENCER=$(usex georeferencer) |
219 |
- -DWITH_GRASS7=$(usex grass) |
220 |
- -DWITH_SERVER=$(usex mapserver) |
221 |
- -DWITH_ORACLE=$(usex oracle) |
222 |
- -DWITH_QWTPOLAR=$(usex polar) |
223 |
- -DWITH_POSTGRESQL=$(usex postgres) |
224 |
- -DWITH_BINDINGS=$(usex python) |
225 |
- -DWITH_CUSTOM_WIDGETS=$(usex python) |
226 |
- -DWITH_QTWEBKIT=$(usex webkit) |
227 |
- ) |
228 |
- |
229 |
- if use grass; then |
230 |
- mycmakeargs+=( |
231 |
- -DGRASS_PREFIX7=/usr/$(get_libdir)/grass70 |
232 |
- ) |
233 |
- fi |
234 |
- |
235 |
- use python && mycmakeargs+=( -DBINDINGS_GLOBAL_INSTALL=ON ) |
236 |
- |
237 |
- # bugs 612956, 648726 |
238 |
- addpredict /dev/dri/renderD128 |
239 |
- addpredict /dev/dri/renderD129 |
240 |
- |
241 |
- cmake-utils_src_configure |
242 |
-} |
243 |
- |
244 |
-src_install() { |
245 |
- cmake-utils_src_install |
246 |
- |
247 |
- domenu debian/qgis.desktop |
248 |
- |
249 |
- local size type |
250 |
- for size in 16 22 24 32 48 64 96 128 256; do |
251 |
- newicon -s ${size} debian/icons/${PN}-icon${size}x${size}.png ${PN}.png |
252 |
- newicon -c mimetypes -s ${size} debian/icons/${PN}-mime-icon${size}x${size}.png ${PN}-mime.png |
253 |
- for type in qgs qml qlr qpt; do |
254 |
- newicon -c mimetypes -s ${size} debian/icons/${PN}-${type}${size}x${size}.png ${PN}-${type}.png |
255 |
- done |
256 |
- done |
257 |
- newicon -s scalable images/icons/qgis_icon.svg qgis.svg |
258 |
- |
259 |
- insinto /usr/share/mime/packages |
260 |
- doins debian/qgis.xml |
261 |
- |
262 |
- if use examples; then |
263 |
- docinto examples |
264 |
- dodoc -r "${WORKDIR}"/qgis_sample_data/. |
265 |
- docompress -x /usr/share/doc/${PF}/examples |
266 |
- fi |
267 |
- |
268 |
- if use python; then |
269 |
- python_optimize "${ED%/}"/usr/share/qgis/python |
270 |
- fi |
271 |
- |
272 |
- if use grass; then |
273 |
- python_fix_shebang "${ED%/}"/usr/share/qgis/grass/scripts |
274 |
- fi |
275 |
-} |
276 |
- |
277 |
-pkg_postinst() { |
278 |
- if use postgres; then |
279 |
- elog "If you don't intend to use an external PostGIS server" |
280 |
- elog "you should install:" |
281 |
- elog " dev-db/postgis" |
282 |
- elif use python; then |
283 |
- elog "Support of PostgreSQL is disabled." |
284 |
- elog "But some installed python-plugins import the psycopg2 module." |
285 |
- elog "If you do not need these plugins just disable them" |
286 |
- elog "in the Plugins menu, else you need to set USE=\"postgres\"" |
287 |
- fi |
288 |
- if has_version "<sci-geosciences/qgis-3"; then |
289 |
- elog "QGIS is now based on PyQt5. Old scripts may not work anymore." |
290 |
- fi |
291 |
- |
292 |
- gnome2_icon_cache_update |
293 |
- xdg_mimeinfo_database_update |
294 |
- xdg_desktop_database_update |
295 |
-} |
296 |
- |
297 |
-pkg_postrm() { |
298 |
- gnome2_icon_cache_update |
299 |
- xdg_mimeinfo_database_update |
300 |
- xdg_desktop_database_update |
301 |
-} |
302 |
|
303 |
diff --git a/sci-geosciences/qgis/qgis-3.2.2.ebuild b/sci-geosciences/qgis/qgis-3.2.2.ebuild |
304 |
deleted file mode 100644 |
305 |
index 23afe352fad..00000000000 |
306 |
--- a/sci-geosciences/qgis/qgis-3.2.2.ebuild |
307 |
+++ /dev/null |
308 |
@@ -1,220 +0,0 @@ |
309 |
-# Copyright 1999-2018 Gentoo Foundation |
310 |
-# Distributed under the terms of the GNU General Public License v2 |
311 |
- |
312 |
-EAPI=6 |
313 |
- |
314 |
-PYTHON_COMPAT=( python3_{5,6} ) |
315 |
-PYTHON_REQ_USE="sqlite" |
316 |
-QT_MIN_VER="5.9.4" |
317 |
- |
318 |
-if [[ ${PV} != *9999 ]]; then |
319 |
- SRC_URI="https://qgis.org/downloads/${P}.tar.bz2 |
320 |
- examples? ( https://qgis.org/downloads/data/qgis_sample_data.tar.gz -> qgis_sample_data-2.8.14.tar.gz )" |
321 |
- KEYWORDS="~amd64 ~x86" |
322 |
-else |
323 |
- GIT_ECLASS="git-r3" |
324 |
- EGIT_REPO_URI="https://github.com/${PN}/${PN^^}.git" |
325 |
-fi |
326 |
-inherit cmake-utils desktop ${GIT_ECLASS} gnome2-utils python-single-r1 qmake-utils xdg-utils |
327 |
-unset GIT_ECLASS |
328 |
- |
329 |
-DESCRIPTION="User friendly Geographic Information System" |
330 |
-HOMEPAGE="https://www.qgis.org/" |
331 |
- |
332 |
-LICENSE="GPL-2+ GPL-3+" |
333 |
-SLOT="0" |
334 |
-IUSE="3d examples georeferencer grass mapserver oracle polar postgres python +webkit" |
335 |
- |
336 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE} mapserver? ( python )" |
337 |
- |
338 |
-COMMON_DEPEND=" |
339 |
- app-crypt/qca:2[qt5(+),ssl] |
340 |
- >=dev-db/spatialite-4.2.0 |
341 |
- dev-db/sqlite:3 |
342 |
- dev-libs/expat |
343 |
- dev-libs/libzip:= |
344 |
- dev-libs/qtkeychain[qt5(+)] |
345 |
- >=dev-qt/designer-${QT_MIN_VER}:5 |
346 |
- >=dev-qt/qtconcurrent-${QT_MIN_VER}:5 |
347 |
- >=dev-qt/qtcore-${QT_MIN_VER}:5 |
348 |
- >=dev-qt/qtgui-${QT_MIN_VER}:5 |
349 |
- >=dev-qt/qtnetwork-${QT_MIN_VER}:5[ssl] |
350 |
- >=dev-qt/qtpositioning-${QT_MIN_VER}:5 |
351 |
- >=dev-qt/qtprintsupport-${QT_MIN_VER}:5 |
352 |
- >=dev-qt/qtsvg-${QT_MIN_VER}:5 |
353 |
- >=dev-qt/qtsql-${QT_MIN_VER}:5 |
354 |
- >=dev-qt/qtwidgets-${QT_MIN_VER}:5 |
355 |
- >=dev-qt/qtxml-${QT_MIN_VER}:5 |
356 |
- >=sci-libs/gdal-2.2.3:=[geos] |
357 |
- sci-libs/geos |
358 |
- sci-libs/libspatialindex:= |
359 |
- sci-libs/proj |
360 |
- >=x11-libs/qscintilla-2.10.1:=[qt5(+)] |
361 |
- >=x11-libs/qwt-6.1.2:6=[qt5(+),svg] |
362 |
- 3d? ( >=dev-qt/qt3d-${QT_MIN_VER}:5 ) |
363 |
- georeferencer? ( sci-libs/gsl:= ) |
364 |
- grass? ( =sci-geosciences/grass-7*:= ) |
365 |
- mapserver? ( dev-libs/fcgi ) |
366 |
- oracle? ( |
367 |
- dev-db/oracle-instantclient:= |
368 |
- sci-libs/gdal:=[oracle] |
369 |
- ) |
370 |
- polar? ( >=x11-libs/qwtpolar-1.1.1-r1[qt5(+)] ) |
371 |
- postgres? ( dev-db/postgresql:= ) |
372 |
- python? ( |
373 |
- ${PYTHON_DEPS} |
374 |
- dev-python/future[${PYTHON_USEDEP}] |
375 |
- dev-python/httplib2[${PYTHON_USEDEP}] |
376 |
- dev-python/jinja[${PYTHON_USEDEP}] |
377 |
- dev-python/markupsafe[${PYTHON_USEDEP}] |
378 |
- dev-python/owslib[${PYTHON_USEDEP}] |
379 |
- dev-python/pygments[${PYTHON_USEDEP}] |
380 |
- dev-python/PyQt5[designer,network,sql,svg,webkit?,${PYTHON_USEDEP}] |
381 |
- dev-python/python-dateutil[${PYTHON_USEDEP}] |
382 |
- dev-python/pytz[${PYTHON_USEDEP}] |
383 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
384 |
- >=dev-python/qscintilla-python-2.10.1[qt5(+),${PYTHON_USEDEP}] |
385 |
- dev-python/requests[${PYTHON_USEDEP}] |
386 |
- dev-python/sip:=[${PYTHON_USEDEP}] |
387 |
- dev-python/six[${PYTHON_USEDEP}] |
388 |
- >=sci-libs/gdal-2.2.3[python,${PYTHON_USEDEP}] |
389 |
- postgres? ( dev-python/psycopg:2[${PYTHON_USEDEP}] ) |
390 |
- ) |
391 |
- webkit? ( >=dev-qt/qtwebkit-5.9.1:5 ) |
392 |
-" |
393 |
-DEPEND="${COMMON_DEPEND} |
394 |
- >=dev-qt/linguist-tools-${QT_MIN_VER}:5 |
395 |
- >=dev-qt/qttest-${QT_MIN_VER}:5 |
396 |
- >=dev-qt/qtxmlpatterns-${QT_MIN_VER}:5 |
397 |
- sys-devel/bison |
398 |
- sys-devel/flex |
399 |
- python? ( ${PYTHON_DEPS} ) |
400 |
-" |
401 |
-RDEPEND="${COMMON_DEPEND} |
402 |
- sci-geosciences/gpsbabel |
403 |
-" |
404 |
- |
405 |
-# Disabling test suite because upstream disallow running from install path |
406 |
-RESTRICT="test" |
407 |
- |
408 |
-PATCHES=( |
409 |
- # git master |
410 |
- "${FILESDIR}/${PN}-2.18.12-cmake-lib-suffix.patch" |
411 |
- "${FILESDIR}/${PN}-3.2.1-qtwebkit-optional.patch" # bug 663394 |
412 |
-) |
413 |
- |
414 |
-pkg_setup() { |
415 |
- python-single-r1_pkg_setup |
416 |
-} |
417 |
- |
418 |
-src_prepare() { |
419 |
- cmake-utils_src_prepare |
420 |
- |
421 |
- sed -e "s:\${QT_BINARY_DIR}:$(qt5_get_bindir):" \ |
422 |
- -i CMakeLists.txt || die "Failed to fix lrelease path" |
423 |
- |
424 |
- sed -e "/QT_LRELEASE_EXECUTABLE/d" \ |
425 |
- -e "/QT_LUPDATE_EXECUTABLE/s/set/find_program/" \ |
426 |
- -e "s:lupdate-qt5:NAMES lupdate PATHS $(qt5_get_bindir) NO_DEFAULT_PATH:" \ |
427 |
- -i cmake/modules/ECMQt4To5Porting.cmake || die "Failed to fix ECMQt4To5Porting.cmake" |
428 |
- |
429 |
- cd src/plugins || die |
430 |
-} |
431 |
- |
432 |
-src_configure() { |
433 |
- local mycmakeargs=( |
434 |
- -DQGIS_MANUAL_SUBDIR=/share/man/ |
435 |
- -DBUILD_SHARED_LIBS=ON |
436 |
- -DQGIS_LIB_SUBDIR=$(get_libdir) |
437 |
- -DQGIS_PLUGIN_SUBDIR=$(get_libdir)/qgis |
438 |
- -DQWT_INCLUDE_DIR=/usr/include/qwt6 |
439 |
- -DQWT_LIBRARY=/usr/$(get_libdir)/libqwt6-qt5.so |
440 |
- -DPEDANTIC=OFF |
441 |
- -DWITH_APIDOC=OFF |
442 |
- -DWITH_QSPATIALITE=ON |
443 |
- -DENABLE_TESTS=OFF |
444 |
- -DWITH_3D=$(usex 3d) |
445 |
- -DWITH_GEOREFERENCER=$(usex georeferencer) |
446 |
- -DWITH_GRASS7=$(usex grass) |
447 |
- -DWITH_SERVER=$(usex mapserver) |
448 |
- -DWITH_ORACLE=$(usex oracle) |
449 |
- -DWITH_QWTPOLAR=$(usex polar) |
450 |
- -DWITH_POSTGRESQL=$(usex postgres) |
451 |
- -DWITH_BINDINGS=$(usex python) |
452 |
- -DWITH_CUSTOM_WIDGETS=$(usex python) |
453 |
- -DWITH_QTWEBKIT=$(usex webkit) |
454 |
- ) |
455 |
- |
456 |
- if use grass; then |
457 |
- mycmakeargs+=( |
458 |
- -DGRASS_PREFIX7=/usr/$(get_libdir)/grass70 |
459 |
- ) |
460 |
- fi |
461 |
- |
462 |
- use python && mycmakeargs+=( -DBINDINGS_GLOBAL_INSTALL=ON ) |
463 |
- |
464 |
- # bugs 612956, 648726 |
465 |
- addpredict /dev/dri/renderD128 |
466 |
- addpredict /dev/dri/renderD129 |
467 |
- |
468 |
- cmake-utils_src_configure |
469 |
-} |
470 |
- |
471 |
-src_install() { |
472 |
- cmake-utils_src_install |
473 |
- |
474 |
- domenu debian/qgis.desktop |
475 |
- |
476 |
- local size type |
477 |
- for size in 16 22 24 32 48 64 96 128 256; do |
478 |
- newicon -s ${size} debian/icons/${PN}-icon${size}x${size}.png ${PN}.png |
479 |
- newicon -c mimetypes -s ${size} debian/icons/${PN}-mime-icon${size}x${size}.png ${PN}-mime.png |
480 |
- for type in qgs qml qlr qpt; do |
481 |
- newicon -c mimetypes -s ${size} debian/icons/${PN}-${type}${size}x${size}.png ${PN}-${type}.png |
482 |
- done |
483 |
- done |
484 |
- newicon -s scalable images/icons/qgis_icon.svg qgis.svg |
485 |
- |
486 |
- insinto /usr/share/mime/packages |
487 |
- doins debian/qgis.xml |
488 |
- |
489 |
- if use examples; then |
490 |
- docinto examples |
491 |
- dodoc -r "${WORKDIR}"/qgis_sample_data/. |
492 |
- docompress -x /usr/share/doc/${PF}/examples |
493 |
- fi |
494 |
- |
495 |
- if use python; then |
496 |
- python_optimize "${ED%/}"/usr/share/qgis/python |
497 |
- fi |
498 |
- |
499 |
- if use grass; then |
500 |
- python_fix_shebang "${ED%/}"/usr/share/qgis/grass/scripts |
501 |
- fi |
502 |
-} |
503 |
- |
504 |
-pkg_postinst() { |
505 |
- if use postgres; then |
506 |
- elog "If you don't intend to use an external PostGIS server" |
507 |
- elog "you should install:" |
508 |
- elog " dev-db/postgis" |
509 |
- elif use python; then |
510 |
- elog "Support of PostgreSQL is disabled." |
511 |
- elog "But some installed python-plugins import the psycopg2 module." |
512 |
- elog "If you do not need these plugins just disable them" |
513 |
- elog "in the Plugins menu, else you need to set USE=\"postgres\"" |
514 |
- fi |
515 |
- if has_version "<sci-geosciences/qgis-3"; then |
516 |
- elog "QGIS is now based on PyQt5. Old scripts may not work anymore." |
517 |
- fi |
518 |
- |
519 |
- gnome2_icon_cache_update |
520 |
- xdg_mimeinfo_database_update |
521 |
- xdg_desktop_database_update |
522 |
-} |
523 |
- |
524 |
-pkg_postrm() { |
525 |
- gnome2_icon_cache_update |
526 |
- xdg_mimeinfo_database_update |
527 |
- xdg_desktop_database_update |
528 |
-} |