[arch-commits] Commit in julia/trunk (PKGBUILD)

Alexander Rødseth arodseth at archlinux.org
Mon Oct 12 15:20:32 UTC 2015


    Date: Monday, October 12, 2015 @ 17:20:32
  Author: arodseth
Revision: 143779

upgpkg: julia 2:0.4.0-1

Modified:
  julia/trunk/PKGBUILD

----------+
 PKGBUILD |   21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-10-12 15:19:13 UTC (rev 143778)
+++ PKGBUILD	2015-10-12 15:20:32 UTC (rev 143779)
@@ -8,16 +8,15 @@
 pkgbase=julia
 pkgname=('julia' 'julia-docs')
 epoch=2
-pkgver=0.3.11
+pkgver=0.4.0
 pkgrel=1
 pkgdesc='High-level, high-performance, dynamic programming language'
 arch=('x86_64' 'i686')
 url='http://julialang.org/'
 license=('MIT')
-makedepends=('gcc-fortran' 'python2' 'libuv' 'git' 'blas' 'lapack' 'arpack' 'libunwind' 'fftw' 'gmp' 'mpfr' 'pcre' 'zlib' 'suitesparse')
+makedepends=('gcc-fortran' 'python2' 'libuv' 'git' 'blas' 'lapack' 'arpack' 'libunwind' 'fftw' 'gmp' 'mpfr' 'pcre' 'zlib' 'suitesparse' 'patchelf' 'cmake' 'pcre2')
 optdepends=('gnuplot: If using the Gaston Package from julia')
 options=('!emptydirs' 'staticlibs')
-backup=('etc/ld.so.conf.d/julia.conf' 'etc/julia/juliarc.jl')
 source=("git://github.com/JuliaLang/julia.git#tag=v$pkgver")
 sha256sums=('SKIP')
 
@@ -27,6 +26,11 @@
 }
 
 build() {
+  # SSE2 is a requirement for Julia on 32-bit x86
+  if [[ $CARCH == i686 ]]; then
+    export JULIA_CPU_TARGET=pentium4
+  fi
+
   make -C "$pkgname" prefix=/usr sysconfdir=/etc \
     MARCH=${CARCH/_/-} \
     USE_SYSTEM_LLVM=0 \
@@ -54,7 +58,8 @@
 }
 
 package_julia() {
-  depends=('arpack' 'fftw' 'git' 'gmp' 'libunwind' 'mpfr' 'pcre' 'zlib' 'lapack' 'suitesparse')
+  backup=('etc/ld.so.conf.d/julia.conf' 'etc/julia/juliarc.jl')
+  depends=('arpack' 'fftw' 'git' 'gmp' 'libunwind' 'mpfr' 'pcre' 'zlib' 'lapack' 'suitesparse' 'pcre2')
   install='sysfix.install'
 
   make -C "$pkgname" DESTDIR="$pkgdir" \
@@ -101,10 +106,14 @@
 
 package_julia-docs() {
   pkgdesc='Documentation and examples for Julia'
+  arch=('any')
 
   install -d "$pkgdir/usr/share/doc"
-  cp -rv "$srcdir/$pkgbase/doc" "$pkgdir/usr/share/doc/$pkgbase"
-  cp -rv "$srcdir/$pkgbase/examples" "$pkgdir/usr/share/doc/$pkgbase/examples"
+
+  cd "$srcdir/$pkgbase"
+  cp -rv "doc" "$pkgdir/usr/share/doc/$pkgbase"
+  cp -rv "examples" "$pkgdir/usr/share/doc/$pkgbase/examples"
+  install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
 }
 
 # getver: julialang.org/downloads



More information about the arch-commits mailing list