forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-db/postgis: add 3.0.8, 3.1.8, 3.2.4, 3.3.2
Signed-off-by: Patrick Lauer <[email protected]>
- Loading branch information
1 parent
e02666b
commit fd387e1
Showing
5 changed files
with
573 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
DIST postgis-3.0.3.tar.gz 16871696 BLAKE2B 891f814271de9193cd17013d6d971a752d2e984cb0f68b05510450adef97fc96827e3d1a1c7e4fa4cf79a5d15eb3f74b32e6e9a8db1947f7bad7c2b23656bc8f SHA512 478f0971e18c2a1bd651c9bf7b995236aad32fda037762505cf8ac9e67a4e40917436248c1e62827a1a6da96c15c4ae8d0b606d548fa080cdff453642b897115 | ||
DIST postgis-3.0.5.tar.gz 16887694 BLAKE2B dba646308f93730399f9976547bbe1bb872eb02b2004f730541575ae26f2f8e28b8180b47ddcd62aa5033a0dd864b051763135289fd3ba4486bf47fbb11ee967 SHA512 85eeb8e1258ce19e96c695272deffd22ae4bfad4f550ec42aa0f2b39c35bca7eb03c7332cffc7e9b14b9fd5629487ad9593e34077fe1de3ae9d5f8970730d5eb | ||
DIST postgis-3.0.7.tar.gz 16876819 BLAKE2B 81f521cfc0b4f8af59c098f3aad1d5e9bf6692de4c5b6195e69f7610276822e39f8cf476d97744ec92acb733ba372e772af6aa7aa3fba868094e9322a83db256 SHA512 53978967d2f1a3f82e440040897eab8e8e5cf132e2e2ac7af82bbcfb893960bdd7c5b8583f167c0fe41820c517acd378344668a1c18a07077fd46526dfacb8c2 | ||
DIST postgis-3.0.8.tar.gz 16872652 BLAKE2B 19c008215d32237080b7b0067cf107c6434fc7f511b531ea98317b6edd1a1abb4af95708f3b43f47f1a9e008176e3fddcac4361deac5e3d9e8d215c5581d4924 SHA512 5c93e90b182c0d138760780bd8e07bcbd0326496d68b25af1cb3c05d5afd63fa0371eef5d1c2baebb5ff95e04297ee3b2e0bf7afffcdbc2064af5900e8f896ac | ||
DIST postgis-3.1.3.tar.gz 17273487 BLAKE2B 603be66476037fca5e75b00079a26b4beaa50f0af0626f89660f17da398576d929574cb363c4177877d9c8db5459f7eac964b85796cd93b0d0c6ff2462d7ad3f SHA512 525c982de6b5888d1f4a4f6d2cca5dfa945d8899d8038b1d62ce222e0149c4ab26a2a3602bb8c85e89ce22b3d5b20d278fc4f841144f4b0d19e6de4f48d819ad | ||
DIST postgis-3.1.5.tar.gz 17282333 BLAKE2B 3abe3b24ad0b8a9621c206f881a920ec4e37aa75ccc68ab8e4a43a372bb9047613c81d375051a948999068595de04f14bf4f0b7921b3f3894ff77a9d8c1c3063 SHA512 640196f4c983aeb1d661d98e099f4e2a47f32b15bfde21479b8fdb2aa5d12b4c564b0962973ec1a8dd64fbfac7cd7bc94d84376935294f23ba31d7501fe64a06 | ||
DIST postgis-3.1.7.tar.gz 17286464 BLAKE2B b4611179f3e0dd9bd5f433773c39665698b38977d15baa4bbde7a6a4df96d37b72d13bfa1a62b639187c57a658c7b31d48a1b5dccfd4b08650749dfc832213d7 SHA512 2ae30e09cf1408e63fd5db24ff0360f0acb2277e9ad89486cb4e611bbb7e3912ae89235c4a045a6ddb3af55143693d13ed943db16e42c2ed5acb633bc163ee14 | ||
DIST postgis-3.1.8.tar.gz 17285335 BLAKE2B 212a74866de5b8788b91cfa6d8b3a064df2933c76c8930e3c7bba310b36b4e7249de2d7481e852679da59bb9bdb3315752b62ad70176601b7110401f368200bc SHA512 c28befe1f77e7f36d63b39d027024d3f8abe8496c64c4b3c05eb7c32c3a885e824cabdda5bf0f9f320b9fe15bb97f21d5dfb65a193c64b1e27be95badefe3b37 | ||
DIST postgis-3.2.0.tar.gz 16884722 BLAKE2B 118ae754199521e46508b404275bfe323465e5543ad8351d3dec3582800f6c475c30333b35ad48aac373f9d8e3875790c58858f638ee4ecb7465764703d07d40 SHA512 b49b2fbb88ec07981c0fd05400ad807e85553164023a4b47326c21f48b4e07827a183676c497ad6823dc3a6b97518e1d40906826b8a91739c96966d62858b2b5 | ||
DIST postgis-3.2.1.tar.gz 16883824 BLAKE2B 9c49ad518fb968dc4787bedf6480af29c3e70f986df8233ef034f117b8a8920ff6e39dab57813390b813a3d856476634b18e6ce324795839d019a11559155ff5 SHA512 e0ea3d2304e71c98dd045a8031946235d9c26a1310e1ffa556db10dfd18378957ee3d88608fba7ff482835d8c8b41d7f7bddaff1279ce0b50cd7634237465b31 | ||
DIST postgis-3.2.3.tar.gz 16882282 BLAKE2B 1f482f4411f3989bb7e389ae19b7c8e8d9f8b2c1689979d919d20feaa5c0dc46c009034fd06e89e2198e0f2234aaf2970f6f87303bde34dafbd78f818a880288 SHA512 f58b30af6d107578cb66de55bbeedc9ba503f85e5ead3f104e25a9d95a410e8c1a857936d805355a22185d5658e5908605fa9b317ed58497c29d752b70b4483e | ||
DIST postgis-3.2.4.tar.gz 16885605 BLAKE2B 341bf09bf5adffc6c48b0fdc6930bac25e43184357895bb90adf000f4fdf52e5c198a530722d46d8b3207e7faffe840de53a9494f3119bb56c3a8e11a4d693f0 SHA512 46bb88ebcf7697e42194e55ef1c323a94222e2870a98aa058d62e1d253c8ad15b14da268eece43b0cdb71d8cdbd2ff393ca451c45998245aaf1726bdffcc563f | ||
DIST postgis-3.3.0.tar.gz 17718971 BLAKE2B f4fbd58ea4a815ea27d4611a8feb86346a695da7f443f16da330c780b0e0a36150d7f455c33ce0a5c6cda6931c8ed75f26eefe1d927aecddcf2d656fd6770194 SHA512 38da1c3a43eeeaf0eaa526db1036c0861c0cc3a5586b7d942d3d50296e85904aec80eb7f3689aa1ef854fbb979aafe8237cc4c0a71024b05f5cd7f5ea20722e3 | ||
DIST postgis-3.3.1.tar.gz 17750909 BLAKE2B b24bbddae8ecad21525d3542cce409803b5e4f33e18d17d1e5b6cd04d99b64340720d9e60602af2cce6f6c9636c9943d6a14d5a2e34b0d5c32f6e3d87e6590f8 SHA512 1d4cfff6e34bc6f790f1ea209ba4d7b2a7633bdc0a1d57bb7c8ef9850b4f08c2926116d2fdfe97379c7431c0ec1559002166cebc0074041e9ae1fad03301bdd8 | ||
DIST postgis-3.3.2.tar.gz 17793976 BLAKE2B 40dc7636f04e0d5cfd734b175da1ce49c32e4b8f5750059e79e03a7395fb8b9241c1f479815794b46dee81704d7c392fe7693c9f0180323d1ca21812c37d36b5 SHA512 4dd129057598b032ba322c42888bb8ce14b9423bd450ef7a42fa22162f6b48e34b226f38480aa67fe2da85be2529b0822655855f9846b657bdd32f50256f4305 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,144 @@ | ||
# Copyright 1999-2022 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=7 | ||
|
||
POSTGRES_COMPAT=( 9.6 {10..13} ) | ||
POSTGRES_USEDEP="server" | ||
inherit autotools postgres-multi | ||
|
||
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 test topology" | ||
|
||
REQUIRED_USE="test? ( doc ) ${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.6.0 | ||
sci-libs/proj:= | ||
>=sci-libs/gdal-1.10.0:= | ||
address-standardizer? ( dev-libs/libpcre ) | ||
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] | ||
) | ||
test? ( dev-util/cunit ) | ||
" | ||
|
||
PATCHES=( | ||
"${FILESDIR}/${PN}-2.2.0-arflags.patch" | ||
"${FILESDIR}/${PN}-3.0.3-avoid-calling-ar-directly.patch" | ||
"${FILESDIR}/${PN}-3.0.3-detect-only-stdc.patch" | ||
"${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 | ||
# bug #775968 | ||
config_rpath_update build-aux/config.rpath | ||
|
||
local AT_M4DIR="macros" | ||
eautoreconf | ||
|
||
postgres-multi_src_prepare | ||
} | ||
|
||
src_configure() { | ||
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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
# Copyright 1999-2022 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=7 | ||
|
||
POSTGRES_COMPAT=( 9.6 {10..14} ) | ||
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/libpcre ) | ||
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}-2.2.0-arflags.patch" | ||
"${FILESDIR}/${PN}-3.0.3-avoid-calling-ar-directly.patch" | ||
"${FILESDIR}/${PN}-3.0.3-detect-only-stdc.patch" | ||
"${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 | ||
|
||
local AT_M4DIR="macros" | ||
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" | ||
} |
Oops, something went wrong.