Gentoo Archives: gentoo-commits

From: "罗百科" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/postgis/
Date: Tue, 18 Aug 2020 17:57:43
Message-Id: 1597773455.b970b744483a755b4b56bf45987fb4e4029ece90.patrick@gentoo
1 commit: b970b744483a755b4b56bf45987fb4e4029ece90
2 Author: Patrick Lauer <patrick <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 18 17:55:59 2020 +0000
4 Commit: 罗百科 <patrick <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 18 17:57:35 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b970b744
7
8 dev-db/postgis: Bump
9
10 Package-Manager: Portage-3.0.3, Repoman-3.0.0
11 Signed-off-by: Patrick Lauer <patrick <AT> gentoo.org>
12
13 dev-db/postgis/Manifest | 2 +
14 dev-db/postgis/postgis-2.5.5.ebuild | 137 ++++++++++++++++++++++++++++++++++++
15 dev-db/postgis/postgis-3.0.2.ebuild | 135 +++++++++++++++++++++++++++++++++++
16 3 files changed, 274 insertions(+)
17
18 diff --git a/dev-db/postgis/Manifest b/dev-db/postgis/Manifest
19 index fa6f2df34dd..7e1d9c388b6 100644
20 --- a/dev-db/postgis/Manifest
21 +++ b/dev-db/postgis/Manifest
22 @@ -1,4 +1,6 @@
23 DIST postgis-2.5.3.tar.gz 16424752 BLAKE2B 94c2ccd41eb88a39c6db48ad7f4d142742a1b0791e3abe57adb2c778406dcc8286afc6d55c80067e0b94a1300eff1c76a227d3cfd813e12541c715edeea11a9b SHA512 1c9f873ba8f8ff4aeae248c68c001eb4174416de1e00ce6a0d0c9ea129b475e887a83235027068d52f587ab95c549adbfaa7e5dccdda77855e39c55dac0fdc2d
24 DIST postgis-2.5.4.tar.gz 15882033 BLAKE2B 317e6f3857dce8b1c054b5cdb6c6b215b015b89266aeaa0187803b9355cdc3cbb62be89f36ffe29e2fcbc1e7b693a7f88fb23b5c172fcefea376f6afea3c064d SHA512 767c146245ae11545ce4e0764f9bd313cfdf2eed78c485c5aa5530517edb8e433bcdbaffcf4d92b0c0f3c997de9831b5e3beed7638fc3bc773f264b45e5d8ab4
25 +DIST postgis-2.5.5.tar.gz 15936193 BLAKE2B df5d0e51bb5042a72ecd070273c4a87738b2ba482993d39948137c8ba2da0a47845393023a6b4e45f01a91d37ef8fc9f89302203c639fb32b4451cb905fd08b3 SHA512 407c9ddf5b73aaa8d36ec606f974b86c16c9ed4aafbfd4a0b7f96cfc7a9f8a8fa38528cb4787bdd50de479416dbfb09934a85d189463cec549da66863060292e
26 DIST postgis-3.0.0.tar.gz 17359802 BLAKE2B aa83bdc2d1950c517f99cbdd877eb7261f6c29ce2cbd9f67f1e606c290080fc3d02ab0b7ceb68ce852e0c0d3d4b7753f03cb5b0921da164ab65d68e23d1df538 SHA512 82c233681fa6444686f9979768e5d6d3a9b6ca9cbd4fc2b14bd0a5d1269a8d0f45ee067e64984077063407c7abc13fa0e37a29928d7ccbfe3a61b694f592bed2
27 DIST postgis-3.0.1.tar.gz 16839923 BLAKE2B 6888fa49562ab71929e92007de305fd6610c74988faaf08fbeabbf1d13029ebbb5da788826dc63d03ae5c873fbe408ae6c0f108b2975755d2b13bc69bed53558 SHA512 5ebce2303d672bb342f7fae6cade08140c8a687fc38e82e5b41eebb8465cdf3dc7bdbeae53b1179df8112a01842dd65f362fc107b381e2a1fa6e161b77a50227
28 +DIST postgis-3.0.2.tar.gz 16855299 BLAKE2B 99ee872abf52651ab53e4dd6203d99d428d366f60b949fabcae938980f5c17809872e9b23f7ab1f3480a60242e735c926e54122492e1b8966ed8c748eb7c4fe6 SHA512 763d7818d195eca0b07d94a864b13da68e5734ae57b7c93c285dc2d0fa4a155715745e5da67e1a3bca49d8d4f89dc495ed3912c079722290ce9f220afca33f4d
29
30 diff --git a/dev-db/postgis/postgis-2.5.5.ebuild b/dev-db/postgis/postgis-2.5.5.ebuild
31 new file mode 100644
32 index 00000000000..1cdbc058b8d
33 --- /dev/null
34 +++ b/dev-db/postgis/postgis-2.5.5.ebuild
35 @@ -0,0 +1,137 @@
36 +# Copyright 1999-2020 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=7
40 +
41 +POSTGRES_COMPAT=( 9.{5..6} {10..12} )
42 +POSTGRES_USEDEP="server"
43 +inherit autotools postgres-multi
44 +
45 +MY_P="${PN}-$(ver_rs 3 '')"
46 +
47 +if [[ ${PV} = *9999* ]] ; then
48 + inherit git-r3
49 + EGIT_REPO_URI="https://git.osgeo.org/gitea/postgis/postgis.git"
50 +else
51 + PGIS="$(ver_cut 1-2)"
52 + SRC_URI="https://download.osgeo.org/postgis/source/${MY_P}.tar.gz"
53 + KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
54 +fi
55 +
56 +DESCRIPTION="Geographic Objects for PostgreSQL"
57 +HOMEPAGE="https://postgis.net"
58 +
59 +S="${WORKDIR}/${MY_P}"
60 +
61 +LICENSE="GPL-2"
62 +SLOT="0"
63 +IUSE="address-standardizer doc gtk mapbox static-libs test topology"
64 +
65 +REQUIRED_USE="test? ( doc ) ${POSTGRES_REQ_USE}"
66 +
67 +# Needs a running psql instance, doesn't work out of the box
68 +RESTRICT="test"
69 +
70 +RDEPEND="${POSTGRES_DEP}
71 + dev-libs/json-c:=
72 + dev-libs/libxml2:2
73 + dev-libs/protobuf-c
74 + >=sci-libs/geos-3.5.0
75 + >=sci-libs/proj-4.6.0:=
76 + >=sci-libs/gdal-1.10.0
77 + address-standardizer? ( dev-libs/libpcre )
78 + gtk? ( x11-libs/gtk+:2 )
79 + mapbox? ( dev-libs/protobuf-c:= )
80 +"
81 +DEPEND="${RDEPEND}
82 + virtual/pkgconfig
83 + doc? (
84 + app-text/docbook-xsl-stylesheets
85 + app-text/docbook-xml-dtd:4.5
86 + dev-libs/libxslt
87 + virtual/imagemagick-tools[png]
88 + )
89 + test? ( dev-util/cunit )
90 +"
91 +
92 +PATCHES=( "${FILESDIR}/${PN}-2.2.0-arflags.patch" )
93 +
94 +src_prepare() {
95 + default
96 +
97 + if [[ ${PV} = *9999* ]] ; then
98 + source "${S}"/Version.config
99 + PGIS="${POSTGIS_MAJOR_VERSION}.${POSTGIS_MINOR_VERSION}"
100 + fi
101 +
102 + # These modules are built using the same *FLAGS that were used to build
103 + # dev-db/postgresql. The right thing to do is to ignore the current
104 + # *FLAGS settings.
105 + QA_FLAGS_IGNORED="usr/lib(64)?/(rt)?postgis-${PGIS}\.so"
106 +
107 + local AT_M4DIR="macros"
108 + eautoreconf
109 +
110 + postgres-multi_src_prepare
111 +}
112 +
113 +src_configure() {
114 + local myeconfargs=(
115 + --with-protobuf
116 + $(use_with address-standardizer)
117 + $(use_with gtk gui)
118 + $(use_with mapbox)
119 + $(use_with topology)
120 + )
121 + postgres-multi_foreach econf "${myeconfargs[@]}"
122 +}
123 +
124 +src_compile() {
125 + postgres-multi_foreach emake
126 + postgres-multi_foreach emake -C topology
127 +
128 + if use doc ; then
129 + postgres-multi_foreach emake comments
130 + postgres-multi_foreach emake cheatsheets
131 + postgres-multi_forbest emake -C doc html
132 + fi
133 +}
134 +
135 +src_install() {
136 + postgres-multi_foreach emake DESTDIR="${D}" install
137 + postgres-multi_foreach emake -C topology DESTDIR="${D}" install
138 + postgres-multi_forbest dobin ./utils/postgis_restore.pl
139 +
140 + dodoc CREDITS TODO loader/README.* doc/*txt
141 +
142 + docinto topology
143 + dodoc topology/{TODO,README}
144 +
145 + if use doc ; then
146 + postgres-multi_foreach emake DESTDIR="${D}" comments-install
147 +
148 + docinto html
149 + postgres-multi_forbest dodoc doc/html/{postgis.html,style.css}
150 +
151 + docinto html/images
152 + postgres-multi_forbest dodoc doc/html/images/*
153 + fi
154 +
155 + use static-libs || find "${ED}" -name '*.a' -delete
156 +}
157 +
158 +pkg_postinst() {
159 + ebegin "Refreshing PostgreSQL symlinks"
160 + postgresql-config update
161 + eend $?
162 +
163 + local base_uri="https://postgis.net/docs/manual-"
164 + if [[ ${PV} = *9999* ]] ; then
165 + base_uri+="dev"
166 + else
167 + base_uri+="${PGIS}"
168 + fi
169 +
170 + elog "To finish installing PostGIS, follow the directions detailed at:"
171 + elog "${base_uri}/postgis_installation.html#create_new_db_extensions"
172 +}
173
174 diff --git a/dev-db/postgis/postgis-3.0.2.ebuild b/dev-db/postgis/postgis-3.0.2.ebuild
175 new file mode 100644
176 index 00000000000..3e05e061edf
177 --- /dev/null
178 +++ b/dev-db/postgis/postgis-3.0.2.ebuild
179 @@ -0,0 +1,135 @@
180 +# Copyright 1999-2020 Gentoo Authors
181 +# Distributed under the terms of the GNU General Public License v2
182 +
183 +EAPI=7
184 +
185 +POSTGRES_COMPAT=( 9.{5..6} {10..13} )
186 +POSTGRES_USEDEP="server"
187 +inherit autotools postgres-multi
188 +
189 +MY_P="${PN}-$(ver_rs 3 '')"
190 +
191 +if [[ ${PV} = *9999* ]] ; then
192 + inherit git-r3
193 + EGIT_REPO_URI="https://git.osgeo.org/gitea/postgis/postgis.git"
194 +else
195 + PGIS="$(ver_cut 1-2)"
196 + SRC_URI="https://download.osgeo.org/postgis/source/${MY_P}.tar.gz"
197 + KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
198 +fi
199 +
200 +DESCRIPTION="Geographic Objects for PostgreSQL"
201 +HOMEPAGE="https://postgis.net"
202 +
203 +S="${WORKDIR}/${MY_P}"
204 +
205 +LICENSE="GPL-2"
206 +SLOT="0"
207 +IUSE="address-standardizer doc gtk static-libs test topology"
208 +
209 +REQUIRED_USE="test? ( doc ) ${POSTGRES_REQ_USE}"
210 +
211 +# Needs a running psql instance, doesn't work out of the box
212 +RESTRICT="test"
213 +
214 +RDEPEND="${POSTGRES_DEP}
215 + dev-libs/json-c:=
216 + dev-libs/libxml2:2
217 + dev-libs/protobuf-c:=
218 + >=sci-libs/geos-3.6.0
219 + >=sci-libs/proj-4.9.0:=
220 + >=sci-libs/gdal-1.10.0:=
221 + address-standardizer? ( dev-libs/libpcre )
222 + gtk? ( x11-libs/gtk+:2 )
223 +"
224 +DEPEND="${RDEPEND}
225 + virtual/pkgconfig
226 + doc? (
227 + app-text/docbook-xsl-stylesheets
228 + app-text/docbook-xml-dtd:4.5
229 + dev-libs/libxslt
230 + virtual/imagemagick-tools[png]
231 + )
232 + test? ( dev-util/cunit )
233 +"
234 +
235 +PATCHES=( "${FILESDIR}/${PN}-2.2.0-arflags.patch" )
236 +
237 +src_prepare() {
238 + default
239 +
240 + if [[ ${PV} = *9999* ]] ; then
241 + source "${S}"/Version.config
242 + PGIS="${POSTGIS_MAJOR_VERSION}.${POSTGIS_MINOR_VERSION}"
243 + fi
244 +
245 + # These modules are built using the same *FLAGS that were used to build
246 + # dev-db/postgresql. The right thing to do is to ignore the current
247 + # *FLAGS settings.
248 + QA_FLAGS_IGNORED="usr/lib(64)?/(rt)?postgis-${PGIS}\.so"
249 +
250 + local AT_M4DIR="macros"
251 + eautoreconf
252 +
253 + postgres-multi_src_prepare
254 +}
255 +
256 +src_configure() {
257 + local myeconfargs=(
258 + --with-protobuf # funky misdetection if enabled but --without-protobuf
259 + $(use_with address-standardizer)
260 + $(use_with gtk gui)
261 + $(use_with topology)
262 + )
263 + postgres-multi_foreach econf "${myeconfargs[@]}"
264 +}
265 +
266 +src_compile() {
267 + postgres-multi_foreach emake
268 + postgres-multi_foreach emake -C topology
269 +
270 + if use doc ; then
271 + postgres-multi_foreach emake comments
272 + postgres-multi_foreach emake cheatsheets
273 + postgres-multi_forbest emake -C doc html
274 + fi
275 +}
276 +
277 +src_install() {
278 + postgres-multi_foreach emake DESTDIR="${D}" install
279 + postgres-multi_foreach emake -C topology DESTDIR="${D}" install
280 + postgres-multi_forbest dobin ./utils/postgis_restore.pl
281 +
282 + dodoc CREDITS TODO loader/README.* doc/*txt
283 +
284 + docinto topology
285 + dodoc topology/{TODO,README}
286 +
287 + if use doc ; then
288 + postgres-multi_foreach emake DESTDIR="${D}" comments-install
289 +
290 + docinto html
291 + postgres-multi_forbest dodoc doc/html/{postgis.html,style.css}
292 +
293 + docinto html/images
294 + postgres-multi_forbest dodoc doc/html/images/*
295 + fi
296 +
297 + use static-libs || find "${ED}" -name '*.a' -delete
298 +}
299 +
300 +pkg_postinst() {
301 + ebegin "Refreshing PostgreSQL symlinks"
302 + postgresql-config update
303 + eend $?
304 +
305 + local base_uri="https://postgis.net/docs/manual-"
306 + if [[ ${PV} = *9999* ]] ; then
307 + base_uri+="dev"
308 + else
309 + base_uri+="${PGIS}"
310 + fi
311 +
312 + elog "To finish installing PostGIS, follow the directions detailed at:"
313 + elog "${base_uri}/postgis_installation.html#create_new_db_extensions"
314 +}