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