1 |
commit: 4de8ae50ab4e6546207b89e0d3f632158f59a703 |
2 |
Author: Amy Liffey <amynka <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 3 16:53:07 2018 +0000 |
4 |
Commit: Amy Liffey <amynka <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 3 16:57:04 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4de8ae50 |
7 |
|
8 |
sci-geosciences/qgis: version bump 3.2.1 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/659656 |
11 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
12 |
|
13 |
sci-geosciences/qgis/Manifest | 1 + |
14 |
sci-geosciences/qgis/qgis-3.2.1.ebuild | 219 +++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 220 insertions(+) |
16 |
|
17 |
diff --git a/sci-geosciences/qgis/Manifest b/sci-geosciences/qgis/Manifest |
18 |
index c4045bb1504..8289becae93 100644 |
19 |
--- a/sci-geosciences/qgis/Manifest |
20 |
+++ b/sci-geosciences/qgis/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST qgis-3.0.3.tar.bz2 94462631 BLAKE2B 047f4d8852b7572dc94b9c04ec9c81e53bab2ed63a7a490682b7c557ae1b21fcc3257e751cc794d368dc4124c20c008ffdc7f1f4b79af2faea78774dc6ef430c SHA512 67f46f1acacd6688984b0c13aa5880e2f31d85b5a28ebf12830d33f198c2e5983887a8c85036b8be59edf3836ba7d38985f58433f53d3164c2ffb4a6db94d046 |
23 |
+DIST qgis-3.2.1.tar.bz2 72064255 BLAKE2B 7811726c3c8e84e9d2e0f2cd500d3373895bd2f91b093943d451f65de5d722ae986df59754f6d1ca6bb1a0597a841c568b40113498cb9ef707c878184387fe44 SHA512 737aa95f71661c4b2738a9db8fea49ce21f04a94768130f33b063dbca17f04119a74508211257510196b239d3acc9019e17478820534a4353519f91fbb0bc27f |
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.2.1.ebuild b/sci-geosciences/qgis/qgis-3.2.1.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..d5c984cfc17 |
29 |
--- /dev/null |
30 |
+++ b/sci-geosciences/qgis/qgis-3.2.1.ebuild |
31 |
@@ -0,0 +1,219 @@ |
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,6} ) |
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="${PYTHON_REQUIRED_USE} mapserver? ( python )" |
60 |
+ |
61 |
+COMMON_DEPEND=" |
62 |
+ app-crypt/qca:2[qt5(+),ssl] |
63 |
+ >=dev-db/spatialite-4.2.0 |
64 |
+ dev-db/sqlite:3 |
65 |
+ dev-libs/expat |
66 |
+ dev-libs/libzip:= |
67 |
+ dev-libs/qtkeychain[qt5(+)] |
68 |
+ >=dev-qt/designer-${QT_MIN_VER}:5 |
69 |
+ >=dev-qt/qtconcurrent-${QT_MIN_VER}:5 |
70 |
+ >=dev-qt/qtcore-${QT_MIN_VER}:5 |
71 |
+ >=dev-qt/qtgui-${QT_MIN_VER}:5 |
72 |
+ >=dev-qt/qtnetwork-${QT_MIN_VER}:5[ssl] |
73 |
+ >=dev-qt/qtpositioning-${QT_MIN_VER}:5 |
74 |
+ >=dev-qt/qtprintsupport-${QT_MIN_VER}:5 |
75 |
+ >=dev-qt/qtsvg-${QT_MIN_VER}:5 |
76 |
+ >=dev-qt/qtsql-${QT_MIN_VER}:5 |
77 |
+ >=dev-qt/qtwidgets-${QT_MIN_VER}:5 |
78 |
+ >=dev-qt/qtxml-${QT_MIN_VER}:5 |
79 |
+ >=sci-libs/gdal-2.2.3:=[geos] |
80 |
+ sci-libs/geos |
81 |
+ sci-libs/libspatialindex:= |
82 |
+ sci-libs/proj |
83 |
+ >=x11-libs/qscintilla-2.10.1:=[qt5(+)] |
84 |
+ >=x11-libs/qwt-6.1.2:6=[qt5(+),svg] |
85 |
+ 3d? ( >=dev-qt/qt3d-${QT_MIN_VER}:5 ) |
86 |
+ georeferencer? ( sci-libs/gsl:= ) |
87 |
+ grass? ( =sci-geosciences/grass-7*:= ) |
88 |
+ mapserver? ( dev-libs/fcgi ) |
89 |
+ oracle? ( |
90 |
+ dev-db/oracle-instantclient:= |
91 |
+ sci-libs/gdal:=[oracle] |
92 |
+ ) |
93 |
+ polar? ( >=x11-libs/qwtpolar-1.1.1-r1[qt5(+)] ) |
94 |
+ postgres? ( dev-db/postgresql:= ) |
95 |
+ python? ( |
96 |
+ ${PYTHON_DEPS} |
97 |
+ dev-python/future[${PYTHON_USEDEP}] |
98 |
+ dev-python/httplib2[${PYTHON_USEDEP}] |
99 |
+ dev-python/jinja[${PYTHON_USEDEP}] |
100 |
+ dev-python/markupsafe[${PYTHON_USEDEP}] |
101 |
+ dev-python/owslib[${PYTHON_USEDEP}] |
102 |
+ dev-python/pygments[${PYTHON_USEDEP}] |
103 |
+ dev-python/PyQt5[designer,network,sql,svg,webkit?,${PYTHON_USEDEP}] |
104 |
+ dev-python/python-dateutil[${PYTHON_USEDEP}] |
105 |
+ dev-python/pytz[${PYTHON_USEDEP}] |
106 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
107 |
+ >=dev-python/qscintilla-python-2.10.1[qt5(+),${PYTHON_USEDEP}] |
108 |
+ dev-python/requests[${PYTHON_USEDEP}] |
109 |
+ dev-python/sip:=[${PYTHON_USEDEP}] |
110 |
+ dev-python/six[${PYTHON_USEDEP}] |
111 |
+ >=sci-libs/gdal-2.2.3[python,${PYTHON_USEDEP}] |
112 |
+ postgres? ( dev-python/psycopg:2[${PYTHON_USEDEP}] ) |
113 |
+ ) |
114 |
+ webkit? ( >=dev-qt/qtwebkit-5.9.1:5 ) |
115 |
+" |
116 |
+DEPEND="${COMMON_DEPEND} |
117 |
+ >=dev-qt/linguist-tools-${QT_MIN_VER}:5 |
118 |
+ >=dev-qt/qttest-${QT_MIN_VER}:5 |
119 |
+ >=dev-qt/qtxmlpatterns-${QT_MIN_VER}:5 |
120 |
+ sys-devel/bison |
121 |
+ sys-devel/flex |
122 |
+ python? ( ${PYTHON_DEPS} ) |
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 |
+) |
135 |
+ |
136 |
+pkg_setup() { |
137 |
+ python-single-r1_pkg_setup |
138 |
+} |
139 |
+ |
140 |
+src_prepare() { |
141 |
+ cmake-utils_src_prepare |
142 |
+ |
143 |
+ sed -e "s:\${QT_BINARY_DIR}:$(qt5_get_bindir):" \ |
144 |
+ -i CMakeLists.txt || die "Failed to fix lrelease path" |
145 |
+ |
146 |
+ sed -e "/QT_LRELEASE_EXECUTABLE/d" \ |
147 |
+ -e "/QT_LUPDATE_EXECUTABLE/s/set/find_program/" \ |
148 |
+ -e "s:lupdate-qt5:NAMES lupdate PATHS $(qt5_get_bindir) NO_DEFAULT_PATH:" \ |
149 |
+ -i cmake/modules/ECMQt4To5Porting.cmake || die "Failed to fix ECMQt4To5Porting.cmake" |
150 |
+ |
151 |
+ cd src/plugins || die |
152 |
+} |
153 |
+ |
154 |
+src_configure() { |
155 |
+ local mycmakeargs=( |
156 |
+ -DQGIS_MANUAL_SUBDIR=/share/man/ |
157 |
+ -DBUILD_SHARED_LIBS=ON |
158 |
+ -DQGIS_LIB_SUBDIR=$(get_libdir) |
159 |
+ -DQGIS_PLUGIN_SUBDIR=$(get_libdir)/qgis |
160 |
+ -DQWT_INCLUDE_DIR=/usr/include/qwt6 |
161 |
+ -DQWT_LIBRARY=/usr/$(get_libdir)/libqwt6-qt5.so |
162 |
+ -DPEDANTIC=OFF |
163 |
+ -DWITH_APIDOC=OFF |
164 |
+ -DWITH_QSPATIALITE=ON |
165 |
+ -DENABLE_TESTS=OFF |
166 |
+ -DWITH_3D=$(usex 3d) |
167 |
+ -DWITH_GEOREFERENCER=$(usex georeferencer) |
168 |
+ -DWITH_GRASS7=$(usex grass) |
169 |
+ -DWITH_SERVER=$(usex mapserver) |
170 |
+ -DWITH_ORACLE=$(usex oracle) |
171 |
+ -DWITH_QWTPOLAR=$(usex polar) |
172 |
+ -DWITH_POSTGRESQL=$(usex postgres) |
173 |
+ -DWITH_BINDINGS=$(usex python) |
174 |
+ -DWITH_CUSTOM_WIDGETS=$(usex python) |
175 |
+ -DWITH_QTWEBKIT=$(usex webkit) |
176 |
+ ) |
177 |
+ |
178 |
+ if use grass; then |
179 |
+ mycmakeargs+=( |
180 |
+ -DGRASS_PREFIX7=/usr/$(get_libdir)/grass70 |
181 |
+ ) |
182 |
+ fi |
183 |
+ |
184 |
+ use python && mycmakeargs+=( -DBINDINGS_GLOBAL_INSTALL=ON ) |
185 |
+ |
186 |
+ # bugs 612956, 648726 |
187 |
+ addpredict /dev/dri/renderD128 |
188 |
+ addpredict /dev/dri/renderD129 |
189 |
+ |
190 |
+ cmake-utils_src_configure |
191 |
+} |
192 |
+ |
193 |
+src_install() { |
194 |
+ cmake-utils_src_install |
195 |
+ |
196 |
+ domenu debian/qgis.desktop |
197 |
+ |
198 |
+ local size type |
199 |
+ for size in 16 22 24 32 48 64 96 128 256; do |
200 |
+ newicon -s ${size} debian/icons/${PN}-icon${size}x${size}.png ${PN}.png |
201 |
+ newicon -c mimetypes -s ${size} debian/icons/${PN}-mime-icon${size}x${size}.png ${PN}-mime.png |
202 |
+ for type in qgs qml qlr qpt; do |
203 |
+ newicon -c mimetypes -s ${size} debian/icons/${PN}-${type}${size}x${size}.png ${PN}-${type}.png |
204 |
+ done |
205 |
+ done |
206 |
+ newicon -s scalable images/icons/qgis_icon.svg qgis.svg |
207 |
+ |
208 |
+ insinto /usr/share/mime/packages |
209 |
+ doins debian/qgis.xml |
210 |
+ |
211 |
+ if use examples; then |
212 |
+ docinto examples |
213 |
+ dodoc -r "${WORKDIR}"/qgis_sample_data/. |
214 |
+ docompress -x /usr/share/doc/${PF}/examples |
215 |
+ fi |
216 |
+ |
217 |
+ if use python; then |
218 |
+ python_optimize "${ED%/}"/usr/share/qgis/python |
219 |
+ fi |
220 |
+ |
221 |
+ if use grass; then |
222 |
+ python_fix_shebang "${ED%/}"/usr/share/qgis/grass/scripts |
223 |
+ fi |
224 |
+} |
225 |
+ |
226 |
+pkg_postinst() { |
227 |
+ if use postgres; then |
228 |
+ elog "If you don't intend to use an external PostGIS server" |
229 |
+ elog "you should install:" |
230 |
+ elog " dev-db/postgis" |
231 |
+ elif use python; then |
232 |
+ elog "Support of PostgreSQL is disabled." |
233 |
+ elog "But some installed python-plugins import the psycopg2 module." |
234 |
+ elog "If you do not need these plugins just disable them" |
235 |
+ elog "in the Plugins menu, else you need to set USE=\"postgres\"" |
236 |
+ fi |
237 |
+ if has_version "<sci-geosciences/qgis-3"; then |
238 |
+ elog "QGIS is now based on PyQt5. Old scripts may not work anymore." |
239 |
+ fi |
240 |
+ |
241 |
+ gnome2_icon_cache_update |
242 |
+ xdg_mimeinfo_database_update |
243 |
+ xdg_desktop_database_update |
244 |
+} |
245 |
+ |
246 |
+pkg_postrm() { |
247 |
+ gnome2_icon_cache_update |
248 |
+ xdg_mimeinfo_database_update |
249 |
+ xdg_desktop_database_update |
250 |
+} |