ocaml: remove old versions.

This commit is contained in:
Augustin Cavalier
2015-01-19 15:05:34 -05:00
parent f30289933c
commit f9c9d55cb3
2 changed files with 0 additions and 160 deletions

View File

@@ -1,90 +0,0 @@
SUMMARY="Implementation of the Caml language"
DESCRIPTION="
Caml is a general-purpose programming language, designed with program safety \
and reliability in mind. It is very expressive, yet easy to learn and use. \
Caml supports functional, imperative, and object-oriented programming styles. \
It has been developed and distributed by INRIA, a French research institute in \
computer science and applied mathematics, since 1985.
The OCaml system is the main implementation of the Caml language. It features \
a powerful module system and a full-fledged object-oriented layer. It comes \
with a native-code compiler that supports numerous architectures, for high \
performance; a bytecode compiler, for increased portability; and an \
interactive loop, for experimentation and rapid development.
"
LICENSE="GNU LGPL v2"
COPYRIGHT="1996-2012 Institut National de Recherche en Informatique et en Automatique (INRIA)."
HOMEPAGE="http://caml.inria.fr/index.en.html"
SRC_URI="http://caml.inria.fr/pub/distrib/ocaml-4.00/ocaml-4.00.0.tar.gz"
CHECKSUM_SHA256="9ea5544538144811b5fd9c7172d63abc0d1c6ba6b64d2c60474807fc57ad4c6e"
REVISION="1"
ARCHITECTURES="?x86 ?x86_gcc2"
SOURCE_DIR="ocaml-4.00.0"
PROVIDES="
ocaml = $portVersion compat >= 4
cmd:camlp4 = $portVersion compat >= 4
cmd:camlp4boot = $portVersion compat >= 4
cmd:camlp4o = $portVersion compat >= 4
cmd:camlp4o.opt = $portVersion compat >= 4
cmd:camlp4of = $portVersion compat >= 4
cmd:camlp4of.opt = $portVersion compat >= 4
cmd:camlp4oof = $portVersion compat >= 4
cmd:camlp4oof.opt = $portVersion compat >= 4
cmd:camlp4orf = $portVersion compat >= 4
cmd:camlp4orf.opt = $portVersion compat >= 4
cmd:camlp4prof = $portVersion compat >= 4
cmd:camlp4r = $portVersion compat >= 4
cmd:camlp4r.opt = $portVersion compat >= 4
cmd:camlp4rf = $portVersion compat >= 4
cmd:camlp4rf.opt = $portVersion compat >= 4
cmd:mkcamlp4 = $portVersion compat >= 4
cmd:ocaml = $portVersion compat >= 4
cmd:ocamlbuild = $portVersion compat >= 4
cmd:ocamlbuild.byte = $portVersion compat >= 4
cmd:ocamlbuild.native = $portVersion compat >= 4
cmd:ocamlc = $portVersion compat >= 4
cmd:ocamlc.opt = $portVersion compat >= 4
cmd:ocamlcp = $portVersion compat >= 4
cmd:ocamldebug = $portVersion compat >= 4
cmd:ocamldep = $portVersion compat >= 4
cmd:ocamldep.opt = $portVersion compat >= 4
cmd:ocamldoc = $portVersion compat >= 4
cmd:ocamldoc.opt = $portVersion compat >= 4
cmd:ocamllex = $portVersion compat >= 4
cmd:ocamllex.opt = $portVersion compat >= 4
cmd:ocamlmklib = $portVersion compat >= 4
cmd:ocamlmktop = $portVersion compat >= 4
cmd:ocamlobjinfo = $portVersion compat >= 4
cmd:ocamlopt = $portVersion compat >= 4
cmd:ocamlopt.opt = $portVersion compat >= 4
cmd:ocamloptp = $portVersion compat >= 4
cmd:ocamlprof = $portVersion compat >= 4
cmd:ocamlrun = $portVersion compat >= 4
cmd:ocamlyacc = $portVersion compat >= 4
"
REQUIRES="
haiku
cmd:gcc
"
BUILD_PREREQUIRES="
haiku_devel
cmd:make
cmd:gcc
"
PATCHES="ocaml-4.00.0.patchset"
BUILD()
{
./configure --prefix $prefix \
--mandir $manDir
make world.opt
}
INSTALL()
{
make install
}

View File

@@ -1,70 +0,0 @@
From 392fc2240718d68c1e0ce62cc11c1e894ba2cd95 Mon Sep 17 00:00:00 2001
From: Chris Roberts <cpr420@gmail.com>
Date: Wed, 30 Oct 2013 21:35:40 -0600
Subject: import old patch
diff --git a/configure b/configure
index e08bbce..a39e9e4 100755
--- a/configure
+++ b/configure
@@ -285,6 +285,10 @@ case "$bytecc,$host" in
bytecccompopts="-fno-defer-pop $gcc_warnings"
# No -lm library
mathlib="";;
+ *,*-*-haiku*)
+ bytecccompopts="-fno-defer-pop $gcc_warnings"
+ # No -lm library
+ mathlib="";;
gcc,alpha*-*-osf*)
bytecccompopts="-fno-defer-pop $gcc_warnings"
if cc="$bytecc" sh ./hasgot -mieee; then
@@ -614,6 +618,9 @@ if test $withsharedlibs = "yes"; then
byteccrpath="-Wl,-rpath,"
mksharedlibrpath="-Wl,-rpath,"
shared_libraries_supported=true;;
+ *-*haiku*)
+ mksharedlib="$bytecc -shared"
+ shared_libraries_supported=true;;
esac
fi
@@ -679,6 +686,7 @@ case "$host" in
arch=i386; system=solaris
fi;;
i[3456]86-*-beos*) arch=i386; system=beos;;
+ i[3456]86-*-haiku*) arch=i386; system=beos;;
i[3456]86-*-cygwin*) arch=i386; system=cygwin;;
i[3456]86-*-darwin*) if $arch64; then
arch=amd64; system=macosx
@@ -901,6 +909,11 @@ elif sh ./hasgot -lnsl -lsocket socket socketpair bind listen accept connect; th
cclibs="$cclibs -lnsl -lsocket"
echo "#define HAS_SOCKETS" >> s.h
has_sockets=yes
+elif sh ./hasgot -lnetwork socket socketpair bind listen accept connect; then
+ echo "You have BSD sockets (with libraries '-lnetwork')"
+ cclibs="$cclibs -lnetwork"
+ echo "#define HAS_SOCKETS" >> s.h
+ has_sockets=yes
fi
if sh ./hasgot -i sys/socket.h -t socklen_t; then
diff --git a/otherlibs/unix/nice.c b/otherlibs/unix/nice.c
index 400543c..94aa025 100644
--- a/otherlibs/unix/nice.c
+++ b/otherlibs/unix/nice.c
@@ -24,7 +24,11 @@ CAMLprim value unix_nice(value incr)
{
int ret;
errno = 0;
+#ifdef __HAIKU__
+ ret = 0;
+#else
ret = nice(Int_val(incr));
+#endif
if (ret == -1 && errno != 0) uerror("nice", Nothing);
return Val_int(ret);
}
--
1.8.3.4