1 |
commit: 9de6df5e358a5b7e158ce54e5f29b9586e1344e7 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 22 10:46:50 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 22 10:55:02 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9de6df5e |
7 |
|
8 |
sci-geosciences/qgis: add 3.22.1 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
sci-geosciences/qgis/Manifest | 1 + |
13 |
sci-geosciences/qgis/qgis-3.22.1.ebuild | 205 ++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 206 insertions(+) |
15 |
|
16 |
diff --git a/sci-geosciences/qgis/Manifest b/sci-geosciences/qgis/Manifest |
17 |
index b3e361a14acb..d4a7736de149 100644 |
18 |
--- a/sci-geosciences/qgis/Manifest |
19 |
+++ b/sci-geosciences/qgis/Manifest |
20 |
@@ -1,4 +1,5 @@ |
21 |
DIST qgis-3.18.3.tar.bz2 121178524 BLAKE2B 9f4c5bb4b4bf980c81b91a38716b280f48bf28d894550563607e202a7764f72c78b9520f060319c219e484254eaa31315fc232b459bec8cc6a1bc07b587babc6 SHA512 d2c08f1f0bdb2ba56a108dc9626122dfe90caae4f300ceb7be2d40112ee9bcc7f286f092f7f207812428aca926c7fe0dabe49039bba0f32f2f371d290536f0ef |
22 |
DIST qgis-3.20.3.tar.bz2 133775542 BLAKE2B f92273d208d7948bcd1642c994d7dac6b3a1115aaee5738e1974ff0ac38e42432abb18a64e982d46be10dd2dcb9da809b9065bb66c3f353e587a5b7f5544ec91 SHA512 abad3eb9774bbe2eaa86d554256a46eb179016f2df849d0c27c96db1bad6b73116c4456b81b176107a459bbf52714ccaf11a79bb9b39641192cd46f188420df0 |
23 |
DIST qgis-3.22.0.tar.bz2 135469417 BLAKE2B 54fdd8517e37931dcdc81ef1006859d58d9e60a994a60588109a8337ade68e48710f0f50fe41e6e73c0e095187f00f15209258eb940ea3c80bba4f249d081cd5 SHA512 dc214d90c465cc7b8a82196d666b94971d60e64a28e38742aba5cdd86058e27fdf7cc3564bca3b330cf1820c7594d9226576145461db399c458a26ee569e299b |
24 |
+DIST qgis-3.22.1.tar.bz2 136772144 BLAKE2B ba3a5d9db2a487ff10800da0ab12de4b6d3c1dab72e286d0cafef1804429f59e6c80fd05d662e8abadb7216811f3cbe36bb50d54b077a5c4db7cabcb1002a826 SHA512 b49fdab97c707a3bd29c2ad288733373d406fe024e07873e6ba28653a9a8882f58115ae346523b2f07011be312e18bf2643c8f0b7979d4ba8ed07dce4579cba9 |
25 |
DIST qgis_sample_data-2.8.14.tar.gz 22119181 BLAKE2B 2d0565e91ec8119382bc9ab8e262dc04227fe8289146794891759ff5a32012245270614ba1119a6329fc45cf56852830c2079589309aa3467873f71f5c608eac SHA512 6b2653d5b57ffc2c2317639dac212429840984ac917ca3e452b39aabb99ea106d1a77c1c1dd967244ef16ede9deae751b170affdf08b72239eafed5b8977da3d |
26 |
|
27 |
diff --git a/sci-geosciences/qgis/qgis-3.22.1.ebuild b/sci-geosciences/qgis/qgis-3.22.1.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..c8150cce4fe3 |
30 |
--- /dev/null |
31 |
+++ b/sci-geosciences/qgis/qgis-3.22.1.ebuild |
32 |
@@ -0,0 +1,205 @@ |
33 |
+# Copyright 1999-2021 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python3_{8,9} ) |
39 |
+PYTHON_REQ_USE="sqlite" |
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 serial" |
57 |
+ |
58 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE} mapserver? ( python )" |
59 |
+ |
60 |
+# Disabling test suite because upstream disallow running from install path |
61 |
+RESTRICT="test" |
62 |
+ |
63 |
+COMMON_DEPEND=" |
64 |
+ app-crypt/qca:2[qt5(+),ssl] |
65 |
+ >=dev-db/spatialite-4.2.0 |
66 |
+ dev-db/sqlite:3 |
67 |
+ dev-libs/expat |
68 |
+ dev-libs/libzip:= |
69 |
+ dev-libs/protobuf:= |
70 |
+ dev-libs/qtkeychain[qt5(+)] |
71 |
+ dev-qt/designer:5 |
72 |
+ dev-qt/qtconcurrent:5 |
73 |
+ dev-qt/qtcore:5 |
74 |
+ dev-qt/qtgui:5 |
75 |
+ dev-qt/qtnetwork:5[ssl] |
76 |
+ dev-qt/qtpositioning:5 |
77 |
+ dev-qt/qtprintsupport:5 |
78 |
+ dev-qt/qtsvg:5 |
79 |
+ dev-qt/qtsql:5 |
80 |
+ dev-qt/qtwidgets:5 |
81 |
+ dev-qt/qtxml:5 |
82 |
+ media-gfx/exiv2:= |
83 |
+ >=sci-libs/gdal-3.0.4:=[geos] |
84 |
+ sci-libs/geos |
85 |
+ sci-libs/libspatialindex:= |
86 |
+ sys-libs/zlib |
87 |
+ >=sci-libs/proj-4.9.3:= |
88 |
+ >=x11-libs/qscintilla-2.10.1:=[qt5(+)] |
89 |
+ >=x11-libs/qwt-6.1.2:6=[qt5(+),svg] |
90 |
+ 3d? ( dev-qt/qt3d:5 ) |
91 |
+ georeferencer? ( sci-libs/gsl:= ) |
92 |
+ grass? ( =sci-geosciences/grass-7*:= ) |
93 |
+ hdf5? ( sci-libs/hdf5:= ) |
94 |
+ mapserver? ( dev-libs/fcgi ) |
95 |
+ netcdf? ( sci-libs/netcdf:= ) |
96 |
+ opencl? ( virtual/opencl ) |
97 |
+ oracle? ( |
98 |
+ dev-db/oracle-instantclient:= |
99 |
+ sci-libs/gdal:=[oracle] |
100 |
+ ) |
101 |
+ polar? ( >=x11-libs/qwtpolar-1.1.1-r1[qt5(+)] ) |
102 |
+ postgres? ( dev-db/postgresql:= ) |
103 |
+ python? ( |
104 |
+ ${PYTHON_DEPS} |
105 |
+ $(python_gen_cond_dep ' |
106 |
+ dev-python/future[${PYTHON_USEDEP}] |
107 |
+ dev-python/httplib2[${PYTHON_USEDEP}] |
108 |
+ dev-python/jinja[${PYTHON_USEDEP}] |
109 |
+ dev-python/markupsafe[${PYTHON_USEDEP}] |
110 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
111 |
+ dev-python/owslib[${PYTHON_USEDEP}] |
112 |
+ dev-python/pygments[${PYTHON_USEDEP}] |
113 |
+ dev-python/PyQt5[designer,gui,network,positioning,printsupport,sql,svg,widgets,${PYTHON_USEDEP}] |
114 |
+ dev-python/python-dateutil[${PYTHON_USEDEP}] |
115 |
+ dev-python/pytz[${PYTHON_USEDEP}] |
116 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
117 |
+ >=dev-python/qscintilla-python-2.10.1[qt5(+),${PYTHON_USEDEP}] |
118 |
+ dev-python/requests[${PYTHON_USEDEP}] |
119 |
+ <dev-python/sip-5:=[${PYTHON_USEDEP}] |
120 |
+ dev-python/six[${PYTHON_USEDEP}] |
121 |
+ >=sci-libs/gdal-2.2.3[python,${PYTHON_USEDEP}] |
122 |
+ postgres? ( dev-python/psycopg:2[${PYTHON_USEDEP}] ) |
123 |
+ ') |
124 |
+ ) |
125 |
+ qml? ( dev-qt/qtdeclarative:5 ) |
126 |
+ serial? ( dev-qt/qtserialport:5 ) |
127 |
+" |
128 |
+DEPEND="${COMMON_DEPEND} |
129 |
+ dev-qt/qttest:5 |
130 |
+ python? ( ${PYTHON_DEPS} ) |
131 |
+" |
132 |
+RDEPEND="${COMMON_DEPEND} |
133 |
+ sci-geosciences/gpsbabel |
134 |
+" |
135 |
+BDEPEND=" |
136 |
+ ${PYTHON_DEPS} |
137 |
+ dev-qt/linguist-tools:5 |
138 |
+ sys-devel/bison |
139 |
+ sys-devel/flex |
140 |
+" |
141 |
+ |
142 |
+pkg_setup() { |
143 |
+ python-single-r1_pkg_setup |
144 |
+} |
145 |
+ |
146 |
+src_prepare() { |
147 |
+ cmake_src_prepare |
148 |
+} |
149 |
+ |
150 |
+src_configure() { |
151 |
+ local mycmakeargs=( |
152 |
+ -DQGIS_MANUAL_SUBDIR=share/man/ |
153 |
+ -DQGIS_LIB_SUBDIR=$(get_libdir) |
154 |
+ -DQGIS_PLUGIN_SUBDIR=$(get_libdir)/qgis |
155 |
+ -DQWT_INCLUDE_DIR=/usr/include/qwt6 |
156 |
+ -DQWT_LIBRARY=/usr/$(get_libdir)/libqwt6-qt5.so |
157 |
+ -DQGIS_QML_SUBDIR=/usr/$(get_libdir)/qt5/qml |
158 |
+ -DPEDANTIC=OFF |
159 |
+ -DUSE_CCACHE=OFF |
160 |
+ -DWITH_ANALYSIS=ON |
161 |
+ -DWITH_APIDOC=OFF |
162 |
+ -DWITH_GUI=ON |
163 |
+ -DWITH_INTERNAL_MDAL=ON # not packaged, bug 684538 |
164 |
+ -DWITH_QSPATIALITE=ON |
165 |
+ -DENABLE_TESTS=OFF |
166 |
+ -DWITH_3D=$(usex 3d) |
167 |
+ -DWITH_GSL=$(usex georeferencer) |
168 |
+ -DWITH_GRASS7=$(usex grass) |
169 |
+ $(cmake_use_find_package hdf5 HDF5) |
170 |
+ -DWITH_SERVER=$(usex mapserver) |
171 |
+ $(cmake_use_find_package netcdf NetCDF) |
172 |
+ -DUSE_OPENCL=$(usex opencl) |
173 |
+ -DWITH_ORACLE=$(usex oracle) |
174 |
+ -DWITH_QWTPOLAR=$(usex polar) |
175 |
+ -DWITH_POSTGRESQL=$(usex postgres) |
176 |
+ -DWITH_BINDINGS=$(usex python) |
177 |
+ -DWITH_CUSTOM_WIDGETS=$(usex python) |
178 |
+ -DWITH_QUICK=$(usex qml) |
179 |
+ -DWITH_QT5SERIALPORT=$(usex serial) |
180 |
+ -DWITH_QTWEBKIT=OFF |
181 |
+ ) |
182 |
+ |
183 |
+ if use grass; then |
184 |
+ readarray -d'-' -t f <<<"$(best_version sci-geosciences/grass)" |
185 |
+ readarray -d'.' -t v <<<"${f[2]}" |
186 |
+ grassdir="grass${v[0]}${v[1]}" |
187 |
+ |
188 |
+ GRASSDIR=/usr/$(get_libdir)/${grassdir} |
189 |
+ mycmakeargs+=( -DGRASS_PREFIX7=${GRASSDIR} ) |
190 |
+ fi |
191 |
+ |
192 |
+ use python && mycmakeargs+=( -DBINDINGS_GLOBAL_INSTALL=ON ) || |
193 |
+ mycmakeargs+=( -DWITH_QGIS_PROCESS=OFF ) # FIXME upstream issue #39973 |
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 |
+} |