Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-geosciences/qgis/files/, sci-geosciences/qgis/
Date: Thu, 02 Mar 2017 19:39:35
Message-Id: 1488483554.6516010356d81151671b063357aff47bca18b86c.asturm@gentoo
1 commit: 6516010356d81151671b063357aff47bca18b86c
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 1 19:08:55 2017 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 2 19:39:14 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65160103
7
8 sci-geosciences/qgis: Drop old
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11 Closes: https://github.com/gentoo/gentoo/pull/4099
12
13 sci-geosciences/qgis/Manifest | 3 -
14 .../qgis-1.7.0-avoid-deprecated-pyqtconfig.patch | 53 ------
15 .../qgis/files/qgis-1.8.0-no-python-pyc.patch | 54 ------
16 .../qgis/files/qgis-1.8.0-private.patch | 10 --
17 .../qgis/files/qgis-1.8.0-redrawning.patch | 10 --
18 sci-geosciences/qgis/metadata.xml | 2 -
19 sci-geosciences/qgis/qgis-1.8.0.ebuild | 115 -------------
20 sci-geosciences/qgis/qgis-2.14.5-r1.ebuild | 172 -------------------
21 sci-geosciences/qgis/qgis-2.18.2-r3.ebuild | 186 ---------------------
22 9 files changed, 605 deletions(-)
23
24 diff --git a/sci-geosciences/qgis/Manifest b/sci-geosciences/qgis/Manifest
25 index 5ea73676a83..f8b2f462316 100644
26 --- a/sci-geosciences/qgis/Manifest
27 +++ b/sci-geosciences/qgis/Manifest
28 @@ -1,6 +1,3 @@
29 -DIST qgis-1.8.0.tar.bz2 29997204 SHA256 700be4f81c4a6b6335a0217a6c476328c0ea02543d579a06dc1aaf60201303ab SHA512 475c2087164b325bd6efe49bdca9e5eb563645ea556c34f644cff00fd6bcc0585e9e39daa2e62f0a706db58bc1551af786fc2cb6c17ad90f5734ebea5044e57c WHIRLPOOL ef1fc2832bd20398afdee9eb4c1e81baa3c8c792acc76c0b609a74ae0d61301b00f105221fa27b74b26c68fd8b5d849ea7612e960a8684b885cb8f31d0c71a1c
30 -DIST qgis-2.14.5.tar.bz2 74336261 SHA256 acc1bc1b1c838503e072b3c80de075185f6059d75bb8a686da7a6ab9264b514d SHA512 d493c83a96eeea2e52199c9a8812989ea89c3357e2f984fdc92f0a05b240770f7ed2d77b1bdbb0e57975c37916acbd6cc4115db5fe11f63897957e8baf6a5586 WHIRLPOOL 3cecafad597ae793acd97648987bb130f17bfc8392cde5fd55f093f54786312a2389cdc754c67b47eb0b9512dc981f95cd85cc5dbaaf178c674a477273e83927
31 -DIST qgis-2.18.2.tar.bz2 83593908 SHA256 e218ecc2c0b983a95bba0dc46788661e803cf870f5740cbcfaa1ea39a71f02a0 SHA512 b78bc4f109015f943fa019f0c03208496626d8eae1887eddf975f5fdf81f455db47428b8051a3d02ae46e0482bd7c955871b7d5ead5a70205f6525f085dcbf7f WHIRLPOOL 97629355706241f84152142793881cbd973a269b3fdf5aa9786b4c0d49af7d26c089461638472a977d1a649f6881599467579706837f1ab69e7be3e5cae96cfb
32 DIST qgis-2.18.3.tar.bz2 83508061 SHA256 743f4f22f8a17b1fd0ae575ed4da1d20ab1fe06561564d097b75c21fddf9b394 SHA512 6d2256cf85ebc1f1ddd3636f8a48284de95c42e3adb26e780b4847208c5ead80dd6a44c1a11d263bcc15bfbd7337d62d10b738ad8a7076382dbe4c4a011ff6fc WHIRLPOOL d342b3d0dd211c63f49e9b3292a585e6fd64d5837cd9bf4fe7bb53a9bd437220d7f5274b012d2732196bd5425388fa9a985fc5d342be5aee9e7fd0d008ca9c48
33 DIST qgis-2.18.4.tar.bz2 85419060 SHA256 737827fd4c63c859a0ea7badd36ebcba970ca7c0a8feda4b10c0de0ed52546e8 SHA512 3938fbc1f87990a08411ba8f793d7900f10eaea1824a5a9d2217ca0dea1a8b0849ec91c41be50dc65f590713391bb613429bf48f9ea0ffaaba876dde35b98fc7 WHIRLPOOL 4dfb9a304c193de3f276871cafe3f0683764d5e7fdc5015e8f3d76c9f46072c01758e87097e0db69657b38da3f5908b41293319d909b5c69b5d23f98ba473b54
34 DIST qgis_sample_data.tar.gz 13601736 SHA256 a31c54056776e8476e1f959870830f850423645cfb80d88811f3b365c29f2b4a SHA512 5847d7b32e5f75e771adf6b959847024f55b2360c307bd80e5628595fc53f5aaca18adf6cb00fa027a7e7b326c7f72bab58df16674daf20b77c676e163d93f78 WHIRLPOOL fe7746f8a72807742427c6fb70f1453e195be75322d5784adc484ac14b0eae55569dbded7468ea2ba0c34781fe14918e07a5a187dca82bff551c6117f941d7f5
35
36 diff --git a/sci-geosciences/qgis/files/qgis-1.7.0-avoid-deprecated-pyqtconfig.patch b/sci-geosciences/qgis/files/qgis-1.7.0-avoid-deprecated-pyqtconfig.patch
37 deleted file mode 100644
38 index 65cabb2afe7..00000000000
39 --- a/sci-geosciences/qgis/files/qgis-1.7.0-avoid-deprecated-pyqtconfig.patch
40 +++ /dev/null
41 @@ -1,53 +0,0 @@
42 -Avoid relying on the deprecated pyqtconfig module.
43 -
44 -When PyQt4 is configured using configure-ng.py then no pyqtconfig module
45 -will be built, causing the automatic detection in the QGIS build system to
46 -fail.
47 -
48 -This change tries to work around the problem by extracting or guessing all
49 -the relevant settings. It should work reasonably well for a default
50 -configuration of PyQt, but may fail if PyQt overrides the defaults from sip.
51 -All may break if SIP v5 is used, since that version apparently won't contain
52 -a sipconfig module any more. But we'll tackle that once we get there.
53 -
54 -References:
55 -* https://bugs.gentoo.org/show_bug.cgi?id=525700
56 -
57 -2014-10-21 Martin von Gagern
58 -
59 -Index: qgis-2.4.0/cmake/FindPyQt.py
60 -===================================================================
61 ---- qgis-2.4.0.orig/cmake/FindPyQt.py
62 -+++ qgis-2.4.0/cmake/FindPyQt.py
63 -@@ -30,9 +30,29 @@
64 - # Redistribution and use is allowed according to the terms of the BSD license.
65 - # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
66 -
67 --import PyQt4.pyqtconfig
68 -+try:
69 -+ import PyQt4.pyqtconfig
70 -+ pyqtcfg = PyQt4.pyqtconfig.Configuration()
71 -+except ImportError:
72 -+ import PyQt4.QtCore
73 -+ import sipconfig # won't work for SIP v5
74 -+ import os.path
75 -+ cfg = sipconfig.Configuration()
76 -+ sip_dir = cfg.default_sip_dir
77 -+ for p in (os.path.join(sip_dir, "PyQt4"), sip_dir):
78 -+ if os.path.exists(os.path.join(p, "QtCore", "QtCoremod.sip")):
79 -+ sip_dir = p
80 -+ break
81 -+ cfg = {
82 -+ 'pyqt_version': PyQt4.QtCore.PYQT_VERSION,
83 -+ 'pyqt_version_str': PyQt4.QtCore.PYQT_VERSION_STR,
84 -+ 'pyqt_sip_flags': PyQt4.QtCore.PYQT_CONFIGURATION['sip_flags'],
85 -+ 'pyqt_mod_dir': cfg.default_mod_dir,
86 -+ 'pyqt_sip_dir': sip_dir,
87 -+ 'pyqt_bin_dir': cfg.default_bin_dir,
88 -+ }
89 -+ pyqtcfg = sipconfig.Configuration([cfg])
90 -
91 --pyqtcfg = PyQt4.pyqtconfig.Configuration()
92 - print("pyqt_version:%06.0x" % pyqtcfg.pyqt_version)
93 - print("pyqt_version_num:%d" % pyqtcfg.pyqt_version)
94 - print("pyqt_version_str:%s" % pyqtcfg.pyqt_version_str)
95
96 diff --git a/sci-geosciences/qgis/files/qgis-1.8.0-no-python-pyc.patch b/sci-geosciences/qgis/files/qgis-1.8.0-no-python-pyc.patch
97 deleted file mode 100644
98 index ec3e1c2dccf..00000000000
99 --- a/sci-geosciences/qgis/files/qgis-1.8.0-no-python-pyc.patch
100 +++ /dev/null
101 @@ -1,54 +0,0 @@
102 ---- cmake/PythonMacros.cmake
103 -+++ cmake/PythonMacros.cmake
104 -@@ -22,40 +22,4 @@
105 - # Install the source file.
106 - INSTALL(FILES ${SOURCE_FILE} DESTINATION ${DESINATION_DIR})
107 -
108 -- # Byte compile and install the .pyc file.
109 -- GET_FILENAME_COMPONENT(_absfilename ${SOURCE_FILE} ABSOLUTE)
110 -- GET_FILENAME_COMPONENT(_filename ${SOURCE_FILE} NAME)
111 -- GET_FILENAME_COMPONENT(_filenamebase ${SOURCE_FILE} NAME_WE)
112 -- GET_FILENAME_COMPONENT(_basepath ${SOURCE_FILE} PATH)
113 --
114 -- if(WIN32)
115 -- string(REGEX REPLACE ".:/" "/" _basepath "${_basepath}")
116 -- endif(WIN32)
117 --
118 -- SET(_bin_py ${CMAKE_CURRENT_BINARY_DIR}/${_basepath}/${_filename})
119 -- SET(_bin_pyc ${CMAKE_CURRENT_BINARY_DIR}/${_basepath}/${_filenamebase}.pyc)
120 --
121 -- FILE(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${_basepath})
122 --
123 -- SET(_message "-DMESSAGE=Byte-compiling ${_bin_py}")
124 --
125 -- GET_FILENAME_COMPONENT(_abs_bin_py ${_bin_py} ABSOLUTE)
126 -- IF(_abs_bin_py STREQUAL ${_absfilename}) # Don't copy the file onto itself.
127 -- ADD_CUSTOM_COMMAND(
128 -- TARGET compile_python_files
129 -- COMMAND ${CMAKE_COMMAND} -E echo ${message}
130 -- COMMAND ${PYTHON_EXECUTABLE} ${_python_compile_py} ${_bin_py}
131 -- DEPENDS ${_absfilename}
132 -- )
133 -- ELSE(_abs_bin_py STREQUAL ${_absfilename})
134 -- ADD_CUSTOM_COMMAND(
135 -- TARGET compile_python_files
136 -- COMMAND ${CMAKE_COMMAND} -E echo ${message}
137 -- COMMAND ${CMAKE_COMMAND} -E copy ${_absfilename} ${_bin_py}
138 -- COMMAND ${PYTHON_EXECUTABLE} ${_python_compile_py} ${_bin_py}
139 -- DEPENDS ${_absfilename}
140 -- )
141 -- ENDIF(_abs_bin_py STREQUAL ${_absfilename})
142 --
143 -- INSTALL(FILES ${_bin_pyc} DESTINATION ${DESINATION_DIR})
144 - ENDMACRO(PYTHON_INSTALL)
145 ---- python/CMakeLists.txt
146 -+++ python/CMakeLists.txt
147 -@@ -102,8 +102,6 @@
148 -
149 - SET (QGIS_PYTHON_DIR ${PYTHON_SITE_PACKAGES_DIR}/qgis)
150 -
151 --ADD_CUSTOM_TARGET(compile_python_files ALL)
152 --
153 - ADD_CUSTOM_COMMAND(TARGET compile_python_files
154 - POST_BUILD
155 - COMMAND ${CMAKE_COMMAND} -E make_directory ${QGIS_PYTHON_OUTPUT_DIRECTORY}
156
157 diff --git a/sci-geosciences/qgis/files/qgis-1.8.0-private.patch b/sci-geosciences/qgis/files/qgis-1.8.0-private.patch
158 deleted file mode 100644
159 index 59c3ca76939..00000000000
160 --- a/sci-geosciences/qgis/files/qgis-1.8.0-private.patch
161 +++ /dev/null
162 @@ -1,10 +0,0 @@
163 ---- a/src/core/qgsmaplayerregistry.h 2015-12-30 15:06:17.199889612 +0100
164 -+++ b/src/core/qgsmaplayerregistry.h 2015-12-30 15:05:50.159890061 +0100
165 -@@ -173,6 +173,7 @@
166 - /** debugging member
167 - invoked when a connect() is made to this object
168 - */
169 -+ public:
170 - void connectNotify( const char * signal );
171 -
172 -
173
174 diff --git a/sci-geosciences/qgis/files/qgis-1.8.0-redrawning.patch b/sci-geosciences/qgis/files/qgis-1.8.0-redrawning.patch
175 deleted file mode 100644
176 index b58ec55f164..00000000000
177 --- a/sci-geosciences/qgis/files/qgis-1.8.0-redrawning.patch
178 +++ /dev/null
179 @@ -1,10 +0,0 @@
180 ---- a/src/gui/qgsmaptoolpan.cpp 2012-06-12 21:28:18.000000000 +0200
181 -+++ b/src/gui/qgsmaptoolpan.cpp 2015-12-30 15:55:02.679840978 +0100
182 -@@ -39,6 +39,7 @@
183 - mDragging = true;
184 - // move map and other canvas items
185 - mCanvas->panAction( e );
186 -+ mCanvas->refresh();
187 - }
188 - }
189 -
190
191 diff --git a/sci-geosciences/qgis/metadata.xml b/sci-geosciences/qgis/metadata.xml
192 index dca8b5f01bb..fc606b878cf 100644
193 --- a/sci-geosciences/qgis/metadata.xml
194 +++ b/sci-geosciences/qgis/metadata.xml
195 @@ -14,8 +14,6 @@
196 tracks from your GPS.
197 </longdescription>
198 <use>
199 - <flag name="bundled-libs">Use internal copy of <pkg>x11-libs/qwtpolar</pkg></flag>
200 - <flag name="spatialite">Enable Spatial DBMS over sqlite <pkg>dev-db/spatialite</pkg></flag>
201 <flag name="grass">Add support for <pkg>sci-geosciences/grass</pkg></flag>
202 <flag name="mapserver">Determines whether mapserver should be built</flag>
203 <flag name="georeferencer">Determines whether georeferencer plugin should be built</flag>
204
205 diff --git a/sci-geosciences/qgis/qgis-1.8.0.ebuild b/sci-geosciences/qgis/qgis-1.8.0.ebuild
206 deleted file mode 100644
207 index bff71e7dc8b..00000000000
208 --- a/sci-geosciences/qgis/qgis-1.8.0.ebuild
209 +++ /dev/null
210 @@ -1,115 +0,0 @@
211 -# Copyright 1999-2016 Gentoo Foundation
212 -# Distributed under the terms of the GNU General Public License v2
213 -
214 -EAPI=5
215 -
216 -PYTHON_COMPAT=( python2_7 )
217 -PYTHON_REQ_USE="sqlite"
218 -
219 -inherit eutils gnome2-utils multilib cmake-utils python-single-r1
220 -
221 -DESCRIPTION="User friendly Geographic Information System"
222 -HOMEPAGE="http://www.qgis.org/"
223 -SRC_URI="http://qgis.org/downloads/${P}.tar.bz2
224 - examples? ( http://download.osgeo.org/qgis/data/qgis_sample_data.tar.gz )"
225 -
226 -LICENSE="GPL-2"
227 -SLOT="0"
228 -KEYWORDS="amd64 x86"
229 -IUSE="bundled-libs examples gsl postgres python spatialite test"
230 -
231 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
232 -
233 -RDEPEND="
234 - ${PYTHON_DEPS}
235 - dev-libs/expat
236 - dev-qt/qtcore:4
237 - dev-qt/qtgui:4
238 - dev-qt/qtsvg:4
239 - dev-qt/qtsql:4
240 - dev-qt/qtwebkit:4
241 - sci-geosciences/gpsbabel
242 - >=sci-libs/gdal-1.6.1[geos,python?]
243 - sci-libs/geos
244 - sci-libs/libspatialindex
245 - sci-libs/proj
246 - x11-libs/qwt:5[svg]
247 - !bundled-libs? ( <x11-libs/qwtpolar-1 )
248 - gsl? ( sci-libs/gsl )
249 - postgres? ( >=dev-db/postgresql-8.4:= )
250 - python? (
251 - dev-python/PyQt4[X,sql,svg,webkit,${PYTHON_USEDEP}]
252 - dev-python/sip:=[${PYTHON_USEDEP}]
253 - )
254 - spatialite? (
255 - dev-db/sqlite:3
256 - dev-db/spatialite
257 - )"
258 -DEPEND="${RDEPEND}
259 - sys-devel/bison
260 - sys-devel/flex"
261 -
262 -PATCHES=(
263 - "${FILESDIR}/${PN}-1.7.0-avoid-deprecated-pyqtconfig.patch"
264 - "${FILESDIR}/${PN}-1.8.0-no-python-pyc.patch"
265 - "${FILESDIR}/${PN}-1.8.0-redrawning.patch"
266 - "${FILESDIR}/${PN}-1.8.0-private.patch"
267 -)
268 -
269 -pkg_setup() {
270 - python-single-r1_pkg_setup
271 -}
272 -
273 -src_configure() {
274 - local mycmakeargs=(
275 - "-DQGIS_MANUAL_SUBDIR=/share/man/"
276 - "-DBUILD_SHARED_LIBS=ON"
277 - "-DQGIS_LIB_SUBDIR=$(get_libdir)"
278 - "-DQGIS_PLUGIN_SUBDIR=$(get_libdir)/qgis"
279 - "-DWITH_INTERNAL_SPATIALITE=OFF"
280 - "-DWITH_INTERNAL_QWTPOLAR=$(usex bundled-libs "ON" "OFF")"
281 - "-DPEDANTIC=OFF"
282 - "-DWITH_APIDOC=OFF"
283 - "-DWITH_GRASS=OFF"
284 - $(cmake-utils_use_with postgres POSTGRESQL)
285 - $(cmake-utils_use_with python BINDINGS)
286 - $(cmake-utils_use python BINDINGS_GLOBAL_INSTALL)
287 - $(cmake-utils_use_with spatialite SPATIALITE)
288 - $(cmake-utils_use_enable test TESTS)
289 - )
290 - cmake-utils_src_configure
291 -}
292 -
293 -src_install() {
294 - cmake-utils_src_install
295 - dodoc BUGS ChangeLog CODING README
296 -
297 - newicon -s 128 images/icons/qgis-icon.png qgis.png
298 - make_desktop_entry qgis "Quantum GIS " qgis
299 -
300 - if use examples; then
301 - insinto /usr/share/doc/${PF}/examples
302 - doins -r "${WORKDIR}"/qgis_sample_data/*
303 - fi
304 -
305 - python_optimize "${D}"/usr/share/qgis/python/plugins \
306 - "${D}"/$(python_get_sitedir)/qgis
307 -}
308 -
309 -pkg_preinst() {
310 - gnome2_icon_savelist
311 -}
312 -
313 -pkg_postinst() {
314 - if use postgres; then
315 - elog "If you don't intend to use an external PostGIS server"
316 - elog "you should install:"
317 - elog " dev-db/postgis"
318 - fi
319 -
320 - gnome2_icon_cache_update
321 -}
322 -
323 -pkg_postrm() {
324 - gnome2_icon_cache_update
325 -}
326
327 diff --git a/sci-geosciences/qgis/qgis-2.14.5-r1.ebuild b/sci-geosciences/qgis/qgis-2.14.5-r1.ebuild
328 deleted file mode 100644
329 index 94aabb570fc..00000000000
330 --- a/sci-geosciences/qgis/qgis-2.14.5-r1.ebuild
331 +++ /dev/null
332 @@ -1,172 +0,0 @@
333 -# Copyright 1999-2017 Gentoo Foundation
334 -# Distributed under the terms of the GNU General Public License v2
335 -
336 -EAPI="6"
337 -
338 -PYTHON_COMPAT=( python2_7 )
339 -PYTHON_REQ_USE="sqlite"
340 -
341 -inherit eutils gnome2-utils cmake-utils python-single-r1
342 -
343 -DESCRIPTION="User friendly Geographic Information System"
344 -HOMEPAGE="http://www.qgis.org/"
345 -SRC_URI="
346 - http://qgis.org/downloads/qgis-${PV}.tar.bz2
347 - examples? ( http://download.osgeo.org/qgis/data/qgis_sample_data.tar.gz )"
348 -
349 -LICENSE="GPL-2+ GPL-3+"
350 -SLOT="0"
351 -KEYWORDS="~amd64 ~x86"
352 -IUSE="examples grass gsl mapserver oracle postgres python"
353 -
354 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )
355 - mapserver? ( python )"
356 -
357 -RDEPEND="
358 - ${PYTHON_DEPS}
359 - dev-libs/expat
360 - sci-geosciences/gpsbabel
361 - >=sci-libs/gdal-1.6.1:=[geos,python?,${PYTHON_USEDEP}]
362 - sci-libs/geos
363 - gsl? ( sci-libs/gsl:= )
364 - sci-libs/libspatialindex:=
365 - sci-libs/proj
366 - dev-qt/designer:4
367 - dev-qt/qtcore:4
368 - dev-qt/qtgui:4
369 - dev-qt/qtscript:4
370 - dev-qt/qtsvg:4
371 - dev-qt/qtsql:4
372 - dev-qt/qtwebkit:4
373 - x11-libs/qscintilla:=[qt4(-)]
374 - || (
375 - ( || ( <x11-libs/qwt-6.1.2:6[svg] >=x11-libs/qwt-6.1.2:6[svg,qt4] ) >=x11-libs/qwtpolar-1[qt4(+)] )
376 - ( x11-libs/qwt:5[svg] <x11-libs/qwtpolar-1 )
377 - )
378 - grass? ( || ( >=sci-geosciences/grass-7.0.0:= ) )
379 - mapserver? ( dev-libs/fcgi )
380 - oracle? ( dev-db/oracle-instantclient:= )
381 - postgres? ( dev-db/postgresql:= )
382 - python? (
383 - dev-python/PyQt4[X,sql,svg,webkit,${PYTHON_USEDEP}]
384 - dev-python/sip[${PYTHON_USEDEP}]
385 - dev-python/qscintilla-python[qt4(+),${PYTHON_USEDEP}]
386 - dev-python/python-dateutil[${PYTHON_USEDEP}]
387 - dev-python/httplib2[${PYTHON_USEDEP}]
388 - dev-python/jinja[${PYTHON_USEDEP}]
389 - dev-python/markupsafe[${PYTHON_USEDEP}]
390 - dev-python/pygments[${PYTHON_USEDEP}]
391 - dev-python/pytz[${PYTHON_USEDEP}]
392 - dev-python/six[${PYTHON_USEDEP}]
393 - postgres? ( dev-python/psycopg:2[${PYTHON_USEDEP}] )
394 - ${PYTHON_DEPS}
395 - )
396 - dev-db/sqlite:3
397 - dev-db/spatialite
398 - app-crypt/qca:2[qt4,ssl]
399 -"
400 -
401 -DEPEND="${RDEPEND}
402 - sys-devel/bison
403 - sys-devel/flex"
404 -
405 -DOCS=( BUGS ChangeLog NEWS )
406 -
407 -# Disabling test suite because upstream disallow running from install path
408 -RESTRICT="test"
409 -
410 -pkg_setup() {
411 - python-single-r1_pkg_setup
412 -}
413 -
414 -src_configure() {
415 - local mycmakeargs=(
416 - "-DQGIS_MANUAL_SUBDIR=/share/man/"
417 - "-DBUILD_SHARED_LIBS=ON"
418 - "-DQGIS_LIB_SUBDIR=$(get_libdir)"
419 - "-DQGIS_PLUGIN_SUBDIR=$(get_libdir)/qgis"
420 - "-DWITH_INTERNAL_DATEUTIL=OFF"
421 - "-DWITH_INTERNAL_HTTPLIB2=OFF"
422 - "-DWITH_INTERNAL_JINJA2=OFF"
423 - "-DWITH_INTERNAL_MARKUPSAFE=OFF"
424 - "-DWITH_INTERNAL_PYGMENTS=OFF"
425 - "-DWITH_INTERNAL_PYTZ=OFF"
426 - "-DWITH_INTERNAL_QWTPOLAR=OFF"
427 - "-DWITH_INTERNAL_SIX=OFF"
428 - "-DPEDANTIC=OFF"
429 - "-DWITH_APIDOC=OFF"
430 - "-WITH_QSPATIALITE=ON"
431 - -DENABLE_TESTS=no
432 - -DWITH_BINDINGS="$(usex python)"
433 - -DWITH_GRASS7="$(usex grass)"
434 - $(usex grass "-DGRASS_PREFIX=/usr/" "")
435 - -DWITH_GSL="$(usex gsl)"
436 - -DWITH_ORACLE="$(usex oracle)"
437 - -DWITH_POSTGRESQL="$(usex postgres)"
438 - -DWITH_PYSPATIALITE="$(usex python)"
439 - -DWITH_SERVER="$(usex mapserver)"
440 - )
441 -
442 - if has_version '>=x11-libs/qwtpolar-1' && has_version 'x11-libs/qwt:5' ; then
443 - elog "Both >=x11-libs/qwtpolar-1 and x11-libs/qwt:5 installed. Force build with qwt6"
444 - if has_version '>=x11-libs/qwt-6.1.2' ; then
445 - mycmakeargs+=(
446 - "-DQWT_INCLUDE_DIR=/usr/include/qwt6"
447 - "-DQWT_LIBRARY=/usr/$(get_libdir)/libqwt6-qt4.so"
448 - )
449 - else
450 - mycmakeargs+=(
451 - "-DQWT_INCLUDE_DIR=/usr/include/qwt6"
452 - "-DQWT_LIBRARY=/usr/$(get_libdir)/libqwt6.so"
453 - )
454 - fi
455 - fi
456 -
457 - cmake-utils_src_configure
458 -}
459 -
460 -src_install() {
461 - cmake-utils_src_install
462 -
463 - newicon -s 128 images/icons/qgis-icon.png qgis.png
464 - make_desktop_entry qgis "QGIS " qgis
465 -
466 - if use examples; then
467 - insinto /usr/share/doc/${PF}/examples
468 - doins -r "${WORKDIR}"/qgis_sample_data/*
469 - fi
470 -
471 - python_optimize "${D}"/usr/share/qgis/python \
472 - "${D}"/$(python_get_sitedir)/qgis \
473 - "${D}"/$(python_get_sitedir)/pyspatialite
474 -
475 - if use grass; then
476 - python_fix_shebang "${D}"/usr/share/qgis/grass/scripts
477 - python_optimize "${D}"/usr/share/qgis/grass/scripts
478 - fi
479 -}
480 -
481 -pkg_preinst() {
482 - gnome2_icon_savelist
483 -}
484 -
485 -pkg_postinst() {
486 - if use postgres; then
487 - elog "If you don't intend to use an external PostGIS server"
488 - elog "you should install:"
489 - elog " dev-db/postgis"
490 - else
491 - if use python ; then
492 - elog "Support of PostgreSQL is disabled."
493 - elog "But some installed python-plugins needs import psycopg2 module."
494 - elog "If you do not need this modules just disable them in main menu."
495 - elog "Or you need to set USE=postgres"
496 - fi
497 - fi
498 -
499 - gnome2_icon_cache_update
500 -}
501 -
502 -pkg_postrm() {
503 - gnome2_icon_cache_update
504 -}
505
506 diff --git a/sci-geosciences/qgis/qgis-2.18.2-r3.ebuild b/sci-geosciences/qgis/qgis-2.18.2-r3.ebuild
507 deleted file mode 100644
508 index 8d2ae3b3ff5..00000000000
509 --- a/sci-geosciences/qgis/qgis-2.18.2-r3.ebuild
510 +++ /dev/null
511 @@ -1,186 +0,0 @@
512 -# Copyright 1999-2017 Gentoo Foundation
513 -# Distributed under the terms of the GNU General Public License v2
514 -
515 -EAPI="6"
516 -
517 -PYTHON_COMPAT=( python2_7 )
518 -PYTHON_REQ_USE="sqlite"
519 -
520 -inherit eutils fdo-mime gnome2-utils cmake-utils python-single-r1
521 -
522 -DESCRIPTION="User friendly Geographic Information System"
523 -HOMEPAGE="http://www.qgis.org/"
524 -SRC_URI="
525 - http://qgis.org/downloads/qgis-${PV}.tar.bz2
526 - examples? ( http://download.osgeo.org/qgis/data/qgis_sample_data.tar.gz )"
527 -
528 -LICENSE="GPL-2+ GPL-3+"
529 -SLOT="0"
530 -KEYWORDS="~amd64 ~x86"
531 -IUSE="examples georeferencer grass mapserver oracle postgres python"
532 -
533 -REQUIRED_USE="
534 - python? ( ${PYTHON_REQUIRED_USE} )
535 - mapserver? ( python )"
536 -
537 -RDEPEND="
538 - ${PYTHON_DEPS}
539 - dev-libs/expat
540 - sci-geosciences/gpsbabel
541 - >=sci-libs/gdal-1.6.1:=[geos,oracle?,python?,${PYTHON_USEDEP}]
542 - sci-libs/geos
543 - sci-libs/libspatialindex:=
544 - sci-libs/proj
545 - dev-libs/qjson
546 - dev-qt/designer:4
547 - dev-qt/qtcore:4
548 - dev-qt/qtgui:4
549 - dev-qt/qtscript:4
550 - dev-qt/qtsvg:4
551 - dev-qt/qtsql:4
552 - dev-qt/qtwebkit:4
553 - x11-libs/qscintilla:=[qt4(-)]
554 - || (
555 - ( || ( <x11-libs/qwt-6.1.2:6[svg] >=x11-libs/qwt-6.1.2:6[svg,qt4] ) >=x11-libs/qwtpolar-1[qt4(+)] )
556 - ( x11-libs/qwt:5[svg] <x11-libs/qwtpolar-1 )
557 - )
558 - georeferencer? ( sci-libs/gsl:= )
559 - grass? ( || ( >=sci-geosciences/grass-7.0.0:= ) )
560 - mapserver? ( dev-libs/fcgi )
561 - oracle? ( dev-db/oracle-instantclient:= )
562 - postgres? ( dev-db/postgresql:= )
563 - python? (
564 - dev-python/PyQt4[X,sql,svg,webkit,${PYTHON_USEDEP}]
565 - <dev-python/sip-4.19:=[${PYTHON_USEDEP}]
566 - dev-python/qscintilla-python[qt4(+),${PYTHON_USEDEP}]
567 - dev-python/python-dateutil[${PYTHON_USEDEP}]
568 - dev-python/httplib2[${PYTHON_USEDEP}]
569 - dev-python/jinja[${PYTHON_USEDEP}]
570 - dev-python/markupsafe[${PYTHON_USEDEP}]
571 - dev-python/pygments[${PYTHON_USEDEP}]
572 - dev-python/pytz[${PYTHON_USEDEP}]
573 - dev-python/requests[${PYTHON_USEDEP}]
574 - dev-python/six[${PYTHON_USEDEP}]
575 - postgres? ( dev-python/psycopg:2[${PYTHON_USEDEP}] )
576 - ${PYTHON_DEPS}
577 - )
578 - dev-db/sqlite:3
579 - >=dev-db/spatialite-4.1.0
580 - app-crypt/qca:2[qt4,ssl]
581 -"
582 -
583 -DEPEND="${RDEPEND}
584 - sys-devel/bison
585 - sys-devel/flex"
586 -
587 -# Disabling test suite because upstream disallow running from install path
588 -RESTRICT="test"
589 -
590 -pkg_setup() {
591 - python-single-r1_pkg_setup
592 -}
593 -
594 -src_prepare() {
595 - cmake-utils_src_prepare
596 -
597 - cd src/plugins || die
598 - use georeferencer || cmake_comment_add_subdirectory "georeferencer"
599 -}
600 -
601 -src_configure() {
602 - local mycmakeargs=(
603 - -DQGIS_MANUAL_SUBDIR=/share/man/
604 - -DBUILD_SHARED_LIBS=ON
605 - -DQGIS_LIB_SUBDIR=$(get_libdir)
606 - -DQGIS_PLUGIN_SUBDIR=$(get_libdir)/qgis
607 - -DWITH_INTERNAL_DATEUTIL=OFF
608 - -DWITH_INTERNAL_HTTPLIB2=OFF
609 - -DWITH_INTERNAL_JINJA2=OFF
610 - -DWITH_INTERNAL_MARKUPSAFE=OFF
611 - -DWITH_INTERNAL_PYGMENTS=OFF
612 - -DWITH_INTERNAL_PYTZ=OFF
613 - -DWITH_INTERNAL_QWTPOLAR=OFF
614 - -DWITH_INTERNAL_SIX=OFF
615 - -DPEDANTIC=OFF
616 - -DWITH_APIDOC=OFF
617 - -DWITH_QSPATIALITE=ON
618 - -DENABLE_TESTS=OFF
619 - -DWITH_BINDINGS="$(usex python)"
620 - -DWITH_GRASS7="$(usex grass)"
621 - $(usex grass "-DGRASS_PREFIX=/usr/" "")
622 - -DWITH_ORACLE="$(usex oracle)"
623 - -DWITH_POSTGRESQL="$(usex postgres)"
624 - -DWITH_PYSPATIALITE="$(usex python)"
625 - -DWITH_SERVER="$(usex mapserver)"
626 - )
627 -
628 - if has_version '>=x11-libs/qwtpolar-1' && has_version 'x11-libs/qwt:5' ; then
629 - elog "Both >=x11-libs/qwtpolar-1 and x11-libs/qwt:5 installed. Force build with qwt6"
630 - mycmakeargs+=( "-DQWT_INCLUDE_DIR=/usr/include/qwt6" )
631 - if has_version '>=x11-libs/qwt-6.1.2' ; then
632 - mycmakeargs+=( "-DQWT_LIBRARY=/usr/$(get_libdir)/libqwt6-qt4.so" )
633 - else
634 - mycmakeargs+=( "-DQWT_LIBRARY=/usr/$(get_libdir)/libqwt6.so" )
635 - fi
636 - fi
637 -
638 - cmake-utils_src_configure
639 -}
640 -
641 -src_install() {
642 - cmake-utils_src_install
643 -
644 - domenu debian/qgis.desktop
645 -
646 - local size type
647 - for size in 16 22 24 32 48 64 96 128 256; do
648 - newicon -s ${size} debian/${PN}-icon${size}x${size}.png ${PN}.png
649 - newicon -c mimetypes -s ${size} debian/${PN}-mime-icon${size}x${size}.png ${PN}-mime.png
650 - for type in qgs qml qlr qpt; do
651 - newicon -c mimetypes -s ${size} debian/${PN}-${type}${size}x${size}.png ${PN}-${type}.png
652 - done
653 - done
654 - newicon -s scalable images/icons/qgis_icon.svg qgis.svg
655 -
656 - insinto /usr/share/mime/packages
657 - doins debian/qgis.xml
658 -
659 - if use examples; then
660 - docompress -x /usr/share/doc/${PF}/examples
661 - docinto examples
662 - dodoc -r "${WORKDIR}"/qgis_sample_data/.
663 - fi
664 -
665 - python_optimize "${D}"/usr/share/qgis/python
666 -
667 - if use grass; then
668 - python_fix_shebang "${D}"/usr/share/qgis/grass/scripts
669 - fi
670 -}
671 -
672 -pkg_preinst() {
673 - gnome2_icon_savelist
674 -}
675 -
676 -pkg_postinst() {
677 - if use postgres; then
678 - elog "If you don't intend to use an external PostGIS server"
679 - elog "you should install:"
680 - elog " dev-db/postgis"
681 - elif use python; then
682 - elog "Support of PostgreSQL is disabled."
683 - elog "But some installed python-plugins import the psycopg2 module."
684 - elog "If you do not need these plugins just disable them"
685 - elog "in the Plugins menu, else you need to set USE=\"postgres\""
686 - fi
687 -
688 - gnome2_icon_cache_update
689 - fdo-mime_mime_database_update
690 - fdo-mime_desktop_database_update
691 -}
692 -
693 -pkg_postrm() {
694 - gnome2_icon_cache_update
695 - fdo-mime_mime_database_update
696 - fdo-mime_desktop_database_update
697 -}