summaryrefslogtreecommitdiffstats
path: root/development/ocaml/ocaml.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/ocaml/ocaml.SlackBuild')
-rw-r--r--development/ocaml/ocaml.SlackBuild13
1 files changed, 7 insertions, 6 deletions
diff --git a/development/ocaml/ocaml.SlackBuild b/development/ocaml/ocaml.SlackBuild
index ecc3c19006..ebd06af5d7 100644
--- a/development/ocaml/ocaml.SlackBuild
+++ b/development/ocaml/ocaml.SlackBuild
@@ -2,7 +2,8 @@
# Slackware build script for ocaml
-# Copyright 2007-2011 Ferenc Deak <ferenc.deak@gmail.com>
+# Copyright 2007-2014 Ferenc Deak <ferenc.deak@gmail.com>
+# Copyright 2014 Markus Hutmacher <mailing@markhu.de>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,8 +24,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=ocaml
-VERSION=3.12.1
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-4.01.0}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -60,7 +61,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar -jxvf $CWD/$PRGNAM-$VERSION.tar.bz2
+tar -xvf $CWD/$PRGNAM-$VERSION.tar.xz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -87,9 +88,9 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
find $PKG/usr/man -type f -exec gzip -9 {} \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a Changes INSTALL LICENSE README README.win32 Upgrading VERSION \
+cp -a Changes INSTALL LICENSE README VERSION \
$PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/ocaml-3.12-refman.html > $PKG/usr/doc/$PRGNAM-$VERSION/ocaml-refman.html
+tar -xvf $CWD/ocaml-4.01-refman-html.tar.gz -C $PKG/usr/doc/$PRGNAM-$VERSION/
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install