aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArTourter <artourter@gmail.com>2022-07-04 10:51:33 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-07-09 10:06:13 +0700
commitbec7b96fc437c76518e879559bfd9f0293885a88 (patch)
tree2572b2d328d21603513b79f8cf22dbfef13a0f42
parent9696efec5641ea497509193f7ab394177f2f5d42 (diff)
gis/geos: Updated for version 3.11.0.
- disable build testing by default - add flag to build testing components and run make test - new project site URL - use download url from new site rather than github. Signed-off-by: ArTourter <artourter@gmail.com> Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--gis/geos/README4
-rw-r--r--gis/geos/geos.SlackBuild12
-rw-r--r--gis/geos/geos.info8
3 files changed, 17 insertions, 7 deletions
diff --git a/gis/geos/README b/gis/geos/README
index b6cf0b40faed..857f61a8f572 100644
--- a/gis/geos/README
+++ b/gis/geos/README
@@ -3,3 +3,7 @@ Suite (JTS). As such, it aims to contain the complete functionality
of JTS in C++. This includes all the OpenGIS "Simple Features for SQL"
spatial predicate functions and spatial operators, as well as specific
JTS enhanced topology functions.
+
+By default, the script does not build nor run the tests. You can use the
+option TESTBUILD=YES to build and run the tests before the make install
+part.
diff --git a/gis/geos/geos.SlackBuild b/gis/geos/geos.SlackBuild
index ffc5bad36359..02cf55b0f771 100644
--- a/gis/geos/geos.SlackBuild
+++ b/gis/geos/geos.SlackBuild
@@ -26,7 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=geos
-VERSION=${VERSION:-3.10.3}
+VERSION=${VERSION:-3.11.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -67,11 +67,15 @@ fi
set -e
+if [[ ${TESTBUILD:='NO'} == 'NO' ]]; then
+ TESTBUILDFLAGS='-DBUILD_TESTING=OFF'
+fi
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -88,9 +92,11 @@ mkdir -p build
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_MANDIR=/usr/man \
+ $TESTBUILDFLAGS \
-DCMAKE_BUILD_TYPE=Release \
..
make
+ [[ $TESTBUILD == "YES" ]] && make test
make install DESTDIR=$PKG
)
@@ -99,7 +105,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- AUTHORS COPYING DEVELOPER-NOTES.md HOWTO_RELEASE NEWS README.md \
+ AUTHORS CODE_OF_CONDUCT.md COPYING DEVELOPER-NOTES.md NEWS.md README.md release.md \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
diff --git a/gis/geos/geos.info b/gis/geos/geos.info
index 54e2b85b2274..3093640d76ac 100644
--- a/gis/geos/geos.info
+++ b/gis/geos/geos.info
@@ -1,8 +1,8 @@
PRGNAM="geos"
-VERSION="3.10.3"
-HOMEPAGE="https://trac.osgeo.org/geos/"
-DOWNLOAD="https://github.com/libgeos/geos/archive/3.10.3/geos-3.10.3.tar.gz"
-MD5SUM="301f073f51ad44d383c388db31914c07"
+VERSION="3.11.0"
+HOMEPAGE="https://libgeos.org/"
+DOWNLOAD="https://download.osgeo.org/geos/geos-3.11.0.tar.bz2"
+MD5SUM="3978c4e9eb880083ad69f5384d043c72"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""