blob: 5769332fb08b4ffe6becba41d5c7696149c20114 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
# Maintainer: Israel Herraiz <isra@herraiz.org
pkgbase=julia-mkl
pkgname=('julia-mkl' 'julia-mkl-docs')
pkgver=0.5.0
pkgrel=1
arch=('x86_64')
pkgdesc='High-level, high-performance, dynamic programming language (compiled with the Intel MKL library)'
url='http://julialang.org/'
license=('MIT')
makedepends=('python2' 'libuv' 'libunwind' 'mpfr' 'zlib' 'suitesparse-mkl' 'patchelf' 'cmake' 'pcre2' 'openssl' 'intel-mkl' 'intel-compiler-base' 'intel-fortran-compiler' 'libgit2')
options=('!emptydirs' 'staticlibs')
source=("https://github.com/JuliaLang/julia/releases/download/v$pkgver/julia-$pkgver.tar.gz")
md5sums=('9169b26bebf9844e671312daacc62db1')
conflicts=('julia-git' 'julia')
prepare() {
# For /etc/ld.so.conf.d/
echo '/usr/lib/julia' > julia.conf
}
build() {
source /opt/intel/mkl/bin/mklvars.sh intel64
source /opt/intel/composerxe/linux/bin/compilervars.sh intel64
make -C julia-$pkgver prefix=/usr sysconfdir=/etc \
USEICC=1 \
USEIFC=1 \
USE_INTEL_MKL=1 \
USE_INTEL_MKL_FFT=1 \
USE_INTEL_LIBM=1 \
USE_SYSTEM_CURL=1 \
USE_SYSTEM_LIBUNWIND=1 \
USE_SYSTEM_PCRE=1 \
USE_SYSTEM_LIBGIT2=1 \
USE_SYSTEM_PATCHELF=1 \
USE_SYSTEM_SUITESPARSE=1
}
package_julia-mkl() {
backup=('etc/ld.so.conf.d/julia.conf' 'etc/julia/juliarc.jl')
depends=('libunwind' 'mpfr' 'zlib' 'suitesparse-mkl' 'pcre2' 'libgit2' 'openssl' 'patchelf' 'intel-mkl')
optdepends=('gnuplot: If using the Gaston Package from julia')
install='sysfix.install'
source /opt/intel/mkl/bin/mklvars.sh intel64
source /opt/intel/composerxe/linux/bin/compilervars.sh intel64
make -C julia-$pkgver DESTDIR="$pkgdir" \
prefix=/usr sysconfdir=/etc \
USEICC=1 \
USEIFC=1 \
USE_INTEL_MKL=1 \
USE_INTEL_MKL_FFT=1 \
USE_INTEL_LIBM=1 \
USE_SYSTEM_CURL=1 \
USE_SYSTEM_LIBUNWIND=1 \
USE_SYSTEM_PCRE=1 \
USE_SYSTEM_LIBGIT2=1 \
USE_SYSTEM_PATCHELF=1 \
USE_SYSTEM_SUITESPARSE=1 \
install
# 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/"
cd julia-$pkgver
install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
}
package_julia-mkl-docs() {
pkgdesc='Documentation and examples for Julia (package corresponding to the MKL version)'
cd "julia-$pkgver"
install -d "$pkgdir/usr/share/doc"
cp -rv doc "$pkgdir/usr/share/doc/julia"
cp -rv examples "$pkgdir/usr/share/doc/julia/examples"
install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
}
# getver: julialang.org/downloads
# vim:set ts=2 sw=2 et:
|