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: Sun, 05 Sep 2021 13:28:23
Message-Id: 1630848497.78d64ffae470a2efd64402fb83c5f358813518e8.patrick@gentoo
1 commit: 78d64ffae470a2efd64402fb83c5f358813518e8
2 Author: Patrick Lauer <patrick <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 5 13:28:09 2021 +0000
4 Commit: 罗百科 <patrick <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 5 13:28:17 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78d64ffa
7
8 dev-db/postgis: Bump
9
10 Package-Manager: Portage-3.0.22, Repoman-3.0.3
11 Signed-off-by: Patrick Lauer <patrick <AT> gentoo.org>
12
13 dev-db/postgis/Manifest | 2 +
14 dev-db/postgis/postgis-3.0.4.ebuild | 144 ++++++++++++++++++++++++++++++++++++
15 dev-db/postgis/postgis-3.1.4.ebuild | 143 +++++++++++++++++++++++++++++++++++
16 3 files changed, 289 insertions(+)
17
18 diff --git a/dev-db/postgis/Manifest b/dev-db/postgis/Manifest
19 index ed8966feab8..916ff85d03e 100644
20 --- a/dev-db/postgis/Manifest
21 +++ b/dev-db/postgis/Manifest
22 @@ -1,5 +1,7 @@
23 DIST postgis-3.0.3.tar.gz 16871696 BLAKE2B 891f814271de9193cd17013d6d971a752d2e984cb0f68b05510450adef97fc96827e3d1a1c7e4fa4cf79a5d15eb3f74b32e6e9a8db1947f7bad7c2b23656bc8f SHA512 478f0971e18c2a1bd651c9bf7b995236aad32fda037762505cf8ac9e67a4e40917436248c1e62827a1a6da96c15c4ae8d0b606d548fa080cdff453642b897115
24 +DIST postgis-3.0.4.tar.gz 16871782 BLAKE2B 188e9b843526299bb112cb5f9437a9471a1b2cbf51cf85f68094172cfe98101f66cd2a72b2667161a0d40c4719ceed14299c04494e8165716b5dfd4aa84cd5c7 SHA512 0b01414433137af2708f5dee3cc054823dd788d311273f9055ab2d7bce5901e18206021381f3705408d6e263f7afc9cfcf6eaa5298b82690efaeac66486f8c0e
25 DIST postgis-3.1.0.tar.gz 17262134 BLAKE2B dbc6edde826328b84ca7d6cc9329d648c7874d51528252759499131d7ad5dbc1a7a4ef881054f2fa1fc255810157270dc1c0ae0e2ea24ec702f06b9fd5f6dfed SHA512 c5b063ff7cbe855ab6ce4104d170b27eea04ae632fd6fcb8de38b14699296a8e0c9ce06bfb48ab14cba51b7a1b3f7e0a3996d9377a954dfc39fd68fe3f839e8f
26 DIST postgis-3.1.1.tar.gz 17261826 BLAKE2B a14bdce3773f8cc50c72880d9b8158c32b546332884645e91cba539ab9238c3cbcbc9ee60292932c86de67a0134bdab6a2b4e6b1f3c55881afbb36a08d8f138a SHA512 b975d26c1ad01fa6b90b5b3b51fd2b4b33204a380af0f76b98d1bfd6bd95f527d4ac3548f1b822e114be17bb3a133bc88c3d33a17d4effdfa1f90ec0c683e5e5
27 DIST postgis-3.1.2.tar.gz 17266501 BLAKE2B acc65e3ab70667c57a71bcb9c7bbfc382f8a6038ceb0e91aac07e36fb6b4cb6365aa968b30af13eda8292410cc1b567d871970e6cb7dfaadb454147224f9b834 SHA512 df9d2fa118987e29acd635912a708e643770ad3df82c098f8129f11ab07a9eafde969302d2d2e59a68fea6fc7312fe768a231dd4cb5de7002c418725da75848a
28 DIST postgis-3.1.3.tar.gz 17273487 BLAKE2B 603be66476037fca5e75b00079a26b4beaa50f0af0626f89660f17da398576d929574cb363c4177877d9c8db5459f7eac964b85796cd93b0d0c6ff2462d7ad3f SHA512 525c982de6b5888d1f4a4f6d2cca5dfa945d8899d8038b1d62ce222e0149c4ab26a2a3602bb8c85e89ce22b3d5b20d278fc4f841144f4b0d19e6de4f48d819ad
29 +DIST postgis-3.1.4.tar.gz 17269391 BLAKE2B 6070fb72c777f8baf9c520ec51cf436837fffb54f21af5b4cf800940240f2fb9fcee162b2d3817cbfd4e60c2cef37eb4cf902d9e9f065e537d8d9b8ec965bef3 SHA512 afd84b45b146bdae310580fc9f8a878dd658f9e74f99c41f5d143f32974d5f5017ab4190855dcaea915a31ac2a78d34bf5561f206965264de3252f2c2ac57683
30
31 diff --git a/dev-db/postgis/postgis-3.0.4.ebuild b/dev-db/postgis/postgis-3.0.4.ebuild
32 new file mode 100644
33 index 00000000000..ec0647eb354
34 --- /dev/null
35 +++ b/dev-db/postgis/postgis-3.0.4.ebuild
36 @@ -0,0 +1,144 @@
37 +# Copyright 1999-2021 Gentoo Authors
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +EAPI=7
41 +
42 +POSTGRES_COMPAT=( 9.6 {10..13} )
43 +POSTGRES_USEDEP="server"
44 +inherit autotools postgres-multi
45 +
46 +MY_P="${PN}-$(ver_rs 3 '')"
47 +
48 +if [[ ${PV} = *9999* ]] ; then
49 + inherit git-r3
50 + EGIT_REPO_URI="https://git.osgeo.org/gitea/postgis/postgis.git"
51 +else
52 + PGIS="$(ver_cut 1-2)"
53 + SRC_URI="https://download.osgeo.org/postgis/source/${MY_P}.tar.gz"
54 + KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
55 +fi
56 +
57 +DESCRIPTION="Geographic Objects for PostgreSQL"
58 +HOMEPAGE="https://postgis.net"
59 +
60 +S="${WORKDIR}/${MY_P}"
61 +
62 +LICENSE="GPL-2"
63 +SLOT="0"
64 +IUSE="address-standardizer doc gtk static-libs test topology"
65 +
66 +REQUIRED_USE="test? ( doc ) ${POSTGRES_REQ_USE}"
67 +
68 +# Needs a running psql instance, doesn't work out of the box
69 +RESTRICT="test"
70 +
71 +RDEPEND="${POSTGRES_DEP}
72 + dev-libs/json-c:=
73 + dev-libs/libxml2:2
74 + dev-libs/protobuf-c:=
75 + >=sci-libs/geos-3.6.0
76 + >=sci-libs/proj-4.9.0:=
77 + >=sci-libs/gdal-1.10.0:=
78 + address-standardizer? ( dev-libs/libpcre )
79 + gtk? ( x11-libs/gtk+:2 )
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=(
93 + "${FILESDIR}/${PN}-2.2.0-arflags.patch"
94 + "${FILESDIR}/${PN}-3.0.3-avoid-calling-ar-directly.patch"
95 + "${FILESDIR}/${PN}-3.0.3-detect-only-stdc.patch"
96 + "${FILESDIR}/${PN}-3.0.3-try-other-cpp-names.patch"
97 +)
98 +
99 +src_prepare() {
100 + default
101 +
102 + if [[ ${PV} = *9999* ]] ; then
103 + source "${S}"/Version.config
104 + PGIS="${POSTGIS_MAJOR_VERSION}.${POSTGIS_MINOR_VERSION}"
105 + fi
106 +
107 + # These modules are built using the same *FLAGS that were used to build
108 + # dev-db/postgresql. The right thing to do is to ignore the current
109 + # *FLAGS settings.
110 + QA_FLAGS_IGNORED="usr/lib(64)?/(rt)?postgis-${PGIS}\.so"
111 +
112 + # bug #775968
113 + touch build-aux/ar-lib || die
114 + # bug #775968
115 + config_rpath_update build-aux/config.rpath
116 +
117 + local AT_M4DIR="macros"
118 + eautoreconf
119 +
120 + postgres-multi_src_prepare
121 +}
122 +
123 +src_configure() {
124 + local myeconfargs=(
125 + $(use_with address-standardizer)
126 + $(use_with gtk gui)
127 + $(use_with topology)
128 + )
129 + postgres-multi_foreach econf "${myeconfargs[@]}"
130 +}
131 +
132 +src_compile() {
133 + postgres-multi_foreach emake
134 + postgres-multi_foreach emake -C topology
135 +
136 + if use doc ; then
137 + postgres-multi_foreach emake comments
138 + postgres-multi_foreach emake cheatsheets
139 + postgres-multi_forbest emake -C doc html
140 + fi
141 +}
142 +
143 +src_install() {
144 + postgres-multi_foreach emake DESTDIR="${D}" install
145 + postgres-multi_foreach emake -C topology DESTDIR="${D}" install
146 + postgres-multi_forbest dobin ./utils/postgis_restore.pl
147 +
148 + dodoc CREDITS TODO loader/README.* doc/*txt
149 +
150 + docinto topology
151 + dodoc topology/{TODO,README}
152 +
153 + if use doc ; then
154 + postgres-multi_foreach emake DESTDIR="${D}" comments-install
155 +
156 + docinto html
157 + postgres-multi_forbest dodoc doc/html/{postgis.html,style.css}
158 +
159 + docinto html/images
160 + postgres-multi_forbest dodoc doc/html/images/*
161 + fi
162 +
163 + use static-libs || find "${ED}" -name '*.a' -delete
164 +}
165 +
166 +pkg_postinst() {
167 + ebegin "Refreshing PostgreSQL symlinks"
168 + postgresql-config update
169 + eend $?
170 +
171 + local base_uri="https://postgis.net/docs/manual-"
172 + if [[ ${PV} = *9999* ]] ; then
173 + base_uri+="dev"
174 + else
175 + base_uri+="${PGIS}"
176 + fi
177 +
178 + elog "To finish installing PostGIS, follow the directions detailed at:"
179 + elog "${base_uri}/postgis_installation.html#create_new_db_extensions"
180 +}
181
182 diff --git a/dev-db/postgis/postgis-3.1.4.ebuild b/dev-db/postgis/postgis-3.1.4.ebuild
183 new file mode 100644
184 index 00000000000..a81f3e9072c
185 --- /dev/null
186 +++ b/dev-db/postgis/postgis-3.1.4.ebuild
187 @@ -0,0 +1,143 @@
188 +# Copyright 1999-2021 Gentoo Authors
189 +# Distributed under the terms of the GNU General Public License v2
190 +
191 +EAPI=7
192 +
193 +POSTGRES_COMPAT=( 9.6 {10..13} )
194 +POSTGRES_USEDEP="server"
195 +inherit autotools postgres-multi toolchain-funcs
196 +
197 +MY_P="${PN}-$(ver_rs 3 '')"
198 +
199 +if [[ ${PV} = *9999* ]] ; then
200 + inherit git-r3
201 + EGIT_REPO_URI="https://git.osgeo.org/gitea/postgis/postgis.git"
202 +else
203 + PGIS="$(ver_cut 1-2)"
204 + SRC_URI="https://download.osgeo.org/postgis/source/${MY_P}.tar.gz"
205 + KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
206 +fi
207 +
208 +DESCRIPTION="Geographic Objects for PostgreSQL"
209 +HOMEPAGE="https://postgis.net"
210 +
211 +S="${WORKDIR}/${MY_P}"
212 +
213 +LICENSE="GPL-2"
214 +SLOT="0"
215 +IUSE="address-standardizer doc gtk static-libs topology"
216 +
217 +REQUIRED_USE="${POSTGRES_REQ_USE}"
218 +
219 +# Needs a running psql instance, doesn't work out of the box
220 +RESTRICT="test"
221 +
222 +RDEPEND="${POSTGRES_DEP}
223 + dev-libs/json-c:=
224 + dev-libs/libxml2:2
225 + dev-libs/protobuf-c:=
226 + >=sci-libs/geos-3.9.0
227 + >=sci-libs/proj-4.9.0:=
228 + >=sci-libs/gdal-1.10.0:=
229 + address-standardizer? ( dev-libs/libpcre )
230 + gtk? ( x11-libs/gtk+:2 )
231 +"
232 +DEPEND="${RDEPEND}
233 + virtual/pkgconfig
234 + doc? (
235 + app-text/docbook-xsl-stylesheets
236 + app-text/docbook-xml-dtd:4.5
237 + dev-libs/libxslt
238 + virtual/imagemagick-tools[png]
239 + )
240 +"
241 +
242 +PATCHES=(
243 + "${FILESDIR}/${PN}-2.2.0-arflags.patch"
244 + "${FILESDIR}/${PN}-3.0.3-avoid-calling-ar-directly.patch"
245 + "${FILESDIR}/${PN}-3.0.3-detect-only-stdc.patch"
246 + "${FILESDIR}/${PN}-3.0.3-try-other-cpp-names.patch"
247 +)
248 +
249 +src_prepare() {
250 + default
251 +
252 + if [[ ${PV} = *9999* ]] ; then
253 + source "${S}"/Version.config
254 + PGIS="${POSTGIS_MAJOR_VERSION}.${POSTGIS_MINOR_VERSION}"
255 + fi
256 +
257 + # These modules are built using the same *FLAGS that were used to build
258 + # dev-db/postgresql. The right thing to do is to ignore the current
259 + # *FLAGS settings.
260 + QA_FLAGS_IGNORED="usr/lib(64)?/(rt)?postgis-${PGIS}\.so"
261 +
262 + # bug #775968
263 + touch build-aux/ar-lib || die
264 +
265 + local AT_M4DIR="macros"
266 + eautoreconf
267 +
268 + postgres-multi_src_prepare
269 +}
270 +
271 +src_configure() {
272 + export CPP=$(tc-getCPP)
273 +
274 + local myeconfargs=(
275 + $(use_with address-standardizer)
276 + $(use_with gtk gui)
277 + $(use_with topology)
278 + )
279 + postgres-multi_foreach econf "${myeconfargs[@]}"
280 +}
281 +
282 +src_compile() {
283 + postgres-multi_foreach emake
284 + postgres-multi_foreach emake -C topology
285 +
286 + if use doc ; then
287 + postgres-multi_foreach emake comments
288 + postgres-multi_foreach emake cheatsheets
289 + postgres-multi_forbest emake -C doc html
290 + fi
291 +}
292 +
293 +src_install() {
294 + postgres-multi_foreach emake DESTDIR="${D}" install
295 + postgres-multi_foreach emake -C topology DESTDIR="${D}" install
296 + postgres-multi_forbest dobin ./utils/postgis_restore.pl
297 +
298 + dodoc CREDITS TODO loader/README.* doc/*txt
299 +
300 + docinto topology
301 + dodoc topology/{TODO,README}
302 +
303 + if use doc ; then
304 + postgres-multi_foreach emake DESTDIR="${D}" comments-install
305 +
306 + docinto html
307 + postgres-multi_forbest dodoc doc/html/{postgis.html,style.css}
308 +
309 + docinto html/images
310 + postgres-multi_forbest dodoc doc/html/images/*
311 + fi
312 +
313 + use static-libs || find "${ED}" -name '*.a' -delete
314 +}
315 +
316 +pkg_postinst() {
317 + ebegin "Refreshing PostgreSQL symlinks"
318 + postgresql-config update
319 + eend $?
320 +
321 + local base_uri="https://postgis.net/docs/manual-"
322 + if [[ ${PV} = *9999* ]] ; then
323 + base_uri+="dev"
324 + else
325 + base_uri+="${PGIS}"
326 + fi
327 +
328 + elog "To finish installing PostGIS, follow the directions detailed at:"
329 + elog "${base_uri}/postgis_installation.html#create_new_db_extensions"
330 +}