Gentoo Archives: gentoo-commits

From: "Aaron W. Swenson" <titanofold@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/postgis/
Date: Sat, 01 Dec 2018 13:53:49
Message-Id: 1543672405.6a360dbeb8bc89bfa0530eb73da6753ab8cf98f9.titanofold@gentoo
1 commit: 6a360dbeb8bc89bfa0530eb73da6753ab8cf98f9
2 Author: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 1 13:52:56 2018 +0000
4 Commit: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 1 13:53:25 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a360dbe
7
8 dev-db/postgis: Drop MAKEOPTS override
9
10 Parallel compilation errors resolved upstream.
11
12 Closes: https://bugs.gentoo.org/672106
13 Package-Manager: Portage-2.3.51, Repoman-2.3.11
14 Signed-off-by: Aaron W. Swenson <titanofold <AT> gentoo.org>
15
16 dev-db/postgis/postgis-2.5.1-r1.ebuild | 123 +++++++++++++++++++++++++++++++++
17 1 file changed, 123 insertions(+)
18
19 diff --git a/dev-db/postgis/postgis-2.5.1-r1.ebuild b/dev-db/postgis/postgis-2.5.1-r1.ebuild
20 new file mode 100644
21 index 00000000000..5d81ec77f46
22 --- /dev/null
23 +++ b/dev-db/postgis/postgis-2.5.1-r1.ebuild
24 @@ -0,0 +1,123 @@
25 +# Copyright 1999-2018 Gentoo Authors
26 +# Distributed under the terms of the GNU General Public License v2
27 +
28 +EAPI="6"
29 +
30 +POSTGRES_COMPAT=( 9.{3..6} {10..11} )
31 +POSTGRES_USEDEP="server"
32 +
33 +inherit autotools eutils postgres-multi versionator
34 +
35 +MY_PV=$(replace_version_separator 3 '')
36 +MY_P="${PN}-${MY_PV}"
37 +S="${WORKDIR}/${MY_P}"
38 +
39 +DESCRIPTION="Geographic Objects for PostgreSQL"
40 +HOMEPAGE="http://postgis.net"
41 +SRC_URI="http://download.osgeo.org/postgis/source/${MY_P}.tar.gz"
42 +LICENSE="GPL-2"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
45 +IUSE="address-standardizer doc gtk static-libs mapbox test topology"
46 +
47 +RDEPEND="
48 + ${POSTGRES_DEP}
49 + dev-libs/json-c:=
50 + dev-libs/libxml2:2
51 + >=sci-libs/geos-3.5.0
52 + >=sci-libs/proj-4.6.0
53 + >=sci-libs/gdal-1.10.0
54 + address-standardizer? ( dev-libs/libpcre )
55 + gtk? ( x11-libs/gtk+:2 )
56 + mapbox? ( dev-libs/protobuf )
57 +"
58 +
59 +DEPEND="${RDEPEND}
60 + doc? (
61 + app-text/docbook-xsl-stylesheets
62 + app-text/docbook-xml-dtd:4.5
63 + dev-libs/libxslt
64 + || (
65 + media-gfx/imagemagick[png]
66 + media-gfx/graphicsmagick[imagemagick,png]
67 + )
68 + )
69 + virtual/pkgconfig
70 + test? ( dev-util/cunit )
71 +"
72 +
73 +PGIS="$(get_version_component_range 1-2)"
74 +
75 +REQUIRED_USE="test? ( doc ) ${POSTGRES_REQ_USE}"
76 +
77 +# Needs a running psql instance, doesn't work out of the box
78 +RESTRICT="test"
79 +
80 +# These modules are built using the same *FLAGS that were used to build
81 +# dev-db/postgresql. The right thing to do is to ignore the current
82 +# *FLAGS settings.
83 +QA_FLAGS_IGNORED="usr/lib(64)?/(rt)?postgis-${PGIS}\.so"
84 +
85 +src_prepare() {
86 + eapply "${FILESDIR}/${PN}-2.2.0-arflags.patch"
87 +
88 + local AT_M4DIR="macros"
89 + eautoreconf
90 +
91 + postgres-multi_src_prepare
92 +}
93 +
94 +src_configure() {
95 + local myargs=""
96 +
97 + use gtk && myargs+=" --with-gui"
98 +
99 + use address-standardizer || myargs+=" --without-address-standardizer"
100 + use mapbox || myargs+=" --without-protobuf"
101 + use topology || myargs+=" --without-topology"
102 +
103 + postgres-multi_foreach econf ${myargs}
104 +}
105 +
106 +src_compile() {
107 + postgres-multi_foreach emake
108 + postgres-multi_foreach emake -C topology
109 +
110 + if use doc ; then
111 + postgres-multi_foreach emake comments
112 + postgres-multi_foreach emake cheatsheets
113 + postgres-multi_forbest emake -C doc html
114 + fi
115 +}
116 +
117 +src_install() {
118 + postgres-multi_foreach emake DESTDIR="${D}" install
119 + postgres-multi_foreach emake -C topology DESTDIR="${D}" install
120 + postgres-multi_forbest dobin ./utils/postgis_restore.pl
121 +
122 + dodoc CREDITS TODO loader/README.* doc/*txt
123 +
124 + docinto topology
125 + dodoc topology/{TODO,README}
126 +
127 + if use doc ; then
128 + postgres-multi_foreach emake DESTDIR="${D}" comments-install
129 +
130 + docinto html
131 + postgres-multi_forbest dodoc doc/html/{postgis.html,style.css}
132 +
133 + docinto html/images
134 + postgres-multi_forbest dodoc doc/html/images/*
135 + fi
136 +
137 + use static-libs || find "${ED}" -name '*.a' -delete
138 +}
139 +
140 +pkg_postinst() {
141 + ebegin "Refreshing PostgreSQL symlinks"
142 + postgresql-config update
143 + eend $?
144 +
145 + elog "To finish installing PostGIS, follow the directions detailed at:"
146 + elog "http://postgis.net/docs/manual-${PGIS}/postgis_installation.html#create_new_db_extensions"
147 +}