diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2022-02-24 22:16:13 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-02-25 22:58:09 +0700 |
commit | 812e700fe94bd869af5399a4010e8d00d9ab6734 (patch) | |
tree | da153d16a6ba6dcfbfa735ca395c05c4e55ca889 /development/ocaml | |
parent | 6a37a4b4b61e6c0d9df23056e4cbc0b5e6f104ec (diff) |
development/ocaml: Updated for version 4.13.1.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/ocaml')
-rw-r--r-- | development/ocaml/configure.patch | 24 | ||||
-rw-r--r-- | development/ocaml/ocaml.SlackBuild | 14 | ||||
-rw-r--r-- | development/ocaml/ocaml.info | 10 |
3 files changed, 25 insertions, 23 deletions
diff --git a/development/ocaml/configure.patch b/development/ocaml/configure.patch index 31309d35115c..4809a26c640f 100644 --- a/development/ocaml/configure.patch +++ b/development/ocaml/configure.patch @@ -1,12 +1,12 @@ -diff -Naur ocaml-4.08.1.orig/configure ocaml-4.08.1/configure ---- ocaml-4.08.1.orig/configure 2019-08-05 19:32:44.000000000 +0200 -+++ ocaml-4.08.1/configure 2019-09-06 10:35:25.454923040 +0200 -@@ -12424,7 +12424,7 @@ - -fno-builtin-memcmp"; - internal_cflags="$gcc_warnings" ;; #( - gcc-*) : -- common_cflags="-O2 -fno-strict-aliasing -fwrapv"; -+ common_cflags="@CFLAGS@ -fno-strict-aliasing -fwrapv"; - internal_cflags="$gcc_warnings" ;; #( - msvc-*) : - common_cflags="-nologo -O2 -Gy- -MD" +diff -Naur ocaml-4.13.1.orig/configure ocaml-4.13.1/configure +--- ocaml-4.13.1.orig/configure 2021-09-30 17:40:11.000000000 +0200 ++++ ocaml-4.13.1/configure 2022-02-15 16:03:05.417656000 +0100 +@@ -12758,7 +12758,7 @@ + internal_cflags="-Wno-unused $cc_warnings \ + -fexcess-precision=standard" + # TODO: see whether the code can be fixed to avoid -Wno-unused +- common_cflags="-O2 -fno-strict-aliasing -fwrapv -mms-bitfields" ++ common_cflags="@CFLAGS@ -fno-strict-aliasing -fwrapv -mms-bitfields" + internal_cppflags='-D__USE_MINGW_ANSI_STDIO=0 -DUNICODE -D_UNICODE' + internal_cppflags="$internal_cppflags -DWINDOWS_UNICODE=" + internal_cppflags="${internal_cppflags}\$(WINDOWS_UNICODE)" ;; #( diff --git a/development/ocaml/ocaml.SlackBuild b/development/ocaml/ocaml.SlackBuild index 9134b591c301..d829c4613810 100644 --- a/development/ocaml/ocaml.SlackBuild +++ b/development/ocaml/ocaml.SlackBuild @@ -4,6 +4,7 @@ # Copyright 2007-2014 Ferenc Deak <ferenc.deak@gmail.com> # Copyright 2014 Markus Hutmacher <mailing@markhu.de> +# Copyright 2016-2022 Matteo Bernardini <ponce@slackbuilds.org> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -26,8 +27,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=ocaml -VERSION=${VERSION:-4.08.1} -MANVER=${MANVER:-4.08} +VERSION=${VERSION:-4.13.1} +MANVER=${MANVER:-4.13} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -81,15 +82,16 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -sed "s|@CFLAGS@|$SLKCFLAGS -fcommon|" $CWD/configure.patch | patch -p1 +sed "s|@CFLAGS@|$SLKCFLAGS|" $CWD/configure.patch | patch -p1 ./configure \ --prefix /usr \ --libdir /usr/lib${LIBDIRSUFFIX}/ocaml \ - --mandir /usr/man + --mandir /usr/man \ + --disable-force-safe-string -make -j1 world.opt -make -j1 DESTDIR=$PKG install +make world.opt +make DESTDIR=$PKG install find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true diff --git a/development/ocaml/ocaml.info b/development/ocaml/ocaml.info index 0747f3b19cb4..f627a9f78ff5 100644 --- a/development/ocaml/ocaml.info +++ b/development/ocaml/ocaml.info @@ -1,10 +1,10 @@ PRGNAM="ocaml" -VERSION="4.08.1" +VERSION="4.13.1" HOMEPAGE="http://caml.inria.fr" -DOWNLOAD="http://caml.inria.fr/pub/distrib/ocaml-4.08/ocaml-4.08.1.tar.xz \ - http://caml.inria.fr/pub/distrib/ocaml-4.08/ocaml-4.08-refman-html.tar.gz" -MD5SUM="519f095a563323cdaa68301d58bf099d \ - 20cbe4bd141f175d723f58cb9e89b215" +DOWNLOAD="http://caml.inria.fr/pub/distrib/ocaml-4.13/ocaml-4.13.1.tar.xz \ + http://caml.inria.fr/pub/distrib/ocaml-4.13/ocaml-4.13-refman-html.tar.gz" +MD5SUM="52f91ba31fbfad426bf57b00ef3a34c1 \ + 513fcf9adc3a85268aa42f0552d8e971" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |