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/
Date: Thu, 12 Mar 2020 00:13:13
Message-Id: 1583971971.23b9f0ca4420569abd748f51ae3331bf578539d8.asturm@gentoo
1 commit: 23b9f0ca4420569abd748f51ae3331bf578539d8
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 11 23:50:51 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 12 00:12:51 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23b9f0ca
7
8 sci-geosciences/qgis: 3.10.3 version bump
9
10 Package-Manager: Portage-2.3.93, Repoman-2.3.20
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 sci-geosciences/qgis/Manifest | 1 +
14 sci-geosciences/qgis/qgis-3.10.3.ebuild | 206 ++++++++++++++++++++++++++++++++
15 2 files changed, 207 insertions(+)
16
17 diff --git a/sci-geosciences/qgis/Manifest b/sci-geosciences/qgis/Manifest
18 index 4716dc2a28a..a651738f867 100644
19 --- a/sci-geosciences/qgis/Manifest
20 +++ b/sci-geosciences/qgis/Manifest
21 @@ -1,2 +1,3 @@
22 DIST qgis-3.10.2.tar.bz2 101916273 BLAKE2B 4b5d424348609e8fd1822ea9594fb11d30ae060aff15d8d962a1b15a602c1bdf5d8a17976c5a487ded5e5764e7367b8024aa52f9620ba0ec57fb075426a3c9f2 SHA512 d2ba31a8b50e0fec901d89dba6ca8467a9e26033197e78c56caaf7cce6b9bb7a1617a75f8e6275356f921ba9e986611384ab77890a4d7f5911d632e42466bb9f
23 +DIST qgis-3.10.3.tar.bz2 102032791 BLAKE2B f64375438698f5477162644dc233e1014e6b541c5630398daa164582c3fb9130516144a9b0a5405948923416c1239cfa5260ee1e2f195b437044b0ae1bb29b9f SHA512 05501763e6ff38caa3b527e2f800da945bc08a9a194aae531c4466b76bc8bd18582e2ed5eceb82affaeec3db895ab9e36b3e09c9a4c7b3406bf98c88d54cc1a4
24 DIST qgis_sample_data-2.8.14.tar.gz 22119181 BLAKE2B 2d0565e91ec8119382bc9ab8e262dc04227fe8289146794891759ff5a32012245270614ba1119a6329fc45cf56852830c2079589309aa3467873f71f5c608eac SHA512 6b2653d5b57ffc2c2317639dac212429840984ac917ca3e452b39aabb99ea106d1a77c1c1dd967244ef16ede9deae751b170affdf08b72239eafed5b8977da3d
25
26 diff --git a/sci-geosciences/qgis/qgis-3.10.3.ebuild b/sci-geosciences/qgis/qgis-3.10.3.ebuild
27 new file mode 100644
28 index 00000000000..74129055f6b
29 --- /dev/null
30 +++ b/sci-geosciences/qgis/qgis-3.10.3.ebuild
31 @@ -0,0 +1,206 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( python3_{6,7,8} )
38 +PYTHON_REQ_USE="sqlite"
39 +QT_MIN_VER="5.9.4"
40 +
41 +if [[ ${PV} = *9999 ]]; then
42 + EGIT_REPO_URI="https://github.com/${PN}/${PN^^}.git"
43 + inherit git-r3
44 +else
45 + SRC_URI="https://qgis.org/downloads/${P}.tar.bz2
46 + examples? ( https://qgis.org/downloads/data/qgis_sample_data.tar.gz -> qgis_sample_data-2.8.14.tar.gz )"
47 + KEYWORDS="~amd64 ~x86"
48 +fi
49 +inherit cmake desktop python-single-r1 qmake-utils xdg
50 +
51 +DESCRIPTION="User friendly Geographic Information System"
52 +HOMEPAGE="https://www.qgis.org/"
53 +
54 +LICENSE="GPL-2+ GPL-3+"
55 +SLOT="0"
56 +IUSE="3d examples georeferencer grass hdf5 mapserver netcdf opencl oracle polar postgres python qml webkit"
57 +
58 +REQUIRED_USE="${PYTHON_REQUIRED_USE} mapserver? ( python )"
59 +
60 +BDEPEND="
61 + ${PYTHON_DEPS}
62 + >=dev-qt/linguist-tools-${QT_MIN_VER}:5
63 + sys-devel/bison
64 + sys-devel/flex
65 +"
66 +COMMON_DEPEND="
67 + app-crypt/qca:2[qt5(+),ssl]
68 + >=dev-db/spatialite-4.2.0
69 + dev-db/sqlite:3
70 + dev-libs/expat
71 + dev-libs/libzip:=
72 + dev-libs/qtkeychain[qt5(+)]
73 + >=dev-qt/designer-${QT_MIN_VER}:5
74 + >=dev-qt/qtconcurrent-${QT_MIN_VER}:5
75 + >=dev-qt/qtcore-${QT_MIN_VER}:5
76 + >=dev-qt/qtgui-${QT_MIN_VER}:5
77 + >=dev-qt/qtnetwork-${QT_MIN_VER}:5[ssl]
78 + >=dev-qt/qtpositioning-${QT_MIN_VER}:5
79 + >=dev-qt/qtprintsupport-${QT_MIN_VER}:5
80 + >=dev-qt/qtserialport-${QT_MIN_VER}:5
81 + >=dev-qt/qtsvg-${QT_MIN_VER}:5
82 + >=dev-qt/qtsql-${QT_MIN_VER}:5
83 + >=dev-qt/qtwidgets-${QT_MIN_VER}:5
84 + >=dev-qt/qtxml-${QT_MIN_VER}:5
85 + media-gfx/exiv2:=
86 + >=sci-libs/gdal-3.0.4:=[geos]
87 + sci-libs/geos
88 + sci-libs/libspatialindex:=
89 + >=sci-libs/proj-4.9.3:=
90 + >=x11-libs/qscintilla-2.10.1:=[qt5(+)]
91 + >=x11-libs/qwt-6.1.2:6=[qt5(+),svg]
92 + 3d? ( >=dev-qt/qt3d-${QT_MIN_VER}:5 )
93 + georeferencer? ( sci-libs/gsl:= )
94 + grass? ( =sci-geosciences/grass-7*:= )
95 + hdf5? ( sci-libs/hdf5:= )
96 + mapserver? ( dev-libs/fcgi )
97 + netcdf? ( sci-libs/netcdf:= )
98 + opencl? ( virtual/opencl )
99 + oracle? (
100 + dev-db/oracle-instantclient:=
101 + sci-libs/gdal:=[oracle]
102 + )
103 + polar? ( >=x11-libs/qwtpolar-1.1.1-r1[qt5(+)] )
104 + postgres? ( dev-db/postgresql:= )
105 + python? (
106 + ${PYTHON_DEPS}
107 + $(python_gen_cond_dep '
108 + dev-python/future[${PYTHON_MULTI_USEDEP}]
109 + dev-python/httplib2[${PYTHON_MULTI_USEDEP}]
110 + dev-python/jinja[${PYTHON_MULTI_USEDEP}]
111 + dev-python/markupsafe[${PYTHON_MULTI_USEDEP}]
112 + dev-python/owslib[${PYTHON_MULTI_USEDEP}]
113 + dev-python/pygments[${PYTHON_MULTI_USEDEP}]
114 + dev-python/PyQt5[designer,network,sql,svg,webkit?,${PYTHON_MULTI_USEDEP}]
115 + dev-python/python-dateutil[${PYTHON_MULTI_USEDEP}]
116 + dev-python/pytz[${PYTHON_MULTI_USEDEP}]
117 + dev-python/pyyaml[${PYTHON_MULTI_USEDEP}]
118 + >=dev-python/qscintilla-python-2.10.1[qt5(+),${PYTHON_MULTI_USEDEP}]
119 + dev-python/requests[${PYTHON_MULTI_USEDEP}]
120 + dev-python/sip:=[${PYTHON_MULTI_USEDEP}]
121 + dev-python/six[${PYTHON_MULTI_USEDEP}]
122 + >=sci-libs/gdal-2.2.3[python,${PYTHON_MULTI_USEDEP}]
123 + postgres? ( dev-python/psycopg:2[${PYTHON_MULTI_USEDEP}] )
124 + ')
125 + )
126 + qml? ( >=dev-qt/qtdeclarative-${QT_MIN_VER}:5 )
127 + webkit? ( >=dev-qt/qtwebkit-5.9.1:5 )
128 +"
129 +DEPEND="${COMMON_DEPEND}
130 + >=dev-qt/qttest-${QT_MIN_VER}:5
131 + python? ( ${PYTHON_DEPS} )
132 +"
133 +RDEPEND="${COMMON_DEPEND}
134 + sci-geosciences/gpsbabel
135 +"
136 +
137 +# Disabling test suite because upstream disallow running from install path
138 +RESTRICT="test"
139 +
140 +PATCHES=(
141 + # git master
142 + "${FILESDIR}/${PN}-3.10.0-cmake-lib-suffix.patch"
143 + # TODO upstream
144 + "${FILESDIR}/${PN}-3.4.7-featuresummary.patch"
145 + "${FILESDIR}/${PN}-3.4.7-default-qmldir.patch"
146 +)
147 +
148 +pkg_setup() {
149 + python-single-r1_pkg_setup
150 +}
151 +
152 +src_prepare() {
153 + cmake_src_prepare
154 +}
155 +
156 +src_configure() {
157 + local mycmakeargs=(
158 + -DQGIS_MANUAL_SUBDIR=share/man/
159 + -DQGIS_LIB_SUBDIR=$(get_libdir)
160 + -DQGIS_PLUGIN_SUBDIR=$(get_libdir)/qgis
161 + -DQWT_INCLUDE_DIR=/usr/include/qwt6
162 + -DQWT_LIBRARY=/usr/$(get_libdir)/libqwt6-qt5.so
163 + -DPEDANTIC=OFF
164 + -DUSE_CCACHE=OFF
165 + -DWITH_ANALYSIS=ON
166 + -DWITH_APIDOC=OFF
167 + -DWITH_GUI=ON
168 + -DWITH_INTERNAL_MDAL=ON # not packaged, bug 684538
169 + -DWITH_QSPATIALITE=ON
170 + -DENABLE_TESTS=OFF
171 + -DWITH_3D=$(usex 3d)
172 + -DWITH_GEOREFERENCER=$(usex georeferencer)
173 + -DWITH_GRASS7=$(usex grass)
174 + $(cmake_use_find_package hdf5 HDF5)
175 + -DWITH_SERVER=$(usex mapserver)
176 + $(cmake_use_find_package netcdf NetCDF)
177 + -DUSE_OPENCL=$(usex opencl)
178 + -DWITH_ORACLE=$(usex oracle)
179 + -DWITH_QWTPOLAR=$(usex polar)
180 + -DWITH_POSTGRESQL=$(usex postgres)
181 + -DWITH_BINDINGS=$(usex python)
182 + -DWITH_CUSTOM_WIDGETS=$(usex python)
183 + -DWITH_QUICK=$(usex qml)
184 + -DWITH_QTWEBKIT=$(usex webkit)
185 + )
186 +
187 + if use grass; then
188 + mycmakeargs+=(
189 + -DGRASS_PREFIX7=/usr/$(get_libdir)/grass70
190 + )
191 + fi
192 +
193 + use python && mycmakeargs+=( -DBINDINGS_GLOBAL_INSTALL=ON )
194 +
195 + # bugs 612956, 648726
196 + addpredict /dev/dri/renderD128
197 + addpredict /dev/dri/renderD129
198 +
199 + cmake_src_configure
200 +}
201 +
202 +src_install() {
203 + cmake_src_install
204 +
205 + insinto /usr/share/mime/packages
206 + doins debian/qgis.xml
207 +
208 + if use examples; then
209 + docinto examples
210 + dodoc -r "${WORKDIR}"/qgis_sample_data/.
211 + docompress -x /usr/share/doc/${PF}/examples
212 + fi
213 +
214 + if use python; then
215 + python_optimize
216 + python_optimize "${ED}"/usr/share/qgis/python
217 + fi
218 +
219 + if use grass; then
220 + python_fix_shebang "${ED}"/usr/share/qgis/grass/scripts
221 + fi
222 +}
223 +
224 +pkg_postinst() {
225 + if use postgres; then
226 + elog "If you don't intend to use an external PostGIS server"
227 + elog "you should install:"
228 + elog " dev-db/postgis"
229 + elif use python; then
230 + elog "Support of PostgreSQL is disabled."
231 + elog "But some installed python-plugins import the psycopg2 module."
232 + elog "If you do not need these plugins just disable them"
233 + elog "in the Plugins menu, else you need to set USE=\"postgres\""
234 + fi
235 +
236 + xdg_pkg_postinst
237 +}