diff options
author | israel.herraiz | 2016-11-25 14:23:37 +0100 |
---|---|---|
committer | israel.herraiz | 2016-11-25 14:23:37 +0100 |
commit | 5a9bff0733c91f3def7acd92f8096e5b3e61fbd6 (patch) | |
tree | bee89cd757aab84b0ad0180b12b71ae950cfc1e1 | |
download | aur-5a9bff0733c91f3def7acd92f8096e5b3e61fbd6.tar.gz |
First version of the package
-rw-r--r-- | .SRCINFO | 46 | ||||
-rw-r--r-- | PKGBUILD | 91 | ||||
-rw-r--r-- | sysfix.install | 10 |
3 files changed, 147 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f23f4281686c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,46 @@ +pkgbase = julia + pkgdesc = High-level, high-performance, dynamic programming language (compiled with the Intel MKL library) + pkgver = 0.5.0 + pkgrel = 1 + url = http://julialang.org/ + arch = x86_64 + license = MIT + makedepends = python2 + makedepends = libuv + makedepends = libunwind + makedepends = mpfr + makedepends = zlib + makedepends = suitesparse-mkl + makedepends = patchelf + makedepends = cmake + makedepends = pcre2 + makedepends = openssl + makedepends = intel-mkl + makedepends = intel-compiler-base + makedepends = intel-fortran-compiler + makedepends = libgit2 + conflicts = julia-git + conflicts = julia + options = !emptydirs + options = staticlibs + source = https://github.com/JuliaLang/julia/releases/download/v0.5.0/julia-0.5.0.tar.gz + md5sums = 9169b26bebf9844e671312daacc62db1 + +pkgname = julia-mkl + install = sysfix.install + depends = libunwind + depends = mpfr + depends = zlib + depends = suitesparse-mkl + depends = pcre2 + depends = libgit2 + depends = openssl + depends = patchelf + depends = intel-mkl + optdepends = gnuplot: If using the Gaston Package from julia + backup = etc/ld.so.conf.d/julia.conf + backup = etc/julia/juliarc.jl + +pkgname = julia-mkl-docs + pkgdesc = Documentation and examples for Julia (package corresponding to the MKL version) + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8e61cac2a146 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,91 @@ +# Maintainer: Israel Herraiz <isra@herraiz.org + +pkgbase=julia +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 $pkgbase-$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 $pkgbase-$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 "$pkgbase-$pkgver" + + install -d "$pkgdir/usr/share/doc" + 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 +# vim:set ts=2 sw=2 et: diff --git a/sysfix.install b/sysfix.install new file mode 100644 index 000000000000..39815e6f98a9 --- /dev/null +++ b/sysfix.install @@ -0,0 +1,10 @@ +post_install() { + # Removing sys.so if needed, in order for Julia to start, see FS#39721 + julia --version 2>/dev/null || rm /usr/lib/julia/sys.so +} + +post_upgrade() { + post_install +} + +# vim:set ts=2 sw=2 et: |