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