1 |
commit: c7087e365164a309dad26cff1036cb2ef2245b44 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 17 20:03:39 2018 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 17 21:24:58 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7087e36 |
7 |
|
8 |
sci-geosciences/qgis: 3.2.3 version bump |
9 |
|
10 |
Package-Manager: Portage-2.3.49, Repoman-2.3.10 |
11 |
|
12 |
sci-geosciences/qgis/Manifest | 1 + |
13 |
sci-geosciences/qgis/qgis-3.2.3.ebuild | 220 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 221 insertions(+) |
15 |
|
16 |
diff --git a/sci-geosciences/qgis/Manifest b/sci-geosciences/qgis/Manifest |
17 |
index 49bff775474..4383dfbacdc 100644 |
18 |
--- a/sci-geosciences/qgis/Manifest |
19 |
+++ b/sci-geosciences/qgis/Manifest |
20 |
@@ -1,4 +1,5 @@ |
21 |
DIST qgis-3.0.3.tar.bz2 94462631 BLAKE2B 047f4d8852b7572dc94b9c04ec9c81e53bab2ed63a7a490682b7c557ae1b21fcc3257e751cc794d368dc4124c20c008ffdc7f1f4b79af2faea78774dc6ef430c SHA512 67f46f1acacd6688984b0c13aa5880e2f31d85b5a28ebf12830d33f198c2e5983887a8c85036b8be59edf3836ba7d38985f58433f53d3164c2ffb4a6db94d046 |
22 |
DIST qgis-3.2.1.tar.bz2 72064255 BLAKE2B 7811726c3c8e84e9d2e0f2cd500d3373895bd2f91b093943d451f65de5d722ae986df59754f6d1ca6bb1a0597a841c568b40113498cb9ef707c878184387fe44 SHA512 737aa95f71661c4b2738a9db8fea49ce21f04a94768130f33b063dbca17f04119a74508211257510196b239d3acc9019e17478820534a4353519f91fbb0bc27f |
23 |
DIST qgis-3.2.2.tar.bz2 71947443 BLAKE2B a6fc159ce6d90f4273483159831c9b89db40c3bd5fb34ec90d799978aae11a609509d5fd5189dc1edfb9fb72cd9ccd9298414d024db3c43561ea096774b7be17 SHA512 d19d44f71285e1d8a1d365a406550c68cd48215c7f9f67a979052f1f115d636c66c6a291e1a108b19a641f357b27e104ac642158f375fb631c141e844f468949 |
24 |
+DIST qgis-3.2.3.tar.bz2 71991789 BLAKE2B 656c0304cfc32d619a72f08185f76cf02aed7336fac8a4bf928c7f8b0e00df2e995e891a7ba757d8ce6acb5892c5c7425765608ee0441fa7eae8070a828734d4 SHA512 3366fce6232dd1b7657c0693debf742309d5594c7875017f464efd33e63bd4116eb062a0ebeb5b3108572a9658c3fb7d729e5a5db8fefb3ceae490ef1ec6bd22 |
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.2.3.ebuild b/sci-geosciences/qgis/qgis-3.2.3.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..23afe352fad |
30 |
--- /dev/null |
31 |
+++ b/sci-geosciences/qgis/qgis-3.2.3.ebuild |
32 |
@@ -0,0 +1,220 @@ |
33 |
+# Copyright 1999-2018 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=6 |
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 |
+ SRC_URI="https://qgis.org/downloads/${P}.tar.bz2 |
44 |
+ examples? ( https://qgis.org/downloads/data/qgis_sample_data.tar.gz -> qgis_sample_data-2.8.14.tar.gz )" |
45 |
+ KEYWORDS="~amd64 ~x86" |
46 |
+else |
47 |
+ GIT_ECLASS="git-r3" |
48 |
+ EGIT_REPO_URI="https://github.com/${PN}/${PN^^}.git" |
49 |
+fi |
50 |
+inherit cmake-utils desktop ${GIT_ECLASS} gnome2-utils python-single-r1 qmake-utils xdg-utils |
51 |
+unset GIT_ECLASS |
52 |
+ |
53 |
+DESCRIPTION="User friendly Geographic Information System" |
54 |
+HOMEPAGE="https://www.qgis.org/" |
55 |
+ |
56 |
+LICENSE="GPL-2+ GPL-3+" |
57 |
+SLOT="0" |
58 |
+IUSE="3d examples georeferencer grass mapserver oracle polar postgres python +webkit" |
59 |
+ |
60 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE} mapserver? ( python )" |
61 |
+ |
62 |
+COMMON_DEPEND=" |
63 |
+ app-crypt/qca:2[qt5(+),ssl] |
64 |
+ >=dev-db/spatialite-4.2.0 |
65 |
+ dev-db/sqlite:3 |
66 |
+ dev-libs/expat |
67 |
+ dev-libs/libzip:= |
68 |
+ dev-libs/qtkeychain[qt5(+)] |
69 |
+ >=dev-qt/designer-${QT_MIN_VER}:5 |
70 |
+ >=dev-qt/qtconcurrent-${QT_MIN_VER}:5 |
71 |
+ >=dev-qt/qtcore-${QT_MIN_VER}:5 |
72 |
+ >=dev-qt/qtgui-${QT_MIN_VER}:5 |
73 |
+ >=dev-qt/qtnetwork-${QT_MIN_VER}:5[ssl] |
74 |
+ >=dev-qt/qtpositioning-${QT_MIN_VER}:5 |
75 |
+ >=dev-qt/qtprintsupport-${QT_MIN_VER}:5 |
76 |
+ >=dev-qt/qtsvg-${QT_MIN_VER}:5 |
77 |
+ >=dev-qt/qtsql-${QT_MIN_VER}:5 |
78 |
+ >=dev-qt/qtwidgets-${QT_MIN_VER}:5 |
79 |
+ >=dev-qt/qtxml-${QT_MIN_VER}:5 |
80 |
+ >=sci-libs/gdal-2.2.3:=[geos] |
81 |
+ sci-libs/geos |
82 |
+ sci-libs/libspatialindex:= |
83 |
+ sci-libs/proj |
84 |
+ >=x11-libs/qscintilla-2.10.1:=[qt5(+)] |
85 |
+ >=x11-libs/qwt-6.1.2:6=[qt5(+),svg] |
86 |
+ 3d? ( >=dev-qt/qt3d-${QT_MIN_VER}:5 ) |
87 |
+ georeferencer? ( sci-libs/gsl:= ) |
88 |
+ grass? ( =sci-geosciences/grass-7*:= ) |
89 |
+ mapserver? ( dev-libs/fcgi ) |
90 |
+ oracle? ( |
91 |
+ dev-db/oracle-instantclient:= |
92 |
+ sci-libs/gdal:=[oracle] |
93 |
+ ) |
94 |
+ polar? ( >=x11-libs/qwtpolar-1.1.1-r1[qt5(+)] ) |
95 |
+ postgres? ( dev-db/postgresql:= ) |
96 |
+ python? ( |
97 |
+ ${PYTHON_DEPS} |
98 |
+ dev-python/future[${PYTHON_USEDEP}] |
99 |
+ dev-python/httplib2[${PYTHON_USEDEP}] |
100 |
+ dev-python/jinja[${PYTHON_USEDEP}] |
101 |
+ dev-python/markupsafe[${PYTHON_USEDEP}] |
102 |
+ dev-python/owslib[${PYTHON_USEDEP}] |
103 |
+ dev-python/pygments[${PYTHON_USEDEP}] |
104 |
+ dev-python/PyQt5[designer,network,sql,svg,webkit?,${PYTHON_USEDEP}] |
105 |
+ dev-python/python-dateutil[${PYTHON_USEDEP}] |
106 |
+ dev-python/pytz[${PYTHON_USEDEP}] |
107 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
108 |
+ >=dev-python/qscintilla-python-2.10.1[qt5(+),${PYTHON_USEDEP}] |
109 |
+ dev-python/requests[${PYTHON_USEDEP}] |
110 |
+ dev-python/sip:=[${PYTHON_USEDEP}] |
111 |
+ dev-python/six[${PYTHON_USEDEP}] |
112 |
+ >=sci-libs/gdal-2.2.3[python,${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 |
+ python? ( ${PYTHON_DEPS} ) |
124 |
+" |
125 |
+RDEPEND="${COMMON_DEPEND} |
126 |
+ sci-geosciences/gpsbabel |
127 |
+" |
128 |
+ |
129 |
+# Disabling test suite because upstream disallow running from install path |
130 |
+RESTRICT="test" |
131 |
+ |
132 |
+PATCHES=( |
133 |
+ # git master |
134 |
+ "${FILESDIR}/${PN}-2.18.12-cmake-lib-suffix.patch" |
135 |
+ "${FILESDIR}/${PN}-3.2.1-qtwebkit-optional.patch" # bug 663394 |
136 |
+) |
137 |
+ |
138 |
+pkg_setup() { |
139 |
+ 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 |
+ fi |
222 |
+ |
223 |
+ if use grass; then |
224 |
+ python_fix_shebang "${ED%/}"/usr/share/qgis/grass/scripts |
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 |
+} |