Gentoo Archives: gentoo-commits

From: Amy Winston <amynka@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-geosciences/qgis/
Date: Mon, 28 Dec 2015 19:56:17
Message-Id: 1451332428.5509c0eecdd713de3c148e0eaae5e2b7e55ee42d.amynka@gentoo
1 commit: 5509c0eecdd713de3c148e0eaae5e2b7e55ee42d
2 Author: Amy Winston <amynka <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 28 19:53:48 2015 +0000
4 Commit: Amy Winston <amynka <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 28 19:53:48 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5509c0ee
7
8 sci-geosciences/qgis: 2.12.1 version bump bug #485868.
9
10 Package-Manager: portage-2.2.24
11
12 sci-geosciences/qgis/Manifest | 1 +
13 sci-geosciences/qgis/metadata.xml | 2 +
14 sci-geosciences/qgis/qgis-2.12.1.ebuild | 153 ++++++++++++++++++++++++++++++++
15 3 files changed, 156 insertions(+)
16
17 diff --git a/sci-geosciences/qgis/Manifest b/sci-geosciences/qgis/Manifest
18 index 80f4f57..c354b3e 100644
19 --- a/sci-geosciences/qgis/Manifest
20 +++ b/sci-geosciences/qgis/Manifest
21 @@ -1,2 +1,3 @@
22 DIST qgis-1.8.0.tar.bz2 29997204 SHA256 700be4f81c4a6b6335a0217a6c476328c0ea02543d579a06dc1aaf60201303ab SHA512 475c2087164b325bd6efe49bdca9e5eb563645ea556c34f644cff00fd6bcc0585e9e39daa2e62f0a706db58bc1551af786fc2cb6c17ad90f5734ebea5044e57c WHIRLPOOL ef1fc2832bd20398afdee9eb4c1e81baa3c8c792acc76c0b609a74ae0d61301b00f105221fa27b74b26c68fd8b5d849ea7612e960a8684b885cb8f31d0c71a1c
23 +DIST qgis-2.12.1.tar.bz2 69088412 SHA256 96b9bb6ef62ec042b938e4b3112cc8e2e96caad36d6615b484ad757a65e80429 SHA512 647ad827f6b139a301a5fd1387333842d0187390db1906a37713b41a24bd97e37624ba2b1b500b473132d17e0d856efd0a033b2159930d005c9f74845547958e WHIRLPOOL 05895935df656937b3a1848a07eee8ee96692a8a34d30515d143b2f08cd652640b5116a81025e822497cc26d0e6f6347a6344657272a4c6c6de5d128792b98ad
24 DIST qgis_sample_data.tar.gz 13601736 SHA256 a31c54056776e8476e1f959870830f850423645cfb80d88811f3b365c29f2b4a SHA512 5847d7b32e5f75e771adf6b959847024f55b2360c307bd80e5628595fc53f5aaca18adf6cb00fa027a7e7b326c7f72bab58df16674daf20b77c676e163d93f78 WHIRLPOOL fe7746f8a72807742427c6fb70f1453e195be75322d5784adc484ac14b0eae55569dbded7468ea2ba0c34781fe14918e07a5a187dca82bff551c6117f941d7f5
25
26 diff --git a/sci-geosciences/qgis/metadata.xml b/sci-geosciences/qgis/metadata.xml
27 index 2d85958..c7d2ce3 100644
28 --- a/sci-geosciences/qgis/metadata.xml
29 +++ b/sci-geosciences/qgis/metadata.xml
30 @@ -13,5 +13,7 @@
31 <use>
32 <flag name="bundled-libs">Use internal copy of <pkg>x11-libs/qwtpolar</pkg></flag>
33 <flag name="spatialite">Enable Spatial DBMS over sqlite <pkg>dev-db/spatialite</pkg></flag>
34 + <flag name="grass">Add support for <pkg>sci-geosciences/grass</pkg></flag>
35 + <flag name="mapserver">Determines whether mapserver should be built</flag>
36 </use>
37 </pkgmetadata>
38
39 diff --git a/sci-geosciences/qgis/qgis-2.12.1.ebuild b/sci-geosciences/qgis/qgis-2.12.1.ebuild
40 new file mode 100644
41 index 0000000..119b1cd
42 --- /dev/null
43 +++ b/sci-geosciences/qgis/qgis-2.12.1.ebuild
44 @@ -0,0 +1,153 @@
45 +# Copyright 1999-2015 Gentoo Foundation
46 +# Distributed under the terms of the GNU General Public License v2
47 +# $Id$
48 +
49 +EAPI=5
50 +
51 +PYTHON_COMPAT=( python2_7 )
52 +PYTHON_REQ_USE="sqlite"
53 +
54 +inherit eutils multilib gnome2-utils cmake-utils python-single-r1
55 +
56 +DESCRIPTION="User friendly Geographic Information System"
57 +HOMEPAGE="http://www.qgis.org/"
58 +SRC_URI="
59 + http://qgis.org/downloads/qgis-${PV}.tar.bz2
60 + examples? ( http://download.osgeo.org/qgis/data/qgis_sample_data.tar.gz )"
61 +
62 +LICENSE="GPL-2"
63 +SLOT="0"
64 +KEYWORDS="~amd64 ~x86"
65 +IUSE="examples grass gsl mapserver postgres python test"
66 +
67 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )
68 + mapserver? ( python )"
69 +
70 +RDEPEND="
71 + ${PYTHON_DEPS}
72 + dev-libs/expat
73 + sci-geosciences/gpsbabel
74 + >=sci-libs/gdal-1.6.1[geos,python?,${PYTHON_USEDEP}]
75 + sci-libs/geos
76 + gsl? ( sci-libs/gsl )
77 + sci-libs/libspatialindex
78 + sci-libs/proj
79 + dev-qt/qtcore:4
80 + dev-qt/qtgui:4
81 + dev-qt/qtsvg:4
82 + dev-qt/qtsql:4
83 + dev-qt/qtwebkit:4
84 + dev-qt/designer:4
85 + x11-libs/qscintilla
86 + || (
87 + ( || ( <x11-libs/qwt-6.1.2:6[svg] >=x11-libs/qwt-6.1.2:6[svg,qt4] ) >=x11-libs/qwtpolar-1 )
88 + ( x11-libs/qwt:5[svg] <x11-libs/qwtpolar-1 )
89 + )
90 + grass? ( || ( >=sci-geosciences/grass-7.0.0 ) )
91 + mapserver? ( dev-libs/fcgi )
92 + postgres? ( dev-db/postgresql:* )
93 + python? (
94 + dev-python/PyQt4[X,sql,svg,webkit,${PYTHON_USEDEP}]
95 + dev-python/sip[${PYTHON_USEDEP}]
96 + dev-python/qscintilla-python[${PYTHON_USEDEP}]
97 + postgres? ( dev-python/psycopg:2[${PYTHON_USEDEP}] )
98 + ${PYTHON_DEPS}
99 + )
100 + dev-db/sqlite:3
101 + dev-db/spatialite
102 + app-crypt/qca:2[qt4,openssl]
103 +"
104 +
105 +DEPEND="${RDEPEND}
106 + sys-devel/bison
107 + sys-devel/flex"
108 +
109 +pkg_setup() {
110 + python-single-r1_pkg_setup
111 +}
112 +
113 +src_configure() {
114 + local mycmakeargs=(
115 + "-DQGIS_MANUAL_SUBDIR=/share/man/"
116 + "-DBUILD_SHARED_LIBS=ON"
117 + "-DQGIS_LIB_SUBDIR=$(get_libdir)"
118 + "-DQGIS_PLUGIN_SUBDIR=$(get_libdir)/qgis"
119 + "-DWITH_INTERNAL_QWTPOLAR=OFF"
120 + "-DPEDANTIC=OFF"
121 + "-DWITH_APIDOC=OFF"
122 + "-DWITH_SPATIALITE=ON"
123 + "-DWITH_INTERNAL_SPATIALITE=OFF"
124 + $(cmake-utils_use_with postgres POSTGRESQL)
125 + $(cmake-utils_use_with grass GRASS)
126 + $(cmake-utils_use_with mapserver SERVER)
127 + $(cmake-utils_use_with python BINDINGS)
128 + $(cmake-utils_use python BINDINGS_GLOBAL_INSTALL)
129 + $(cmake-utils_use_with python PYSPATIALITE)
130 + $(cmake-utils_use_with gsl GSL)
131 + $(cmake-utils_use_enable test TESTS)
132 + $(usex grass "-DGRASS_PREFIX=/usr/" "")
133 + )
134 +
135 + if has_version '>=x11-libs/qwtpolar-1' && has_version 'x11-libs/qwt:5' ; then
136 + elog "Both >=x11-libs/qwtpolar-1 and x11-libs/qwt:5 installed. Force build with qwt6"
137 + if has_version '>=x11-libs/qwt-6.1.2' ; then
138 + mycmakeargs+=(
139 + "-DQWT_INCLUDE_DIR=/usr/include/qwt6"
140 + "-DQWT_LIBRARY=/usr/$(get_libdir)/libqwt6-qt4.so"
141 + )
142 + else
143 + mycmakeargs+=(
144 + "-DQWT_INCLUDE_DIR=/usr/include/qwt6"
145 + "-DQWT_LIBRARY=/usr/$(get_libdir)/libqwt6.so"
146 + )
147 + fi
148 + fi
149 +
150 + cmake-utils_src_configure
151 +}
152 +
153 +src_install() {
154 + cmake-utils_src_install
155 + dodoc BUGS ChangeLog CODING
156 +
157 + newicon -s 128 images/icons/qgis-icon.png qgis.png
158 + make_desktop_entry qgis "QGIS " qgis
159 +
160 + if use examples; then
161 + insinto /usr/share/doc/${PF}/examples
162 + doins -r "${WORKDIR}"/qgis_sample_data/*
163 + fi
164 +
165 + python_optimize "${D}"/usr/share/qgis/python/plugins \
166 + "${D}"/$(python_get_sitedir)/qgis
167 +
168 + if use grass; then
169 + python_fix_shebang "${D}"/usr/share/qgis/grass/scripts
170 + python_optimize "${D}"/usr/share/qgis/grass/scripts
171 + fi
172 +}
173 +
174 +pkg_preinst() {
175 + gnome2_icon_savelist
176 +}
177 +
178 +pkg_postinst() {
179 + if use postgres; then
180 + elog "If you don't intend to use an external PostGIS server"
181 + elog "you should install:"
182 + elog " dev-db/postgis"
183 + else
184 + if use python ; then
185 + elog "Support of PostgreSQL is disabled."
186 + elog "But some installed python-plugins needs import psycopg2 module."
187 + elog "If you do not need this modules just disable them in main menu."
188 + elog "Or you need to set USE=postgres"
189 + fi
190 + fi
191 +
192 + gnome2_icon_cache_update
193 +}
194 +
195 +pkg_postrm() {
196 + gnome2_icon_cache_update
197 +}