summaryrefslogtreecommitdiffstats
path: root/development/julia
diff options
context:
space:
mode:
Diffstat (limited to 'development/julia')
-rw-r--r--development/julia/README10
-rw-r--r--development/julia/julia.SlackBuild28
-rw-r--r--development/julia/julia.info10
3 files changed, 30 insertions, 18 deletions
diff --git a/development/julia/README b/development/julia/README
index c7b459a760..26f4451762 100644
--- a/development/julia/README
+++ b/development/julia/README
@@ -22,10 +22,12 @@ types, which can also be user-defined.
A Summary of Features:
- * Multiple dispatch: providing ability to define function behavior across
- many combinations of argument types
- * Dynamic type system: types for documentation, optimization, and dispatch
- * Good performance, approaching that of statically-compiled languages like C
+ * Multiple dispatch: providing ability to define function behavior
+ across many combinations of argument types
+ * Dynamic type system: types for documentation, optimization, and
+ dispatch
+ * Good performance, approaching that of statically-compiled languages
+ like C
* Built-in package manager
* Lisp-like macros and other metaprogramming facilities
* Call Python functions: use the PyCall package
diff --git a/development/julia/julia.SlackBuild b/development/julia/julia.SlackBuild
index 0894aabbf5..4ca8c10fe8 100644
--- a/development/julia/julia.SlackBuild
+++ b/development/julia/julia.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for julia
@@ -22,11 +22,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=julia
-VERSION=${VERSION:-0.6.0}
-VERSION_TAG=${VERSION_TAG:-903644385b}
+VERSION=${VERSION:-1.3.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -36,7 +38,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -63,9 +72,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $PKG/usr $OUTPUT
cd $TMP
-rm -rf $PRGNAM-${VERSION_TAG}
+rm -rf $PRGNAM-${VERSION}
tar xvf $CWD/$PRGNAM\-${VERSION}\-linux\-$ARCH.tar.gz
-cd $PRGNAM-${VERSION_TAG}
+cd $PRGNAM-${VERSION}
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -78,10 +87,11 @@ cp -r etc $PKG/usr/etc
cp -r include $PKG/usr/include
# The julia binary expects all its libs to be in lib, not lib${LIBDIRSUFFIX}
cp -r lib $PKG/usr/lib
+cp -r libexec $PKG/usr/libexec
cp -r share $PKG/usr/share
-find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+# Don't strip binaries as it could cause some breakage
+# https://github.com/JuliaLang/julia/issues/34936
mv $PKG/usr/share/man $PKG/usr/
find $PKG/usr/man -type f -exec gzip -9 {} \;
@@ -100,4 +110,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/development/julia/julia.info b/development/julia/julia.info
index b90e8a1d75..ca72f21372 100644
--- a/development/julia/julia.info
+++ b/development/julia/julia.info
@@ -1,10 +1,10 @@
PRGNAM="julia"
-VERSION="0.6.0"
+VERSION="1.3.1"
HOMEPAGE="https://julialang.org"
-DOWNLOAD="https://julialang-s3.julialang.org/bin/linux/x86/0.6/julia-0.6.0-linux-i686.tar.gz"
-MD5SUM="f05e7139c3d2f2d50d5f4c7a165f8daf"
-DOWNLOAD_x86_64="https://julialang-s3.julialang.org/bin/linux/x64/0.6/julia-0.6.0-linux-x86_64.tar.gz"
-MD5SUM_x86_64="dbc86fe7e774f08becd8878b02c35504"
+DOWNLOAD="https://julialang-s3.julialang.org/bin/linux/x86/1.3/julia-1.3.1-linux-i686.tar.gz"
+MD5SUM="8f8bf69d03070c55ac5b4f11c1f9ddec"
+DOWNLOAD_x86_64="https://julialang-s3.julialang.org/bin/linux/x64/1.3/julia-1.3.1-linux-x86_64.tar.gz"
+MD5SUM_x86_64="878e50a162e918ef1151da8cc94d28b7"
REQUIRES=""
MAINTAINER="Arun Mascarenhas"
EMAIL="arunmascarenhas@yahoo.com"