commit:     e3f3b9c4dae6805f5e47bb043c4262145439554a
Author:     Patrick Lauer <patrick <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 28 09:39:15 2024 +0000
Commit:     Patrick Lauer <patrick <AT> gentoo <DOT> org>
CommitDate: Sat Dec 28 09:39:59 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3f3b9c4

dev-db/postgis: add 3.3.8, 3.4.4, 3.5.1

Signed-off-by: Patrick Lauer <patrick <AT> gentoo.org>

 dev-db/postgis/Manifest             |   3 +
 dev-db/postgis/postgis-3.3.8.ebuild | 142 ++++++++++++++++++++++++++++++++++++
 dev-db/postgis/postgis-3.4.4.ebuild | 140 +++++++++++++++++++++++++++++++++++
 dev-db/postgis/postgis-3.5.1.ebuild | 137 ++++++++++++++++++++++++++++++++++
 4 files changed, 422 insertions(+)

diff --git a/dev-db/postgis/Manifest b/dev-db/postgis/Manifest
index 10f10d110528..5aed08024cec 100644
--- a/dev-db/postgis/Manifest
+++ b/dev-db/postgis/Manifest
@@ -1,3 +1,6 @@
 DIST postgis-3.3.7.tar.gz 17782849 BLAKE2B 
8f9b1f27c33727a9a24a53972dee67057c4230d0f1f01af352ff6b740d880b9acb7fccbacb5c2cc614c58adadace2cd6be9a1f52a7ce12cc20dbc2a99aa808d7
 SHA512 
007f0f6fc9b1256f3e7c4536d5d37c0b715fe285613804805567a4000d1ec9a132650b44f585ed184f5ad5209459e11a9464c5caf3ca285b2b230cf89ccf7709
+DIST postgis-3.3.8.tar.gz 17783409 BLAKE2B 
8321f6c7e972709fb03946ab236a7e10a6ab00c7da6cb06f3efa8b63333214dd0698c02d1c83dae2d5f72fd9d7256269e8de285846bdd46b6908f79f5c0293a4
 SHA512 
c73953b4cb62900c5f7ca2143bc55865e05f55f26b57f0a601ca6d624d580c58bcddd2d6744164c50f8cb3308377ae9d80cd04b1a19fec9472c795e7252495cc
 DIST postgis-3.4.3.tar.gz 14957514 BLAKE2B 
2c472a66d6063c70a2a5b7d42953233c9d24ee4f283e5837f74b231e0c034ba395e6f84dda9b14a46766ef6f1196c39aa7795d99b50ada106a66b2569ffdd6b4
 SHA512 
92da910fa87a618e49ab16bcb3d9b4403dc4e08bdfd599631f5b7c7a4955258a1a9e4efb1d982c30ef3a395631f52d055f321a1c17b1b7fe22403580671a2dab
+DIST postgis-3.4.4.tar.gz 14960460 BLAKE2B 
bf0a8f905dfde7023f48340dfc812ffd5651d9d909a684d445ed6401db7afa18a13045a3e8341946b8fc2ee302fe4b60afb52092d653705995346279cafc32cc
 SHA512 
e561fba5d4eb3a8fb96d9e517a04de007aa1780990d1ba78a2ed25ea27245f46e60257280b3d0fb1ba4164beea798db8858c24193bb2925619cf5f024f8043dc
 DIST postgis-3.5.0.tar.gz 15031829 BLAKE2B 
a641eaa7b0407108e332bf6f244fef0d22d21ed34c16c2f3cb718f49acf9a0bb3b1bf8b1ec3d7eb4f731beeb652f37f666ff4b8d44c5a66db7da4a9a555caa38
 SHA512 
baf81b9133db34c87ecb5e019497df89fba9faf293ae2f2e4fa5578dbe608ff5310b5ca718a7bf94e76af51bf7b8ec4b1f69fad91412017d70cdcd70492ae9e5
+DIST postgis-3.5.1.tar.gz 15044755 BLAKE2B 
98c56eaab63f000bc74500c36b923196d54183237b726117add1f13f0aec37926506bcdc5233d87427d948a3edea081e84327ad9eeec3e6b87d5b5bbb20359b2
 SHA512 
72d60b9cbb9652555f70e86b18d32a578799f4dff8749bfc91f91c2d32142b7c85bf2d50a1ea5effbc25f84b1cbdcaf4586400af89b5ab37e5c03a87e0d20a6c

diff --git a/dev-db/postgis/postgis-3.3.8.ebuild 
b/dev-db/postgis/postgis-3.3.8.ebuild
new file mode 100644
index 000000000000..c5a84dafd7f1
--- /dev/null
+++ b/dev-db/postgis/postgis-3.3.8.ebuild
@@ -0,0 +1,142 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+POSTGRES_COMPAT=( {11..17} )
+POSTGRES_USEDEP="server"
+inherit autotools postgres-multi toolchain-funcs
+
+MY_P="${PN}-$(ver_rs 3 '')"
+
+if [[ ${PV} = *9999* ]] ; then
+       inherit git-r3
+       EGIT_REPO_URI="https://git.osgeo.org/gitea/postgis/postgis.git";
+else
+       PGIS="$(ver_cut 1-2)"
+       SRC_URI="https://download.osgeo.org/postgis/source/${MY_P}.tar.gz";
+       KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+fi
+
+DESCRIPTION="Geographic Objects for PostgreSQL"
+HOMEPAGE="https://postgis.net";
+
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="address-standardizer doc gtk static-libs topology"
+
+REQUIRED_USE="${POSTGRES_REQ_USE}"
+
+# Needs a running psql instance, doesn't work out of the box
+RESTRICT="test"
+
+RDEPEND="${POSTGRES_DEP}
+       dev-libs/json-c:=
+       dev-libs/libxml2:2
+       dev-libs/protobuf-c:=
+       >=sci-libs/geos-3.9.0
+       >=sci-libs/proj-4.9.0:=
+       >=sci-libs/gdal-1.10.0:=
+       address-standardizer? ( dev-libs/libpcre2 )
+       gtk? ( x11-libs/gtk+:2 )
+"
+DEPEND="${RDEPEND}
+       virtual/pkgconfig
+       doc? (
+               app-text/docbook-xsl-stylesheets
+               app-text/docbook-xml-dtd:4.5
+               dev-libs/libxslt
+               virtual/imagemagick-tools[png]
+       )
+"
+
+PATCHES=(
+       "${FILESDIR}/${PN}-3.0.3-try-other-cpp-names.patch"
+)
+
+src_prepare() {
+       default
+
+       if [[ ${PV} = *9999* ]] ; then
+               source "${S}"/Version.config
+               PGIS="${POSTGIS_MAJOR_VERSION}.${POSTGIS_MINOR_VERSION}"
+       fi
+
+       # These modules are built using the same *FLAGS that were used to build
+       # dev-db/postgresql. The right thing to do is to ignore the current
+       # *FLAGS settings.
+       QA_FLAGS_IGNORED="usr/lib(64)?/(rt)?postgis-${PGIS}\.so"
+
+       # bug #775968
+       touch build-aux/ar-lib || die
+
+       # eautoheader MUST be disabled as upstream manually modify its output
+       # rather than using it directly. The version at runtime at least is
+       # broken otherwise. See bug #912275.
+       AT_M4DIR="macros" AT_NOEAUTOHEADER="yes" eautoreconf
+
+       postgres-multi_src_prepare
+}
+
+src_configure() {
+       export CPP=$(tc-getCPP)
+
+       local myeconfargs=(
+               $(use_with address-standardizer)
+               $(use_with gtk gui)
+               $(use_with topology)
+       )
+       postgres-multi_foreach econf "${myeconfargs[@]}"
+}
+
+src_compile() {
+       postgres-multi_foreach emake
+       postgres-multi_foreach emake -C topology
+
+       if use doc ; then
+               postgres-multi_foreach emake comments
+               postgres-multi_foreach emake cheatsheets
+               postgres-multi_forbest emake -C doc html
+       fi
+}
+
+src_install() {
+       postgres-multi_foreach emake DESTDIR="${D}" install
+       postgres-multi_foreach emake -C topology DESTDIR="${D}" install
+       postgres-multi_forbest dobin ./utils/postgis_restore.pl
+
+       dodoc CREDITS TODO loader/README.* doc/*txt
+
+       docinto topology
+       dodoc topology/{TODO,README}
+
+       if use doc ; then
+               postgres-multi_foreach emake DESTDIR="${D}" comments-install
+
+               docinto html
+               postgres-multi_forbest dodoc doc/html/{postgis.html,style.css}
+
+               docinto html/images
+               postgres-multi_forbest dodoc doc/html/images/*
+       fi
+
+       use static-libs || find "${ED}" -name '*.a' -delete
+}
+
+pkg_postinst() {
+       ebegin "Refreshing PostgreSQL symlinks"
+       postgresql-config update
+       eend $?
+
+       local base_uri="https://postgis.net/docs/manual-";
+       if [[ ${PV} = *9999* ]] ; then
+               base_uri+="dev"
+       else
+               base_uri+="${PGIS}"
+       fi
+
+       elog "To finish installing PostGIS, follow the directions detailed at:"
+       elog "${base_uri}/postgis_installation.html#create_new_db_extensions"
+}

diff --git a/dev-db/postgis/postgis-3.4.4.ebuild 
b/dev-db/postgis/postgis-3.4.4.ebuild
new file mode 100644
index 000000000000..5f181759b13e
--- /dev/null
+++ b/dev-db/postgis/postgis-3.4.4.ebuild
@@ -0,0 +1,140 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+POSTGRES_COMPAT=( {12..17} )
+POSTGRES_USEDEP="server"
+inherit autotools postgres-multi toolchain-funcs
+
+MY_P="${PN}-$(ver_rs 3 '')"
+
+if [[ ${PV} = *9999* ]] ; then
+       inherit git-r3
+       EGIT_REPO_URI="https://git.osgeo.org/gitea/postgis/postgis.git";
+else
+       PGIS="$(ver_cut 1-2)"
+       SRC_URI="https://download.osgeo.org/postgis/source/${MY_P}.tar.gz";
+       KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+fi
+
+DESCRIPTION="Geographic Objects for PostgreSQL"
+HOMEPAGE="https://postgis.net";
+
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="address-standardizer doc gtk static-libs topology"
+
+REQUIRED_USE="${POSTGRES_REQ_USE}"
+
+# Needs a running psql instance, doesn't work out of the box
+RESTRICT="test"
+
+RDEPEND="${POSTGRES_DEP}
+       dev-libs/json-c:=
+       dev-libs/libxml2:2
+       dev-libs/protobuf-c:=
+       >=sci-libs/geos-3.9.0
+       >=sci-libs/proj-6.1.0:=
+       >=sci-libs/gdal-1.10.0:=
+       address-standardizer? ( dev-libs/libpcre2 )
+       gtk? ( x11-libs/gtk+:2 )
+"
+DEPEND="${RDEPEND}
+       virtual/pkgconfig
+       doc? (
+               app-text/docbook-xsl-stylesheets
+               app-text/docbook-xml-dtd:4.5
+               dev-libs/libxslt
+               virtual/imagemagick-tools[png]
+       )
+"
+
+PATCHES=(
+       "${FILESDIR}/${PN}-3.0.3-try-other-cpp-names.patch"
+       "${FILESDIR}/${PN}-3.4.0-without-gui.patch"
+       # source: https://github.com/google/flatbuffers/pull/7897
+       #"${FILESDIR}/${PN}-3.3.2-flatbuffers-abseil-2023.patch" # bug 905378
+)
+
+src_prepare() {
+       default
+
+       if [[ ${PV} = *9999* ]] ; then
+               source "${S}"/Version.config
+               PGIS="${POSTGIS_MAJOR_VERSION}.${POSTGIS_MINOR_VERSION}"
+       fi
+
+       # These modules are built using the same *FLAGS that were used to build
+       # dev-db/postgresql. The right thing to do is to ignore the current
+       # *FLAGS settings.
+       QA_FLAGS_IGNORED="usr/lib(64)?/(rt)?postgis-${PGIS}\.so"
+
+       # bug #775968
+       touch build-aux/ar-lib || die
+
+       # eautoheader MUST be disabled as upstream manually modify its output
+       # rather than using it directly. The version at runtime at least is
+       # broken otherwise. See bug #912275.
+       AT_M4DIR="macros" AT_NOEAUTOHEADER="yes" eautoreconf
+
+       postgres-multi_src_prepare
+}
+
+src_configure() {
+       export CPP=$(tc-getCPP)
+
+       local myeconfargs=(
+               $(use_with address-standardizer)
+               $(use_with gtk gui)
+               $(use_with topology)
+       )
+       postgres-multi_foreach econf "${myeconfargs[@]}"
+}
+
+src_compile() {
+       postgres-multi_foreach emake
+       postgres-multi_foreach emake -C topology
+
+       if use doc ; then
+               postgres-multi_foreach emake comments
+               postgres-multi_forbest emake cheatsheets
+               postgres-multi_forbest emake -C doc html
+       fi
+}
+
+src_install() {
+       postgres-multi_foreach emake DESTDIR="${D}" install
+       postgres-multi_foreach emake -C topology DESTDIR="${D}" install
+       postgres-multi_forbest dobin ./utils/postgis_restore.pl
+
+       dodoc CREDITS TODO loader/README.* doc/*txt
+
+       docinto topology
+       dodoc topology/{TODO,README}
+
+       if use doc ; then
+               postgres-multi_foreach emake DESTDIR="${D}" comments-install
+               postgres-multi_forbest emake DESTDIR="${D}" -C doc 
cheatsheet-install html-install html-assets-install
+       fi
+
+       use static-libs || find "${ED}" -name '*.a' -delete
+}
+
+pkg_postinst() {
+       ebegin "Refreshing PostgreSQL symlinks"
+       postgresql-config update
+       eend $?
+
+       local base_uri="https://postgis.net/docs/manual-";
+       if [[ ${PV} = *9999* ]] ; then
+               base_uri+="dev"
+       else
+               base_uri+="${PGIS}"
+       fi
+
+       elog "To finish installing PostGIS, follow the directions detailed at:"
+       elog "${base_uri}/postgis_installation.html#create_new_db_extensions"
+}

diff --git a/dev-db/postgis/postgis-3.5.1.ebuild 
b/dev-db/postgis/postgis-3.5.1.ebuild
new file mode 100644
index 000000000000..384e437c41b1
--- /dev/null
+++ b/dev-db/postgis/postgis-3.5.1.ebuild
@@ -0,0 +1,137 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+POSTGRES_COMPAT=( {12..17} )
+POSTGRES_USEDEP="server"
+inherit autotools postgres-multi toolchain-funcs
+
+MY_P="${PN}-$(ver_rs 3 '')"
+
+if [[ ${PV} = *9999* ]] ; then
+       inherit git-r3
+       EGIT_REPO_URI="https://git.osgeo.org/gitea/postgis/postgis.git";
+else
+       PGIS="$(ver_cut 1-2)"
+       SRC_URI="https://download.osgeo.org/postgis/source/${MY_P}.tar.gz";
+       KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+fi
+
+DESCRIPTION="Geographic Objects for PostgreSQL"
+HOMEPAGE="https://postgis.net";
+
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="address-standardizer doc gtk static-libs topology"
+
+REQUIRED_USE="${POSTGRES_REQ_USE}"
+
+# Needs a running psql instance, doesn't work out of the box
+RESTRICT="test"
+
+RDEPEND="${POSTGRES_DEP}
+       dev-libs/json-c:=
+       dev-libs/libxml2:2
+       dev-libs/protobuf-c:=
+       >=sci-libs/geos-3.9.0
+       >=sci-libs/proj-6.1.0:=
+       >=sci-libs/gdal-1.10.0:=
+       address-standardizer? ( dev-libs/libpcre2 )
+       gtk? ( x11-libs/gtk+:2 )
+"
+DEPEND="${RDEPEND}
+       virtual/pkgconfig
+       doc? (
+               app-text/docbook-xsl-stylesheets
+               app-text/docbook-xml-dtd:4.5
+               dev-libs/libxslt
+               virtual/imagemagick-tools[png]
+       )
+"
+
+PATCHES=(
+       "${FILESDIR}/${PN}-3.0.3-try-other-cpp-names.patch"
+)
+
+src_prepare() {
+       default
+
+       if [[ ${PV} = *9999* ]] ; then
+               source "${S}"/Version.config
+               PGIS="${POSTGIS_MAJOR_VERSION}.${POSTGIS_MINOR_VERSION}"
+       fi
+
+       # These modules are built using the same *FLAGS that were used to build
+       # dev-db/postgresql. The right thing to do is to ignore the current
+       # *FLAGS settings.
+       QA_FLAGS_IGNORED="usr/lib(64)?/(rt)?postgis-${PGIS}\.so"
+
+       # bug #775968
+       touch build-aux/ar-lib || die
+
+       # eautoheader MUST be disabled as upstream manually modify its output
+       # rather than using it directly. The version at runtime at least is
+       # broken otherwise. See bug #912275.
+       AT_M4DIR="macros" AT_NOEAUTOHEADER="yes" eautoreconf
+
+       postgres-multi_src_prepare
+}
+
+src_configure() {
+       export CPP=$(tc-getCPP)
+
+       local myeconfargs=(
+               $(use_with address-standardizer)
+               $(use_with gtk gui)
+               $(use_with topology)
+       )
+       postgres-multi_foreach econf "${myeconfargs[@]}"
+}
+
+src_compile() {
+       postgres-multi_foreach emake
+       postgres-multi_foreach emake -C topology
+
+       if use doc ; then
+               postgres-multi_foreach emake comments
+               postgres-multi_forbest emake cheatsheets
+               postgres-multi_forbest emake -C doc html
+       fi
+}
+
+src_install() {
+       postgres-multi_foreach emake DESTDIR="${D}" install
+       postgres-multi_foreach emake -C topology DESTDIR="${D}" install
+       postgres-multi_forbest dobin ./utils/postgis_restore.pl
+
+       dodoc CREDITS TODO loader/README.* doc/*txt
+
+       docinto topology
+       dodoc topology/{TODO,README}
+
+       if use doc ; then
+               postgres-multi_foreach emake DESTDIR="${D}" comments-install
+               postgres-multi_forbest emake DESTDIR="${D}" -C doc 
cheatsheet-install html-install html-assets-install
+       fi
+
+       use static-libs || find "${ED}" -name '*.a' -delete
+}
+
+pkg_postinst() {
+       ebegin "Refreshing PostgreSQL symlinks"
+       postgresql-config update
+       eend $?
+
+       local base_uri="https://postgis.net/docs/manual-";
+       if [[ ${PV} = *9999* ]] ; then
+               base_uri+="dev"
+       else
+               base_uri+="${PGIS}"
+       fi
+
+       elog "To finish installing PostGIS, follow the directions detailed at:"
+       elog "${base_uri}/postgis_installation.html#create_new_db_extensions"
+}

Reply via email to