Gentoo Archives: gentoo-commits

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