1 |
commit: d646351b6774cc3eb7b3bac920a086c8e87e722b |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 27 23:05:10 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 28 15:26:45 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d646351b |
7 |
|
8 |
sci-geosciences/qgis: 3.4.7 version bump |
9 |
|
10 |
Bug: https://bugs.gentoo.org/672952 |
11 |
Package-Manager: Portage-2.3.65, Repoman-2.3.12 |
12 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
13 |
|
14 |
sci-geosciences/qgis/Manifest | 1 + |
15 |
sci-geosciences/qgis/qgis-3.4.7.ebuild | 218 +++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 219 insertions(+) |
17 |
|
18 |
diff --git a/sci-geosciences/qgis/Manifest b/sci-geosciences/qgis/Manifest |
19 |
index aa60e32de73..7619af99327 100644 |
20 |
--- a/sci-geosciences/qgis/Manifest |
21 |
+++ b/sci-geosciences/qgis/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
DIST qgis-3.2.3.tar.bz2 71991789 BLAKE2B 656c0304cfc32d619a72f08185f76cf02aed7336fac8a4bf928c7f8b0e00df2e995e891a7ba757d8ce6acb5892c5c7425765608ee0441fa7eae8070a828734d4 SHA512 3366fce6232dd1b7657c0693debf742309d5594c7875017f464efd33e63bd4116eb062a0ebeb5b3108572a9658c3fb7d729e5a5db8fefb3ceae490ef1ec6bd22 |
24 |
+DIST qgis-3.4.7.tar.bz2 74373862 BLAKE2B 9b3a9987df406c703b0cdac36bc5267cca23b77e1c9f142e74b5170018c7c1ccdca738908412803a6703b0d2e64ef7733f2f4e986188cf90ce79a65e72113a55 SHA512 3977a49378ecaa27556ce76c6755281e477cea4a29a6a2ab496ef8e7b9b488cb31f9a124eece6f8a4974c98f0ae5396061e8c14fd577655bb4d428b818d1e1db |
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.4.7.ebuild b/sci-geosciences/qgis/qgis-3.4.7.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..c4b4335cecb |
30 |
--- /dev/null |
31 |
+++ b/sci-geosciences/qgis/qgis-3.4.7.ebuild |
32 |
@@ -0,0 +1,218 @@ |
33 |
+# Copyright 1999-2019 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python3_{5,6} ) |
39 |
+PYTHON_REQ_USE="sqlite" |
40 |
+QT_MIN_VER="5.9.4" |
41 |
+ |
42 |
+if [[ ${PV} = *9999 ]]; then |
43 |
+ EGIT_REPO_URI="https://github.com/${PN}/${PN^^}.git" |
44 |
+ inherit git-r3 |
45 |
+else |
46 |
+ SRC_URI="https://qgis.org/downloads/${P}.tar.bz2 |
47 |
+ examples? ( https://qgis.org/downloads/data/qgis_sample_data.tar.gz -> qgis_sample_data-2.8.14.tar.gz )" |
48 |
+ KEYWORDS="~amd64 ~x86" |
49 |
+fi |
50 |
+inherit cmake-utils desktop python-single-r1 qmake-utils xdg |
51 |
+ |
52 |
+DESCRIPTION="User friendly Geographic Information System" |
53 |
+HOMEPAGE="https://www.qgis.org/" |
54 |
+ |
55 |
+LICENSE="GPL-2+ GPL-3+" |
56 |
+SLOT="0" |
57 |
+IUSE="3d examples georeferencer grass hdf5 mapserver netcdf opencl oracle polar postgres python qml webkit" |
58 |
+ |
59 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE} mapserver? ( python )" |
60 |
+ |
61 |
+BDEPEND=" |
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 |
+ >=sci-libs/gdal-2.2.3:=[geos] |
86 |
+ sci-libs/geos |
87 |
+ sci-libs/libspatialindex:= |
88 |
+ sci-libs/proj |
89 |
+ >=x11-libs/qscintilla-2.10.1:=[qt5(+)] |
90 |
+ >=x11-libs/qwt-6.1.2:6=[qt5(+),svg] |
91 |
+ 3d? ( >=dev-qt/qt3d-${QT_MIN_VER}:5 ) |
92 |
+ georeferencer? ( sci-libs/gsl:= ) |
93 |
+ grass? ( =sci-geosciences/grass-7*:= ) |
94 |
+ hdf5? ( sci-libs/hdf5:= ) |
95 |
+ mapserver? ( dev-libs/fcgi ) |
96 |
+ netcdf? ( sci-libs/netcdf:= ) |
97 |
+ opencl? ( virtual/opencl ) |
98 |
+ oracle? ( |
99 |
+ dev-db/oracle-instantclient:= |
100 |
+ sci-libs/gdal:=[oracle] |
101 |
+ ) |
102 |
+ polar? ( >=x11-libs/qwtpolar-1.1.1-r1[qt5(+)] ) |
103 |
+ postgres? ( dev-db/postgresql:= ) |
104 |
+ python? ( |
105 |
+ ${PYTHON_DEPS} |
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/owslib[${PYTHON_USEDEP}] |
111 |
+ dev-python/pygments[${PYTHON_USEDEP}] |
112 |
+ dev-python/PyQt5[designer,network,sql,svg,webkit?,${PYTHON_USEDEP}] |
113 |
+ dev-python/python-dateutil[${PYTHON_USEDEP}] |
114 |
+ dev-python/pytz[${PYTHON_USEDEP}] |
115 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
116 |
+ >=dev-python/qscintilla-python-2.10.1[qt5(+),${PYTHON_USEDEP}] |
117 |
+ dev-python/requests[${PYTHON_USEDEP}] |
118 |
+ dev-python/sip:=[${PYTHON_USEDEP}] |
119 |
+ dev-python/six[${PYTHON_USEDEP}] |
120 |
+ >=sci-libs/gdal-2.2.3[python,${PYTHON_USEDEP}] |
121 |
+ postgres? ( dev-python/psycopg:2[${PYTHON_USEDEP}] ) |
122 |
+ ) |
123 |
+ qml? ( >=dev-qt/qtdeclarative-${QT_MIN_VER}:5 ) |
124 |
+ webkit? ( >=dev-qt/qtwebkit-5.9.1:5 ) |
125 |
+" |
126 |
+DEPEND="${COMMON_DEPEND} |
127 |
+ >=dev-qt/qttest-${QT_MIN_VER}:5 |
128 |
+ >=dev-qt/qtxmlpatterns-${QT_MIN_VER}:5 |
129 |
+ python? ( ${PYTHON_DEPS} ) |
130 |
+" |
131 |
+RDEPEND="${COMMON_DEPEND} |
132 |
+ sci-geosciences/gpsbabel |
133 |
+" |
134 |
+ |
135 |
+# Disabling test suite because upstream disallow running from install path |
136 |
+RESTRICT="test" |
137 |
+ |
138 |
+PATCHES=( |
139 |
+ # git master |
140 |
+ "${FILESDIR}/${PN}-2.18.12-cmake-lib-suffix.patch" |
141 |
+ # TODO upstream |
142 |
+ "${FILESDIR}/${P}-featuresummary.patch" |
143 |
+ "${FILESDIR}/${P}-default-qmldir.patch" |
144 |
+) |
145 |
+ |
146 |
+pkg_setup() { |
147 |
+ python-single-r1_pkg_setup |
148 |
+} |
149 |
+ |
150 |
+src_prepare() { |
151 |
+ cmake-utils_src_prepare |
152 |
+ |
153 |
+ sed -e "/FIND_PACKAGE(QtQmlTools/s/ REQUIRED//" \ |
154 |
+ -i CMakeLists.txt || die # TODO fixed in master |
155 |
+} |
156 |
+ |
157 |
+src_configure() { |
158 |
+ local mycmakeargs=( |
159 |
+ -DQGIS_MANUAL_SUBDIR=share/man/ |
160 |
+ -DQGIS_LIB_SUBDIR=$(get_libdir) |
161 |
+ -DQGIS_PLUGIN_SUBDIR=$(get_libdir)/qgis |
162 |
+ -DQWT_INCLUDE_DIR=/usr/include/qwt6 |
163 |
+ -DQWT_LIBRARY=/usr/$(get_libdir)/libqwt6-qt5.so |
164 |
+ -DPEDANTIC=OFF |
165 |
+ -DUSE_CCACHE=OFF |
166 |
+ -DWITH_APIDOC=OFF |
167 |
+ -DWITH_INTERNAL_MDAL=ON # not packaged, bug 684538 |
168 |
+ -DWITH_QSPATIALITE=ON |
169 |
+ -DENABLE_TESTS=OFF |
170 |
+ -DWITH_3D=$(usex 3d) |
171 |
+ -DWITH_GEOREFERENCER=$(usex georeferencer) |
172 |
+ -DWITH_GRASS7=$(usex grass) |
173 |
+ $(cmake-utils_use_find_package hdf5 HDF5) |
174 |
+ -DWITH_SERVER=$(usex mapserver) |
175 |
+ $(cmake-utils_use_find_package netcdf NetCDF) |
176 |
+ -DUSE_OPENCL=$(usex opencl) |
177 |
+ -DWITH_ORACLE=$(usex oracle) |
178 |
+ -DWITH_QWTPOLAR=$(usex polar) |
179 |
+ -DWITH_POSTGRESQL=$(usex postgres) |
180 |
+ -DWITH_BINDINGS=$(usex python) |
181 |
+ -DWITH_CUSTOM_WIDGETS=$(usex python) |
182 |
+ -DWITH_QUICK=$(usex qml) |
183 |
+ -DWITH_QTWEBKIT=$(usex webkit) |
184 |
+ ) |
185 |
+ |
186 |
+ if use grass; then |
187 |
+ mycmakeargs+=( |
188 |
+ -DGRASS_PREFIX7=/usr/$(get_libdir)/grass70 |
189 |
+ ) |
190 |
+ fi |
191 |
+ |
192 |
+ use python && mycmakeargs+=( -DBINDINGS_GLOBAL_INSTALL=ON ) |
193 |
+ |
194 |
+ # bugs 612956, 648726 |
195 |
+ addpredict /dev/dri/renderD128 |
196 |
+ addpredict /dev/dri/renderD129 |
197 |
+ |
198 |
+ cmake-utils_src_configure |
199 |
+} |
200 |
+ |
201 |
+src_install() { |
202 |
+ cmake-utils_src_install |
203 |
+ |
204 |
+ newmenu linux/org.qgis.qgis.desktop.in org.qgis.qgis.desktop |
205 |
+ |
206 |
+ local size type |
207 |
+ for size in 16 22 24 32 48 64 96 128 256; do |
208 |
+ newicon -s ${size} linux/icons/${PN}-icon${size}x${size}.png ${PN}.png |
209 |
+ newicon -c mimetypes -s ${size} linux/icons/${PN}-mime-icon${size}x${size}.png ${PN}-mime.png |
210 |
+ for type in qgs qml qlr qpt; do |
211 |
+ newicon -c mimetypes -s ${size} linux/icons/${PN}-${type}${size}x${size}.png ${PN}-${type}.png |
212 |
+ done |
213 |
+ done |
214 |
+ newicon -s scalable images/icons/qgis_icon.svg qgis.svg |
215 |
+ |
216 |
+ insinto /usr/share/mime/packages |
217 |
+ doins debian/qgis.xml |
218 |
+ |
219 |
+ if use examples; then |
220 |
+ docinto examples |
221 |
+ dodoc -r "${WORKDIR}"/qgis_sample_data/. |
222 |
+ docompress -x /usr/share/doc/${PF}/examples |
223 |
+ fi |
224 |
+ |
225 |
+ if use python; then |
226 |
+ python_optimize "${ED}"/usr/share/qgis/python |
227 |
+ fi |
228 |
+ |
229 |
+ if use grass; then |
230 |
+ python_fix_shebang "${ED}"/usr/share/qgis/grass/scripts |
231 |
+ fi |
232 |
+} |
233 |
+ |
234 |
+pkg_postinst() { |
235 |
+ if use postgres; then |
236 |
+ elog "If you don't intend to use an external PostGIS server" |
237 |
+ elog "you should install:" |
238 |
+ elog " dev-db/postgis" |
239 |
+ elif use python; then |
240 |
+ elog "Support of PostgreSQL is disabled." |
241 |
+ elog "But some installed python-plugins import the psycopg2 module." |
242 |
+ elog "If you do not need these plugins just disable them" |
243 |
+ elog "in the Plugins menu, else you need to set USE=\"postgres\"" |
244 |
+ fi |
245 |
+ if has_version "<sci-geosciences/qgis-3"; then |
246 |
+ elog "QGIS is now based on PyQt5. Old scripts may not work anymore." |
247 |
+ fi |
248 |
+ |
249 |
+ xdg_pkg_postinst |
250 |
+} |