From 861a4997194efeb0f58cdc33c8f1e1e605a7942f Mon Sep 17 00:00:00 2001 From: Giancarlo Dessi Date: Thu, 18 Jan 2024 07:45:21 +0700 Subject: [PATCH] gis/pgrouting: Updated for version 3.6.1. Signed-off-by: Willy Sudiarto Raharjo --- gis/pgrouting/pgrouting.SlackBuild | 17 ++++++++++++----- gis/pgrouting/pgrouting.info | 12 ++++++------ 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/gis/pgrouting/pgrouting.SlackBuild b/gis/pgrouting/pgrouting.SlackBuild index 1d9a256a77..dc5af3a9ac 100644 --- a/gis/pgrouting/pgrouting.SlackBuild +++ b/gis/pgrouting/pgrouting.SlackBuild @@ -2,6 +2,7 @@ # SlackBuild script for pgRouting +# Copyright 2024 Giancarlo Dessi, Cagliari, IT # Copyright 2013-2021 Benjamin Trigona-Harany # All rights reserved. # @@ -27,7 +28,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=pgrouting -VERSION=${VERSION:-3.1.3} +VERSION=${VERSION:-3.6.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -40,9 +41,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -81,6 +79,14 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# Prevent cmake warnings in current +if [ -d /usr/share/cmake-3.28 ]; then + CMAKE_POLICY="-DCMAKE_POLICY_DEFAULT_CMP0148=OLD " + sed -i ./CMakeLists.txt -e "s/VERSION 3.2 FATAL_ERROR/VERSION 3.5 FATAL_ERROR/g" +else + CMAKE_POLICY="" +fi + mkdir -p build cd build cmake \ @@ -88,7 +94,8 @@ cd build -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DWITH_DOC=${WITH_DOC:-OFF} \ - .. + $CMAKE_POLICY \ + -DCMAKE_BUILD_TYPE=Release .. make all doc make install DESTDIR=$PKG diff --git a/gis/pgrouting/pgrouting.info b/gis/pgrouting/pgrouting.info index 42e7d07326..7ceff5f19d 100644 --- a/gis/pgrouting/pgrouting.info +++ b/gis/pgrouting/pgrouting.info @@ -1,10 +1,10 @@ PRGNAM="pgrouting" -VERSION="3.1.3" +VERSION="3.6.1" HOMEPAGE="https://pgrouting.org" -DOWNLOAD="https://github.com/pgRouting/pgrouting/archive/v3.1.3/pgrouting-3.1.3.tar.gz" -MD5SUM="fd4a7d8b098ed57c4afb630e4e7d1b13" +DOWNLOAD="https://github.com/pgRouting/pgrouting/archive/v3.6.1/pgrouting-3.6.1.tar.gz" +MD5SUM="763ed039292aaab086b299645f4df590" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="CGAL postgis" -MAINTAINER="Benjamin Trigona-Harany" -EMAIL="slackbuilds@jaxartes.net" +REQUIRES="postgis" +MAINTAINER="Giancarlo Dessi" +EMAIL="slack@giand.it"