From 7a3611f5caa5e34c1f2b582640f97b733110ae63 Mon Sep 17 00:00:00 2001 From: Parabola Date: Mon, 9 Jan 2012 13:47:51 +0000 Subject: Mon Jan 9 13:47:49 UTC 2012 --- community/grass/PKGBUILD | 112 ------------------------------------------ community/grass/grass.conf | 1 - community/grass/grass.install | 6 --- community/grass/grass.sh | 4 -- 4 files changed, 123 deletions(-) delete mode 100644 community/grass/PKGBUILD delete mode 100644 community/grass/grass.conf delete mode 100644 community/grass/grass.install delete mode 100644 community/grass/grass.sh (limited to 'community/grass') diff --git a/community/grass/PKGBUILD b/community/grass/PKGBUILD deleted file mode 100644 index 8dca3a4dc..000000000 --- a/community/grass/PKGBUILD +++ /dev/null @@ -1,112 +0,0 @@ -# Maintainer: Thomas Dziedzic < gostrc at gmail > -# Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org - -pkgname=grass -pkgver=6.4.1 -pkgrel=4 -pkgdesc='Geographic Information System (GIS) used for geospatial data management and analysis, image processing, graphics/maps production, spatial modeling, and visualization.' -arch=('i686' 'x86_64') -url='http://grass.itc.it/index.php' -license=('GPL') -depends=('gdal' 'tk' 'sqlite3' 'python2' 'mesa' 'swig' 'proj' 'libjpeg' 'libpng' 'libtiff' 'cfitsio') -makedepends=('mysql' 'postgresql' 'r' 'fftw' 'freetype2' 'xorg-server') -optdepends=('fftw: required for i.fft and i.ifft modules' - 'postgresql: PostgreSQL database interface' - 'r: R language interface' - 'lapack: required for GMATH library' - 'blas: required for GMATH library' - 'xorg-server: required for the graphical interface' - 'wxpython: to enable the GUI') -options=('!libtool' '!makeflags') -install='grass.install' -source=("http://grass.itc.it/grass64/source/grass-${pkgver}.tar.gz" - "grass.sh" - "grass.conf") -md5sums=('d8ca83d416b5b0cf2aa9d36c81a77b23' - 'a0e0ac6275e09a272f8ec38d3c0b4b3a' - '6103480c2a1adc19a50b9e925e5e6d4c') - -build() { - cd grass-${pkgver} - - # python2 fix - sed -i 's_python $< $(GISBASE) > $@_python2 $< $(GISBASE) > $@_' gui/wxpython/Makefile - for file in $(find . -name '*.py' -print); do - sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file - sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file - done - - # the following exports are probably not needed - export PYTHON=python2 - export DOXNAME=python2 - export GRASS_python=python2 - - # fix wxpython error - sed -i 's/python/&2/' ./include/Make/Platform.make.in - - # see ${srcdir}/grass-6.4.0/REQUIREMENTS.html for options - ./configure \ - --prefix=/opt \ - --with-mysql-includes=/usr/include/mysql \ - --with-mysql \ - --with-sqlite \ - --with-postgres \ - --with-fftw \ - --with-gdal=/usr/bin/gdal-config \ - --with-blas \ - --with-lapack \ - --with-proj-libs=/usr/lib \ - --with-proj-includes=/usr/include \ - --with-proj-share=/usr/share/proj \ - --with-fftw-includes=/usr/include \ - --with-fftw-libs=/usr/lib \ - --with-python=/usr/bin/python2-config - - #--with-freetype-includes=/usr/include - - make - - # some more potential problems nvm, works without, but save for future use if problems arrise - #cd ${pkgdir}/opt/grass-${pkgver} - #sed -i 's/PYTHON = python/PYTHON = python2/' include/Make/Python.make - #sed -i 's/GRASS_PYTHON=python/GRASS_PYTHON=python2/' etc/Init.sh -} - -package() { - cd grass-${pkgver} - - make \ - INST_DIR=${pkgdir}/opt/grass-${pkgver} \ - BINDIR=${pkgdir}/usr/bin \ - install - - # fix $GISBASE path - sed -i "s|GISBASE=${pkgdir}/opt/grass-${pkgver}|GISBASE=/opt/grass-${pkgver}|g" \ - ${pkgdir}/usr/bin/grass64 - - # install profile.d file - install -D ${srcdir}/grass.sh \ - ${pkgdir}/etc/profile.d/grass.sh - - # install some freedesktop.org compatibility - install -D -m644 gui/icons/grass.desktop \ - ${pkgdir}/usr/share/applications/grass.desktop - - sed -i -e 's/grass65/grass64/' -e 's_/usr/share/icons_/usr/share/pixmaps_' \ - ${pkgdir}/usr/share/applications/grass.desktop - - install -D -m644 gui/icons/grass-48x48.png \ - ${pkgdir}/usr/share/pixmaps/grass-48x48.png - - # create a symlink for version work around - ln -sf /opt/grass-${pkgver} ${pkgdir}/opt/grass - - install -D -m644 ${srcdir}/grass.conf \ - ${pkgdir}/etc/ld.so.conf.d/grass.conf - - # install g.html2man which is needed for some extensions - # FS#25705 - [grass] g.html2man is not installed into package directory - # https://bugs.archlinux.org/task/25705 - # most likely upstream problem which will be fixed in a version later than 6.4.1 - cp -r ./tools/g.html2man ${pkgdir}/opt/grass-${pkgver}/tools -} diff --git a/community/grass/grass.conf b/community/grass/grass.conf deleted file mode 100644 index bb4964d93..000000000 --- a/community/grass/grass.conf +++ /dev/null @@ -1 +0,0 @@ -/opt/grass/lib diff --git a/community/grass/grass.install b/community/grass/grass.install deleted file mode 100644 index 07e347eb1..000000000 --- a/community/grass/grass.install +++ /dev/null @@ -1,6 +0,0 @@ -## arg 1: the new package version -post_install() { - echo 'Please relogin for required variables to be set from /etc/profile.d/grass.sh' -} - -# vim:set ts=2 sw=2 et: diff --git a/community/grass/grass.sh b/community/grass/grass.sh deleted file mode 100644 index ccc2fcd7e..000000000 --- a/community/grass/grass.sh +++ /dev/null @@ -1,4 +0,0 @@ -export GISBASE=/opt/grass -export PATH=$PATH:$GISBASE/bin -export MANPATH=$MANPATH:$GISBASE/man -export GRASS_PYTHON=python2 -- cgit v1.2.3-54-g00ecf