diff options
author | David Spencer <nobbutl@yahoo.co.uk> | 2010-05-13 00:57:21 +0200 |
---|---|---|
committer | Michiel van Wessem <michiel@slackbuilds.org> | 2010-05-13 00:57:21 +0200 |
commit | 7a64d46fd4896418b945d399be97da48705d7650 (patch) | |
tree | 0c821be9ecee41657efa006bc2ad7cb4fb8e14e1 /academic/qgis | |
parent | 5f90a1d47b5564b93247ac5cac039995e7105c80 (diff) |
academic/qgis: Added to 13.0 repository
Diffstat (limited to 'academic/qgis')
-rw-r--r-- | academic/qgis/README | 10 | ||||
-rw-r--r-- | academic/qgis/doinst.sh | 3 | ||||
-rw-r--r-- | academic/qgis/qgis.SlackBuild | 86 | ||||
-rw-r--r-- | academic/qgis/qgis.desktop | 11 | ||||
-rw-r--r-- | academic/qgis/qgis.info | 10 | ||||
-rw-r--r-- | academic/qgis/qgis.png | bin | 0 -> 5220 bytes | |||
-rw-r--r-- | academic/qgis/slack-desc | 12 |
7 files changed, 132 insertions, 0 deletions
diff --git a/academic/qgis/README b/academic/qgis/README new file mode 100644 index 0000000000000..fa8a666194012 --- /dev/null +++ b/academic/qgis/README @@ -0,0 +1,10 @@ +Quantum GIS (QGIS) is a user friendly Geographic Information System +that runs on Linux, Unix, Mac OSX, and Windows. QGIS lets you +browse and create map data on your computer. It supports many +common spatial data formats (e.g. ESRI ShapeFile, geotiff). + +The following packages are required by qgis: proj, geos, gdal, R, +gsl and numpy. Optional dependencies include postgresql, postgis +and gpsbabel. All these packages are available at SlackBuilds.org. + +The Quantum GIS homepage is at http://qgis.org/ diff --git a/academic/qgis/doinst.sh b/academic/qgis/doinst.sh new file mode 100644 index 0000000000000..5fb28930db0b9 --- /dev/null +++ b/academic/qgis/doinst.sh @@ -0,0 +1,3 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi diff --git a/academic/qgis/qgis.SlackBuild b/academic/qgis/qgis.SlackBuild new file mode 100644 index 0000000000000..d070582f9acfa --- /dev/null +++ b/academic/qgis/qgis.SlackBuild @@ -0,0 +1,86 @@ +#!/bin/sh + +# Slackware build script for Quantum GIS +# Written by David Spencer <nobbutl@yahoo.co.uk> +# This script is dedicated to the public domain + +PRGNAM=qgis +VERSION=${VERSION:-1.4.0} +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/${PRGNAM}_$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DQGIS_LIB_SUBDIR=lib${LIBDIRSUFFIX} \ + -DQGIS_PLUGIN_SUBDIR=lib${LIBDIRSUFFIX}/qgis \ + -DGRASS_PREFIX=/usr/lib${LIBDIRSUFFIX}/grass \ + . + +make +make install DESTDIR=$PKG + +( cd $PKG + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null +) + +( cd $PKG/usr/man + find . -type f -exec gzip -9 {} \; + for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +) + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + AUTHORS BUGS CODING CONTRIBUTORS COPYING ChangeLog \ + DONORS Exception_to_GPL_for_Qt.txt INSTALL \ + PROVENANCE README SPONSORS TODO TRANSLATORS \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +install -D -m 0644 $CWD/$PRGNAM.desktop \ + $PKG/usr/share/applications/$PRGNAM.desktop +install -D -m 0644 $CWD/$PRGNAM.png \ + $PKG/usr/share/pixmaps/$PRGNAM.png + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/academic/qgis/qgis.desktop b/academic/qgis/qgis.desktop new file mode 100644 index 0000000000000..439e6c3a93d84 --- /dev/null +++ b/academic/qgis/qgis.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Version=1.0 +Name=Quantum GIS +Comment=Geographic Information System +Icon=qgis +Exec=qgis %F +TryExec=/usr/bin/qgis +Terminal=false +StartupNotify=false +Type=Application +Categories=Application;Education;Geography;Other;Qt; diff --git a/academic/qgis/qgis.info b/academic/qgis/qgis.info new file mode 100644 index 0000000000000..8603c0dd89a1f --- /dev/null +++ b/academic/qgis/qgis.info @@ -0,0 +1,10 @@ +PRGNAM="qgis" +VERSION="1.4.0" +HOMEPAGE="http://qgis.org/" +DOWNLOAD="http://download.osgeo.org/qgis/src/qgis_1.4.0.tar.gz" +MD5SUM="47710e7aa14c2a672c7f28457b0c956f" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="David Spencer" +EMAIL="nobbutl@yahoo.co.uk" +APPROVED="michiel" diff --git a/academic/qgis/qgis.png b/academic/qgis/qgis.png Binary files differnew file mode 100644 index 0000000000000..a55bd79a49acf --- /dev/null +++ b/academic/qgis/qgis.png diff --git a/academic/qgis/slack-desc b/academic/qgis/slack-desc new file mode 100644 index 0000000000000..ebc3bbedd2f59 --- /dev/null +++ b/academic/qgis/slack-desc @@ -0,0 +1,12 @@ + |-----handy-ruler---------------------------------------------------------| +qgis: qgis (Quantum GIS) +qgis: +qgis: Quantum GIS is a user friendly Geographic Information System. It lets +qgis: you browse and create map data on your computer. Many common spatial +qgis: data formats are supported (e.g. ESRI ShapeFile, geotiff). +qgis: +qgis: Homepage: http://qgis.org/ +qgis: +qgis: +qgis: +qgis:
\ No newline at end of file |