[Slackbuilds-users] [PATCH]

Benjamin Trigona-Harany bosth at alumni.sfu.ca
Tue Sep 11 15:49:53 UTC 2012


I am taking over maintenance of system/postgis.

Ben
-------------- next part --------------
>From f15df03abbb6fe9483948a3de2cbcc9dc2974172 Mon Sep 17 00:00:00 2001
From: Benjamin Trigona-Harany <bosth at alumni.sfu.ca>
Date: Tue, 11 Sep 2012 08:27:04 -0700
Subject: [PATCH] system/postgis: Update for version 2.0.1 and change
 maintainer.

---
 system/postgis/README             |  3 +++
 system/postgis/postgis.SlackBuild | 15 ++++++++++-----
 system/postgis/postgis.info       | 12 ++++++------
 3 files changed, 19 insertions(+), 11 deletions(-)
 mode change 100644 => 100755 system/postgis/postgis.SlackBuild

diff --git a/system/postgis/README b/system/postgis/README
index 1764f6f..8cc8fe8 100644
--- a/system/postgis/README
+++ b/system/postgis/README
@@ -3,3 +3,6 @@ object-relational database. In effect, PostGIS "spatially
 enables" the PostgreSQL server, allowing it to be used as a
 backend spatial database for geographic information systems
 (GIS), much like ESRI's SDE or Oracle's Spatial extension.
+
+To disable raster support and eliminate the gdal dependency,
+set RASTER=no.
diff --git a/system/postgis/postgis.SlackBuild b/system/postgis/postgis.SlackBuild
old mode 100644
new mode 100755
index 02e39b7..6af8163
--- a/system/postgis/postgis.SlackBuild
+++ b/system/postgis/postgis.SlackBuild
@@ -22,8 +22,10 @@
 # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
 # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
+# Maintained by Benjamin Trigona-Harany <bosth at alumni.sfu.ca>
+
 PRGNAM=postgis
-VERSION=${VERSION:-1.5.2}
+VERSION=${VERSION:-2.0.1}
 BUILD=${BUILD:-1}
 TAG=${TAG:-_SBo}
 
@@ -39,6 +41,11 @@ CWD=$(pwd)
 TMP=${TMP:-/tmp/SBo}
 PKG=$TMP/package-$PRGNAM
 OUTPUT=${OUTPUT:-/tmp}
+RASTER=${RASTER:-yes}
+
+if [ "$RASTER" = "no" ] ; then
+    RASTER_EXTENSION="--without-raster"
+fi
 
 if [ "$ARCH" = "i486" ]; then
   SLKCFLAGS="-O2 -march=i486 -mtune=i686"
@@ -78,6 +85,7 @@ CXXFLAGS="$SLKCFLAGS" \
   --datarootdir=/usr \
   --sysconfdir=/etc \
   --localstatedir=/var \
+  $RASTER_EXTENSION \
   --build=$ARCH-slackware-linux
 
 make
@@ -90,13 +98,10 @@ mkdir -p $PKG/usr/man/man1
 cp -a doc/man/* $PKG/usr/man/man1
 gzip -9 $PKG/usr/man/man1/*.1
 
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/html
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
 cp -a \
   COPYING CREDITS ChangeLog NEWS README.postgis TODO \
   $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
-  doc/html/{images,postgis.html,style.css} \
-  $PKG/usr/doc/$PRGNAM-$VERSION/html
 cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
 
 mkdir -p $PKG/install
diff --git a/system/postgis/postgis.info b/system/postgis/postgis.info
index 8c636c3..6f72231 100644
--- a/system/postgis/postgis.info
+++ b/system/postgis/postgis.info
@@ -1,10 +1,10 @@
 PRGNAM="postgis"
-VERSION="1.5.2"
+VERSION="2.0.1"
 HOMEPAGE="http://postgis.refractions.net"
-DOWNLOAD="http://postgis.refractions.net/download/postgis-1.5.2.tar.gz"
-MD5SUM="772ec1d0f04d6800cd7e2420a97a7483"
+DOWNLOAD="http://postgis.refractions.net/download/postgis-2.0.1.tar.gz"
+MD5SUM="7af9ce5f7dfb22d81fea7f041e674497"
 DOWNLOAD_x86_64=""
 MD5SUM_x86_64=""
-REQUIRES="geos postgresql proj"
-MAINTAINER="Peter Sarkoci"
-EMAIL="sarkoci at math.sk"
+REQUIRES="geos postgresql proj json-c gdal"
+MAINTAINER="Benjamin Trigona-Harany"
+EMAIL="bosth at alumni.sfu.ca"
-- 
1.7.12



More information about the SlackBuilds-users mailing list