Skip to content

Instantly share code, notes, and snippets.

Created May 12, 2011 12:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/968372 to your computer and use it in GitHub Desktop.
Save anonymous/968372 to your computer and use it in GitHub Desktop.
# Maintainer: Nicolas Barbey <nicolas.a.barbey@gmail.com>
pkgname=python-gnudatalanguage
pkgver=0.9.1
pkgrel=1
pkgdesc="An IDL (Interactive Data Language) compatible incremental compiler (ie. runs IDL programs)"
arch=('i686' 'x86_64')
url="http://gnudatalanguage.sourceforge.net/"
license=('GPL')
depends=('python2' 'python2-numpy' 'plplot' 'gsl' 'imagemagick>=6.4.0.2' 'readline' 'hdf5' 'netcdf' \
'wxgtk' 'fftw' 'udunits')
makedepends=('python-numarray')
options=('!makeflags')
source=(http://downloads.sourceforge.net/gnudatalanguage/gdl-${pkgver}.tar.gz gdl.profile)
md5sums=('be576675aa1c37f0c1a2b1eb8889a960'
'f09b277f4b4fee3bedcc57c5add1ffe7')
build() {
cd ${startdir}/src/gdl-${pkgver}
aclocal
autoconf
libtoolize --copy --force
./configure --prefix=/usr --enable-python_module --with-python --enable-python_version=2.7 --with-Magick --with-fftw \
--with-hdf5 --with-udunits --without-hdf CPPFLAGS="${CPPFLAGS} -I/usr/include/ImageMagick \
-I/usr/include/python2.7 -I/usr/lib/python2.7/site-packages/numpy/core/include"
make || return 1
make DESTDIR=${startdir}/pkg install
install -d ${startdir}/pkg/usr/lib/gdl
cp -r src/pro/* ${startdir}/pkg/usr/lib/gdl
chmod -R 644 ${startdir}/pkg/usr/lib/gdl
install -D -m755 ../gdl.profile ${startdir}/pkg/etc/profile.d/gdl.sh
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment