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: Wed, 02 Feb 2022 07:38:53
Message-Id: 1643787527.8dfd0739801d9066f7c5227e35990ba9d208a701.patrick@gentoo
1 commit: 8dfd0739801d9066f7c5227e35990ba9d208a701
2 Author: Patrick Lauer <patrick <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 2 07:37:43 2022 +0000
4 Commit: 罗百科 <patrick <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 2 07:38:47 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8dfd0739
7
8 dev-db/postgis: Bump to 3.1.5
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Patrick Lauer <patrick <AT> gentoo.org>
12
13 dev-db/postgis/Manifest | 1 +
14 dev-db/postgis/postgis-3.1.5.ebuild | 143 ++++++++++++++++++++++++++++++++++++
15 2 files changed, 144 insertions(+)
16
17 diff --git a/dev-db/postgis/Manifest b/dev-db/postgis/Manifest
18 index 606b0514a749..d26a55fc59c9 100644
19 --- a/dev-db/postgis/Manifest
20 +++ b/dev-db/postgis/Manifest
21 @@ -5,4 +5,5 @@ DIST postgis-3.1.1.tar.gz 17261826 BLAKE2B a14bdce3773f8cc50c72880d9b8158c32b546
22 DIST postgis-3.1.2.tar.gz 17266501 BLAKE2B acc65e3ab70667c57a71bcb9c7bbfc382f8a6038ceb0e91aac07e36fb6b4cb6365aa968b30af13eda8292410cc1b567d871970e6cb7dfaadb454147224f9b834 SHA512 df9d2fa118987e29acd635912a708e643770ad3df82c098f8129f11ab07a9eafde969302d2d2e59a68fea6fc7312fe768a231dd4cb5de7002c418725da75848a
23 DIST postgis-3.1.3.tar.gz 17273487 BLAKE2B 603be66476037fca5e75b00079a26b4beaa50f0af0626f89660f17da398576d929574cb363c4177877d9c8db5459f7eac964b85796cd93b0d0c6ff2462d7ad3f SHA512 525c982de6b5888d1f4a4f6d2cca5dfa945d8899d8038b1d62ce222e0149c4ab26a2a3602bb8c85e89ce22b3d5b20d278fc4f841144f4b0d19e6de4f48d819ad
24 DIST postgis-3.1.4.tar.gz 17269391 BLAKE2B 6070fb72c777f8baf9c520ec51cf436837fffb54f21af5b4cf800940240f2fb9fcee162b2d3817cbfd4e60c2cef37eb4cf902d9e9f065e537d8d9b8ec965bef3 SHA512 afd84b45b146bdae310580fc9f8a878dd658f9e74f99c41f5d143f32974d5f5017ab4190855dcaea915a31ac2a78d34bf5561f206965264de3252f2c2ac57683
25 +DIST postgis-3.1.5.tar.gz 17282333 BLAKE2B 3abe3b24ad0b8a9621c206f881a920ec4e37aa75ccc68ab8e4a43a372bb9047613c81d375051a948999068595de04f14bf4f0b7921b3f3894ff77a9d8c1c3063 SHA512 640196f4c983aeb1d661d98e099f4e2a47f32b15bfde21479b8fdb2aa5d12b4c564b0962973ec1a8dd64fbfac7cd7bc94d84376935294f23ba31d7501fe64a06
26 DIST postgis-3.2.0.tar.gz 16884722 BLAKE2B 118ae754199521e46508b404275bfe323465e5543ad8351d3dec3582800f6c475c30333b35ad48aac373f9d8e3875790c58858f638ee4ecb7465764703d07d40 SHA512 b49b2fbb88ec07981c0fd05400ad807e85553164023a4b47326c21f48b4e07827a183676c497ad6823dc3a6b97518e1d40906826b8a91739c96966d62858b2b5
27
28 diff --git a/dev-db/postgis/postgis-3.1.5.ebuild b/dev-db/postgis/postgis-3.1.5.ebuild
29 new file mode 100644
30 index 000000000000..a5c0c0e58438
31 --- /dev/null
32 +++ b/dev-db/postgis/postgis-3.1.5.ebuild
33 @@ -0,0 +1,143 @@
34 +# Copyright 1999-2022 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +POSTGRES_COMPAT=( 9.6 {10..14} )
40 +POSTGRES_USEDEP="server"
41 +inherit autotools postgres-multi toolchain-funcs
42 +
43 +MY_P="${PN}-$(ver_rs 3 '')"
44 +
45 +if [[ ${PV} = *9999* ]] ; then
46 + inherit git-r3
47 + EGIT_REPO_URI="https://git.osgeo.org/gitea/postgis/postgis.git"
48 +else
49 + PGIS="$(ver_cut 1-2)"
50 + SRC_URI="https://download.osgeo.org/postgis/source/${MY_P}.tar.gz"
51 + KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
52 +fi
53 +
54 +DESCRIPTION="Geographic Objects for PostgreSQL"
55 +HOMEPAGE="https://postgis.net"
56 +
57 +S="${WORKDIR}/${MY_P}"
58 +
59 +LICENSE="GPL-2"
60 +SLOT="0"
61 +IUSE="address-standardizer doc gtk static-libs topology"
62 +
63 +REQUIRED_USE="${POSTGRES_REQ_USE}"
64 +
65 +# Needs a running psql instance, doesn't work out of the box
66 +RESTRICT="test"
67 +
68 +RDEPEND="${POSTGRES_DEP}
69 + dev-libs/json-c:=
70 + dev-libs/libxml2:2
71 + dev-libs/protobuf-c:=
72 + >=sci-libs/geos-3.9.0
73 + >=sci-libs/proj-4.9.0:=
74 + >=sci-libs/gdal-1.10.0:=
75 + address-standardizer? ( dev-libs/libpcre )
76 + gtk? ( x11-libs/gtk+:2 )
77 +"
78 +DEPEND="${RDEPEND}
79 + virtual/pkgconfig
80 + doc? (
81 + app-text/docbook-xsl-stylesheets
82 + app-text/docbook-xml-dtd:4.5
83 + dev-libs/libxslt
84 + virtual/imagemagick-tools[png]
85 + )
86 +"
87 +
88 +PATCHES=(
89 + "${FILESDIR}/${PN}-2.2.0-arflags.patch"
90 + "${FILESDIR}/${PN}-3.0.3-avoid-calling-ar-directly.patch"
91 + "${FILESDIR}/${PN}-3.0.3-detect-only-stdc.patch"
92 + "${FILESDIR}/${PN}-3.0.3-try-other-cpp-names.patch"
93 +)
94 +
95 +src_prepare() {
96 + default
97 +
98 + if [[ ${PV} = *9999* ]] ; then
99 + source "${S}"/Version.config
100 + PGIS="${POSTGIS_MAJOR_VERSION}.${POSTGIS_MINOR_VERSION}"
101 + fi
102 +
103 + # These modules are built using the same *FLAGS that were used to build
104 + # dev-db/postgresql. The right thing to do is to ignore the current
105 + # *FLAGS settings.
106 + QA_FLAGS_IGNORED="usr/lib(64)?/(rt)?postgis-${PGIS}\.so"
107 +
108 + # bug #775968
109 + touch build-aux/ar-lib || die
110 +
111 + local AT_M4DIR="macros"
112 + eautoreconf
113 +
114 + postgres-multi_src_prepare
115 +}
116 +
117 +src_configure() {
118 + export CPP=$(tc-getCPP)
119 +
120 + local myeconfargs=(
121 + $(use_with address-standardizer)
122 + $(use_with gtk gui)
123 + $(use_with topology)
124 + )
125 + postgres-multi_foreach econf "${myeconfargs[@]}"
126 +}
127 +
128 +src_compile() {
129 + postgres-multi_foreach emake
130 + postgres-multi_foreach emake -C topology
131 +
132 + if use doc ; then
133 + postgres-multi_foreach emake comments
134 + postgres-multi_foreach emake cheatsheets
135 + postgres-multi_forbest emake -C doc html
136 + fi
137 +}
138 +
139 +src_install() {
140 + postgres-multi_foreach emake DESTDIR="${D}" install
141 + postgres-multi_foreach emake -C topology DESTDIR="${D}" install
142 + postgres-multi_forbest dobin ./utils/postgis_restore.pl
143 +
144 + dodoc CREDITS TODO loader/README.* doc/*txt
145 +
146 + docinto topology
147 + dodoc topology/{TODO,README}
148 +
149 + if use doc ; then
150 + postgres-multi_foreach emake DESTDIR="${D}" comments-install
151 +
152 + docinto html
153 + postgres-multi_forbest dodoc doc/html/{postgis.html,style.css}
154 +
155 + docinto html/images
156 + postgres-multi_forbest dodoc doc/html/images/*
157 + fi
158 +
159 + use static-libs || find "${ED}" -name '*.a' -delete
160 +}
161 +
162 +pkg_postinst() {
163 + ebegin "Refreshing PostgreSQL symlinks"
164 + postgresql-config update
165 + eend $?
166 +
167 + local base_uri="https://postgis.net/docs/manual-"
168 + if [[ ${PV} = *9999* ]] ; then
169 + base_uri+="dev"
170 + else
171 + base_uri+="${PGIS}"
172 + fi
173 +
174 + elog "To finish installing PostGIS, follow the directions detailed at:"
175 + elog "${base_uri}/postgis_installation.html#create_new_db_extensions"
176 +}