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

Alexander Rødseth arodseth at archlinux.org
Fri Sep 12 16:19:29 UTC 2014


    Date: Friday, September 12, 2014 @ 18:19:29
  Author: arodseth
Revision: 118878

Work in progress

Modified:
  julia/trunk/PKGBUILD

----------+
 PKGBUILD |   45 +++++++++++++++++++++++++++++++++------------
 1 file changed, 33 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-09-12 16:15:10 UTC (rev 118877)
+++ PKGBUILD	2014-09-12 16:19:29 UTC (rev 118878)
@@ -5,21 +5,23 @@
 # Contributor: devmotion <nospam-archlinux.org at devmotion.de>
 # Contributor: Valentin Churavy <v.churavy at gmail.com>
 
-pkgname=julia
+pkgbase=julia
+pkgname=('julia' 'julia-docs')
+epoch=2
 pkgver=0.3.0
-pkgrel=2
-epoch=2
+pkgrel=3
 pkgdesc='High-level, high-performance, dynamic programming language'
 arch=('x86_64' 'i686')
-url='http://julialang.org'
+url='http://julialang.org/'
 license=('GPL')
-depends=('arpack' 'fftw' 'git' 'gmp' 'libunwind' 'mpfr' 'pcre' 'zlib')
-makedepends=('gcc-fortran' 'python2' 'libuv')
+makedepends=('gcc-fortran' 'python2' 'libuv' 'git' 'blas')
 optdepends=('gnuplot: If using the Gaston Package from julia')
 options=('!emptydirs' 'staticlibs')
-source=("git://github.com/JuliaLang/julia.git#tag=v${pkgver/_/-}")
-install=sysfix.install
-sha256sums=('SKIP')
+backup=('etc/ld.so.conf.d/julia.conf' 'etc/julia/juliarc.jl')
+source=('julia.conf'
+        "git://github.com/JuliaLang/julia.git#tag=v${pkgver/_/-}")
+sha256sums=('59dee73f54ea2c0ea94b9af4e4caeda73c1295f3a4474361189c1e022a3cb0b1'
+            'SKIP')
 
 build() {
   make -C "$pkgname" prefix=/usr sysconfdir=/etc \
@@ -48,7 +50,10 @@
     USE_LLVM_SHLIB=0
 }
 
-package() {
+package_julia() {
+  depends=('arpack' 'fftw' 'git' 'gmp' 'libunwind' 'mpfr' 'pcre' 'zlib')
+  install='sysfix.install'
+
   make -C "$pkgname" DESTDIR="$pkgdir" \
     prefix=/usr sysconfdir=/etc  \
     MARCH=${CARCH/_/-} \
@@ -76,8 +81,24 @@
     USE_LLVM_SHLIB=0 \
     install
     
-    # Remove duplicate man-page from julia/doc
-    rm -rv "$pkgdir/usr/share/julia/doc/man"
+  # Remove duplicate man-page from julia/doc
+  rm -rvf "$pkgdir/usr/share/julia/doc/man"
+
+  # For /etc/ld.so.conf.d, FS#41731
+  install -Dm644 julia.conf "$pkgdir/etc/ld.so.conf.d/julia.conf"
+
+  # Documentation and examples are in the julia-docs package
+  rm -rvf "$pkgdir/usr/share/doc/"
+  rm -rvf "$pkgdir/usr/share/julia/doc/"
+  rm -rvf "$pkgdir/usr/share/julia/examples/"
 }
 
+package_julia-docs() {
+  pkgdesc='Documentation and examples for Julia'
+
+  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"
+}
+
 # vim:set ts=2 sw=2 et:




More information about the arch-commits mailing list