From b833cf00708cd4f3f40c43c7b87214b06daa04a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= Date: Thu, 1 Jul 2021 23:21:49 +0200 Subject: [PATCH] postgis: update to 3.1.3, enable unit tests --- srcpkgs/postgis/template | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/srcpkgs/postgis/template b/srcpkgs/postgis/template index e73a8e6d351..69cc6f504e5 100644 --- a/srcpkgs/postgis/template +++ b/srcpkgs/postgis/template @@ -1,6 +1,6 @@ # Template file for 'postgis' pkgname=postgis -version=3.1.2 +version=3.1.3 revision=1 build_style=gnu-configure configure_args="--with-projdir=${XBPS_CROSS_BASE}/usr @@ -12,19 +12,21 @@ hostmakedepends="automake libtool perl which pkg-config geos libgdal-tools postgresql9.6-libs-devel" makedepends="geos-devel libgdal-devel libpqxx-devel libxml2-devel postgresql9.6-libs-devel proj-devel protobuf-c-devel pcre-devel json-c-devel" -checkdepends="libxslt" +checkdepends="libxslt CUnit-devel" short_desc="Spatial database extender for PostgreSQL" maintainer="Piotr Wójcik " license="GPL-2.0-or-later" homepage="https://postgis.net/" changelog="https://git.osgeo.org/gitea/postgis/postgis/raw/tag/${version}/NEWS" distfiles="https://download.osgeo.org/postgis/source/postgis-${version}.tar.gz" -checksum=2cdd3760176926704b4eb25ff3357543c9637dee74425a49082906857c7e0732 +checksum=71e929553bb73a0413206a0f92df5180ac6579c500d8ddce3a03559f1b349fcb nocross="FIXME: Cannot run test program to determine PROJ version" -# unit tests require unpackaged cunit -# regression tests require running postgresql -make_check=no pre_configure() { ./autogen.sh } + +pre_check() { + # regression tests require running postgresql + vsed -i regress/run_test.pl -e '/\/usr\/bin\/env/ a exit;' +}