1 |
commit: 7ad7ae78baeccf9910e62884a508209bfc2b1ef5 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat May 19 06:19:03 2018 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 23 12:28:58 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ad7ae78 |
7 |
|
8 |
sci-geosciences/qgis: 3.0.3 version bump |
9 |
|
10 |
Package-Manager: Portage-2.3.38, Repoman-2.3.9 |
11 |
|
12 |
sci-geosciences/qgis/Manifest | 1 + |
13 |
sci-geosciences/qgis/qgis-3.0.3.ebuild | 221 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 222 insertions(+) |
15 |
|
16 |
diff --git a/sci-geosciences/qgis/Manifest b/sci-geosciences/qgis/Manifest |
17 |
index df5faa8b23d..83c6586a07c 100644 |
18 |
--- a/sci-geosciences/qgis/Manifest |
19 |
+++ b/sci-geosciences/qgis/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST qgis-3.0.1.tar.bz2 94217493 BLAKE2B 9f3b9e9d76dfac574cbe7c9b95f0dc59fb9ad74ddd5c5a420931107200b1ba6641e2b74cff681ecec8cdab777cda69c0e698fa952bc28cd79c761f4636f62f00 SHA512 c07fc9b033fa043e38098d226dac69ea35890109c45ccc4c47017e0af2d3fbed4b1a71b3fd7dc76fea3eb43fbcdbfb660df50d779da8c43f68a4402b239f8f75 |
22 |
DIST qgis-3.0.2.tar.bz2 94483208 BLAKE2B 198587a8440bf6d1dff6d08e706f1c0972088f8f90df4def27a0066f659e4273be35687ad0f35b4f3dcd7fb60e30ead74093541c69ddbd456bcbbcbae4c99c76 SHA512 4eec027f81ee693293e87d3c16b7b210ebd66f35a2884dc4662b5a3359b18cfd8a11919132ab88489456121eab36f8e5a9c20afcb34fa9dbe54673d838fc2be1 |
23 |
+DIST qgis-3.0.3.tar.bz2 94462631 BLAKE2B 047f4d8852b7572dc94b9c04ec9c81e53bab2ed63a7a490682b7c557ae1b21fcc3257e751cc794d368dc4124c20c008ffdc7f1f4b79af2faea78774dc6ef430c SHA512 67f46f1acacd6688984b0c13aa5880e2f31d85b5a28ebf12830d33f198c2e5983887a8c85036b8be59edf3836ba7d38985f58433f53d3164c2ffb4a6db94d046 |
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.0.3.ebuild b/sci-geosciences/qgis/qgis-3.0.3.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..0b888637f80 |
29 |
--- /dev/null |
30 |
+++ b/sci-geosciences/qgis/qgis-3.0.3.ebuild |
31 |
@@ -0,0 +1,221 @@ |
32 |
+# Copyright 1999-2018 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python3_5 ) |
38 |
+PYTHON_REQ_USE="sqlite" |
39 |
+QT_MIN_VER="5.9.4" |
40 |
+ |
41 |
+if [[ ${PV} != *9999 ]]; then |
42 |
+ SRC_URI="https://qgis.org/downloads/${P}.tar.bz2 |
43 |
+ examples? ( https://qgis.org/downloads/data/qgis_sample_data.tar.gz -> qgis_sample_data-2.8.14.tar.gz )" |
44 |
+ KEYWORDS="~amd64 ~x86" |
45 |
+else |
46 |
+ GIT_ECLASS="git-r3" |
47 |
+ EGIT_REPO_URI="https://github.com/${PN}/${PN^^}.git" |
48 |
+fi |
49 |
+inherit cmake-utils eutils ${GIT_ECLASS} gnome2-utils python-single-r1 qmake-utils xdg-utils |
50 |
+unset GIT_ECLASS |
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 mapserver oracle polar postgres python webkit" |
58 |
+ |
59 |
+REQUIRED_USE=" |
60 |
+ grass? ( python ) |
61 |
+ mapserver? ( python ) |
62 |
+ python? ( ${PYTHON_REQUIRED_USE} )" |
63 |
+ |
64 |
+COMMON_DEPEND=" |
65 |
+ app-crypt/qca:2[qt5(+),ssl] |
66 |
+ >=dev-db/spatialite-4.2.0 |
67 |
+ dev-db/sqlite:3 |
68 |
+ dev-libs/expat |
69 |
+ dev-libs/libzip:= |
70 |
+ dev-libs/qtkeychain[qt5(+)] |
71 |
+ >=dev-qt/designer-${QT_MIN_VER}:5 |
72 |
+ >=dev-qt/qtconcurrent-${QT_MIN_VER}:5 |
73 |
+ >=dev-qt/qtcore-${QT_MIN_VER}:5 |
74 |
+ >=dev-qt/qtgui-${QT_MIN_VER}:5 |
75 |
+ >=dev-qt/qtnetwork-${QT_MIN_VER}:5[ssl] |
76 |
+ >=dev-qt/qtpositioning-${QT_MIN_VER}:5 |
77 |
+ >=dev-qt/qtprintsupport-${QT_MIN_VER}:5 |
78 |
+ >=dev-qt/qtsvg-${QT_MIN_VER}:5 |
79 |
+ >=dev-qt/qtsql-${QT_MIN_VER}:5 |
80 |
+ >=dev-qt/qtwidgets-${QT_MIN_VER}:5 |
81 |
+ >=dev-qt/qtxml-${QT_MIN_VER}:5 |
82 |
+ >=sci-libs/gdal-2.2.3:=[geos,python?,${PYTHON_USEDEP}] |
83 |
+ sci-libs/geos |
84 |
+ sci-libs/libspatialindex:= |
85 |
+ sci-libs/proj |
86 |
+ >=x11-libs/qscintilla-2.10.1:=[qt5(+)] |
87 |
+ >=x11-libs/qwt-6.1.2:6=[qt5(+),svg] |
88 |
+ 3d? ( >=dev-qt/qt3d-${QT_MIN_VER}:5 ) |
89 |
+ georeferencer? ( sci-libs/gsl:= ) |
90 |
+ grass? ( =sci-geosciences/grass-7*:= ) |
91 |
+ mapserver? ( dev-libs/fcgi ) |
92 |
+ oracle? ( |
93 |
+ dev-db/oracle-instantclient:= |
94 |
+ sci-libs/gdal:=[oracle] |
95 |
+ ) |
96 |
+ polar? ( >=x11-libs/qwtpolar-1.1.1-r1[qt5(+)] ) |
97 |
+ postgres? ( dev-db/postgresql:= ) |
98 |
+ python? ( ${PYTHON_DEPS} |
99 |
+ dev-python/future[${PYTHON_USEDEP}] |
100 |
+ dev-python/httplib2[${PYTHON_USEDEP}] |
101 |
+ dev-python/jinja[${PYTHON_USEDEP}] |
102 |
+ dev-python/markupsafe[${PYTHON_USEDEP}] |
103 |
+ dev-python/owslib[${PYTHON_USEDEP}] |
104 |
+ dev-python/pygments[${PYTHON_USEDEP}] |
105 |
+ dev-python/PyQt5[designer,network,sql,svg,webkit?,${PYTHON_USEDEP}] |
106 |
+ dev-python/python-dateutil[${PYTHON_USEDEP}] |
107 |
+ dev-python/pytz[${PYTHON_USEDEP}] |
108 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
109 |
+ >=dev-python/qscintilla-python-2.10.1[qt5(+),${PYTHON_USEDEP}] |
110 |
+ dev-python/requests[${PYTHON_USEDEP}] |
111 |
+ dev-python/sip:=[${PYTHON_USEDEP}] |
112 |
+ dev-python/six[${PYTHON_USEDEP}] |
113 |
+ postgres? ( dev-python/psycopg:2[${PYTHON_USEDEP}] ) |
114 |
+ ) |
115 |
+ webkit? ( >=dev-qt/qtwebkit-5.9.1:5 ) |
116 |
+" |
117 |
+DEPEND="${COMMON_DEPEND} |
118 |
+ >=dev-qt/linguist-tools-${QT_MIN_VER}:5 |
119 |
+ >=dev-qt/qttest-${QT_MIN_VER}:5 |
120 |
+ >=dev-qt/qtxmlpatterns-${QT_MIN_VER}:5 |
121 |
+ sys-devel/bison |
122 |
+ sys-devel/flex |
123 |
+" |
124 |
+RDEPEND="${COMMON_DEPEND} |
125 |
+ sci-geosciences/gpsbabel |
126 |
+" |
127 |
+ |
128 |
+# Disabling test suite because upstream disallow running from install path |
129 |
+RESTRICT="test" |
130 |
+ |
131 |
+PATCHES=( |
132 |
+ # git master |
133 |
+ "${FILESDIR}/${PN}-2.18.12-cmake-lib-suffix.patch" |
134 |
+ # TODO upstream |
135 |
+ "${FILESDIR}/${PN}-3.0.0-featuresummary.patch" |
136 |
+) |
137 |
+ |
138 |
+pkg_setup() { |
139 |
+ use python && python-single-r1_pkg_setup |
140 |
+} |
141 |
+ |
142 |
+src_prepare() { |
143 |
+ cmake-utils_src_prepare |
144 |
+ |
145 |
+ sed -e "s:\${QT_BINARY_DIR}:$(qt5_get_bindir):" \ |
146 |
+ -i CMakeLists.txt || die "Failed to fix lrelease path" |
147 |
+ |
148 |
+ sed -e "/QT_LRELEASE_EXECUTABLE/d" \ |
149 |
+ -e "/QT_LUPDATE_EXECUTABLE/s/set/find_program/" \ |
150 |
+ -e "s:lupdate-qt5:NAMES lupdate PATHS $(qt5_get_bindir) NO_DEFAULT_PATH:" \ |
151 |
+ -i cmake/modules/ECMQt4To5Porting.cmake || die "Failed to fix ECMQt4To5Porting.cmake" |
152 |
+ |
153 |
+ cd src/plugins || die |
154 |
+} |
155 |
+ |
156 |
+src_configure() { |
157 |
+ local mycmakeargs=( |
158 |
+ -DQGIS_MANUAL_SUBDIR=/share/man/ |
159 |
+ -DBUILD_SHARED_LIBS=ON |
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 |
+ -DWITH_APIDOC=OFF |
166 |
+ -DWITH_QSPATIALITE=ON |
167 |
+ -DENABLE_TESTS=OFF |
168 |
+ -DWITH_3D=$(usex 3d) |
169 |
+ -DWITH_GEOREFERENCER=$(usex georeferencer) |
170 |
+ -DWITH_GRASS7=$(usex grass) |
171 |
+ -DWITH_SERVER=$(usex mapserver) |
172 |
+ -DWITH_ORACLE=$(usex oracle) |
173 |
+ -DWITH_QWTPOLAR=$(usex polar) |
174 |
+ -DWITH_POSTGRESQL=$(usex postgres) |
175 |
+ -DWITH_BINDINGS=$(usex python) |
176 |
+ -DWITH_CUSTOM_WIDGETS=$(usex python) |
177 |
+ -DWITH_QTWEBKIT=$(usex webkit) |
178 |
+ ) |
179 |
+ |
180 |
+ if use grass; then |
181 |
+ mycmakeargs+=( |
182 |
+ -DGRASS_PREFIX7=/usr/$(get_libdir)/grass70 |
183 |
+ ) |
184 |
+ fi |
185 |
+ |
186 |
+ use python && mycmakeargs+=( -DBINDINGS_GLOBAL_INSTALL=ON ) |
187 |
+ |
188 |
+ # bugs 612956, 648726 |
189 |
+ addpredict /dev/dri/renderD128 |
190 |
+ addpredict /dev/dri/renderD129 |
191 |
+ |
192 |
+ cmake-utils_src_configure |
193 |
+} |
194 |
+ |
195 |
+src_install() { |
196 |
+ cmake-utils_src_install |
197 |
+ |
198 |
+ domenu debian/qgis.desktop |
199 |
+ |
200 |
+ local size type |
201 |
+ for size in 16 22 24 32 48 64 96 128 256; do |
202 |
+ newicon -s ${size} debian/icons/${PN}-icon${size}x${size}.png ${PN}.png |
203 |
+ newicon -c mimetypes -s ${size} debian/icons/${PN}-mime-icon${size}x${size}.png ${PN}-mime.png |
204 |
+ for type in qgs qml qlr qpt; do |
205 |
+ newicon -c mimetypes -s ${size} debian/icons/${PN}-${type}${size}x${size}.png ${PN}-${type}.png |
206 |
+ done |
207 |
+ done |
208 |
+ newicon -s scalable images/icons/qgis_icon.svg qgis.svg |
209 |
+ |
210 |
+ insinto /usr/share/mime/packages |
211 |
+ doins debian/qgis.xml |
212 |
+ |
213 |
+ if use examples; then |
214 |
+ docinto examples |
215 |
+ dodoc -r "${WORKDIR}"/qgis_sample_data/. |
216 |
+ docompress -x /usr/share/doc/${PF}/examples |
217 |
+ fi |
218 |
+ |
219 |
+ if use python; then |
220 |
+ python_optimize "${ED%/}"/usr/share/qgis/python |
221 |
+ |
222 |
+ if use grass; then |
223 |
+ python_fix_shebang "${ED%/}"/usr/share/qgis/grass/scripts |
224 |
+ fi |
225 |
+ fi |
226 |
+} |
227 |
+ |
228 |
+pkg_postinst() { |
229 |
+ if use postgres; then |
230 |
+ elog "If you don't intend to use an external PostGIS server" |
231 |
+ elog "you should install:" |
232 |
+ elog " dev-db/postgis" |
233 |
+ elif use python; then |
234 |
+ elog "Support of PostgreSQL is disabled." |
235 |
+ elog "But some installed python-plugins import the psycopg2 module." |
236 |
+ elog "If you do not need these plugins just disable them" |
237 |
+ elog "in the Plugins menu, else you need to set USE=\"postgres\"" |
238 |
+ fi |
239 |
+ if has_version "<sci-geosciences/qgis-3"; then |
240 |
+ elog "QGIS is now based on PyQt5. Old scripts may not work anymore." |
241 |
+ fi |
242 |
+ |
243 |
+ gnome2_icon_cache_update |
244 |
+ xdg_mimeinfo_database_update |
245 |
+ xdg_desktop_database_update |
246 |
+} |
247 |
+ |
248 |
+pkg_postrm() { |
249 |
+ gnome2_icon_cache_update |
250 |
+ xdg_mimeinfo_database_update |
251 |
+ xdg_desktop_database_update |
252 |
+} |