1 # Contributor: Alastair Pharo asppsa at gmail dot com
6 pkgdesc="Pure is a modern-style functional programming language based on term rewriting."
9 url="http://code.google.com/p/pure-lang"
10 depends=('llvm' 'gsl' 'gmp' 'libffi' 'mpfr' 'readline')
11 makedepends=('autoconf' 'bison' 'flex' 'gcc' 'make' 'mercurial' 'wget')
12 optdepends=('w3m: help in interactive mode')
18 _hgtrunk=https://code.google.com/p/pure-lang
23 if [ -d pure-lang ]; then
24 (cd pure-lang && hg pull -u; cd $srcdir)
26 hg clone $_hgtrunk pure-lang
29 rm -rf $srcdir/pure-build
30 cp -r $srcdir/pure-lang/pure $srcdir/pure-build
33 ./configure --enable-release --prefix=/usr
35 make DESTDIR=$pkgdir install || return 1
36 make DESTDIR=$pkgdir install-docs || return 1
38 # The docs will be installed in the wrong place if pure was not already
39 # installed on the system at build time.
40 if [ -d $pkgdir/usr/local/lib/pure/docs ]; then
41 mv $pkgdir/usr/local/lib/pure/docs $pkgdir/usr/lib/pure/docs
42 rm -rf $pkgdir/usr/local