Want more features on Pastebin? Sign Up, it's FREE!
Guest

PKGBUILD julia-git

By: a guest on Apr 6th, 2014  |  syntax: Bash  |  size: 2.15 KB  |  views: 62  |  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 https://aur.archlinux.org/packages/julia-git/
  4.  
  5. _pkgname=julia
  6. pkgname=julia-git
  7. pkgver=0.2.0.2503.g2990c29
  8. pkgrel=1
  9. pkgdesc='High-level, high-performance, dynamic programming language'
  10. arch=('x86_64' 'i686')
  11. url='http://julialang.org'
  12. license=('GPL')
  13. depends=('arpack' 'fftw' 'git' 'gmp' 'libunwind' 'mpfr' 'pcre' 'zlib' 'llvm' ) # 'suitesparse'  'utf8proc' (AUR) 'intel-mkl' (AUR)
  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.   make -C "$_pkgname" prefix=/usr sysconfdir=/etc \
  30.     USE_SYSTEM_LLVM=1 \
  31.     USE_SYSTEM_LIBUNWIND=1 \
  32.     USE_SYSTEM_PCRE=1 \
  33.     USE_SYSTEM_LIBM=1 \
  34.     USE_SYSTEM_OPENLIBM=0 \
  35.     USE_SYSTEM_OPENSPECFUN=0 \
  36.     USE_SYSTEM_BLAS=1 \
  37.     USE_SYSTEM_LAPACK=1 \
  38.     USE_SYSTEM_FFTW=1 \
  39.     USE_SYSTEM_GMP=1 \
  40.     USE_SYSTEM_MPFR=1 \
  41.     USE_SYSTEM_ARPACK=1 \
  42.     USE_SYSTEM_SUITESPARSE=0 \
  43.     USE_SYSTEM_ZLIB=1 \
  44.     USE_SYSTEM_GRISU=0 \
  45.     USE_SYSTEM_LIBUV=0 \
  46.     USE_SYSTEM_UTF8PROC=0 \
  47.     USE_MKL=0 \
  48.     USE_BLAS64=0 \
  49.     USE_LLVM_SHLIB=0
  50. }
  51.  
  52. package() {
  53.   make -C "$_pkgname" DESTDIR="$pkgdir" \
  54.     prefix=/usr sysconfdir=/etc  \
  55.     USE_SYSTEM_LLVM=1 \
  56.     USE_SYSTEM_LIBUNWIND=1 \
  57.     USE_SYSTEM_PCRE=1 \
  58.     USE_SYSTEM_LIBM=1 \
  59.     USE_SYSTEM_OPENLIBM=0 \
  60.     USE_SYSTEM_OPENSPECFUN=0 \
  61.     USE_SYSTEM_BLAS=1 \
  62.     USE_SYSTEM_LAPACK=1 \
  63.     USE_SYSTEM_FFTW=1 \
  64.     USE_SYSTEM_GMP=1 \
  65.     USE_SYSTEM_MPFR=1 \
  66.     USE_SYSTEM_ARPACK=1 \
  67.     USE_SYSTEM_SUITESPARSE=0 \
  68.     USE_SYSTEM_ZLIB=1 \
  69.     USE_SYSTEM_GRISU=0 \
  70.     USE_SYSTEM_LIBUV=0 \
  71.     USE_SYSTEM_UTF8PROC=0 \
  72.     USE_MKL=0 \
  73.     USE_BLAS64=0 \
  74.     USE_LLVM_SHLIB=0 \
  75.     install
  76.    
  77.     # Remove duplicate man-page from julia/doc
  78.     rm -rv "$pkgdir/usr/share/julia/doc/man"
  79. }
  80.  
  81. # vim:set ts=2 sw=2 et:
clone this paste RAW Paste Data