This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 27th, 2013  |  syntax: None  |  size: 2.08 KB  |  views: 58  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Lex Black <autumn-wind at web dot de>
  2. # Contributor: Michael Jakl <jakl.michael@gmail.com>
  3. # With contributions from many kind people at http://aur.archlinux.org/packages.php?ID=56877
  4.  
  5. _pkgname=julia
  6. pkgname=julia-git
  7. pkgver=0.2.0.703.g9446b1f
  8. pkgrel=1
  9. pkgdesc="Julia is a high-level, high-performance, dynamic programming language."
  10. arch=('i686' 'x86_64')
  11. url="http://julialang.org"
  12. license=('GPL')
  13. depends=('arpack' 'fftw' 'git' 'gmp' 'llvm' 'libunwind' 'mpfr' 'pcre' 'librmath' 'readline' 'zlib' ) # 'suitesparse'
  14. makedepends=('gcc-fortran')
  15. optdepends=('gnuplot: If using the Gaston Package from julia')
  16. provides=('julia')
  17. conflicts=('julia')
  18. options=('!emptydirs' 'staticlibs')
  19. source=('git://github.com/JuliaLang/julia.git')
  20. md5sums=('SKIP')
  21.  
  22.  
  23. pkgver() {
  24.   cd $_pkgname
  25.   git describe --tags | sed 's/^v//;s/-/./g'
  26. }
  27.  
  28. build() {
  29.   cd "$srcdir/$_pkgname"
  30.  
  31.   make PREFIX=/usr SYSCONFDIR=/etc \
  32.     USE_SYSTEM_LLVM=1 \
  33.     USE_SYSTEM_LIBUNWIND=1 \
  34.     USE_SYSTEM_READLINE=1 \
  35.     USE_SYSTEM_PCRE=1 \
  36.     USE_SYSTEM_LIBM=1 \
  37.     USE_SYSTEM_OPENLIBM=0 \
  38.     USE_SYSTEM_BLAS=1 \
  39.     USE_SYSTEM_LAPACK=1 \
  40.     USE_SYSTEM_FFTW=1 \
  41.     USE_SYSTEM_GMP=1 \
  42.     USE_SYSTEM_MPFR=1 \
  43.     USE_SYSTEM_ARPACK=1 \
  44.     USE_SYSTEM_SUITESPARSE=0 \
  45.     USE_SYSTEM_ZLIB=1 \
  46.     USE_SYSTEM_GRISU=0 \
  47.     USE_SYSTEM_RMATH=1 \
  48.     USE_SYSTEM_LIBUV=0 \
  49.     USE_BLAS64=0
  50. }
  51.  
  52. package() {
  53.   cd "$srcdir/$_pkgname"
  54.  
  55.   make DESTDIR=$pkgdir PREFIX=/usr SYSCONFDIR=/etc \
  56.     USE_SYSTEM_LLVM=1 \
  57.     USE_SYSTEM_LIBUNWIND=1 \
  58.     USE_SYSTEM_READLINE=1 \
  59.     USE_SYSTEM_PCRE=1 \
  60.     USE_SYSTEM_LIBM=1 \
  61.     USE_SYSTEM_OPENLIBM=0 \
  62.     USE_SYSTEM_BLAS=1 \
  63.     USE_SYSTEM_LAPACK=1 \
  64.     USE_SYSTEM_FFTW=1 \
  65.     USE_SYSTEM_GMP=1 \
  66.     USE_SYSTEM_MPFR=1 \
  67.     USE_SYSTEM_ARPACK=1 \
  68.     USE_SYSTEM_SUITESPARSE=0 \
  69.     USE_SYSTEM_ZLIB=1 \
  70.     USE_SYSTEM_GRISU=0 \
  71.     USE_SYSTEM_RMATH=1 \
  72.     USE_SYSTEM_LIBUV=0 \
  73.     USE_BLAS64=0 \
  74.     install
  75.    
  76.     # Remove man-page from julia/doc (one is enough)
  77.     rm -rv $pkgdir/usr/share/julia/doc/man
  78. }
  79.  
  80. # vim:set ts=2 sw=2 et:
clone this paste RAW Paste Data