homebrew-core/Formula/o-make.rb
Jack Nagel 7c648d9732 Shore up a number of shell quoting issues
When interpolating in strings passed to Formula#system, it should be
done in such a way that if any interpolated variables contain spaces,
they are either (a) passed as part of a list or (b) protected by quotes
if they are part of a long string (which is subject to shell expansion).
Otherwise, they will be split on the space when expanded by the shell
and passed as multiple arguments to whatever process is being executed.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-15 14:03:11 -05:00

46 lines
1 KiB
Ruby

require 'formula'
class OMake < Formula
url 'http://omake.metaprl.org/downloads/omake-0.9.8.5-3.tar.gz'
homepage 'http://omake.metaprl.org/'
md5 'd114b3c4201808aacd73ec1a98965c47'
depends_on 'objective-caml'
def patches
# removes reference to missing caml_sync in OS X OCaml
DATA
end
def install
system "make", "install", "PREFIX=#{prefix}"
end
end
__END__
diff --git a/src/exec/omake_exec.ml b/src/exec/omake_exec.ml
index 8c034b5..7e40b35 100644
--- a/src/exec/omake_exec.ml
+++ b/src/exec/omake_exec.ml
@@ -46,8 +46,6 @@ open Omake_exec_notify
open Omake_options
open Omake_command_type
-external sync : unit -> unit = "caml_sync"
-
module Exec =
struct
(*
diff --git a/OMakefile b/OMakefile
index 9b77a25..1d61d70 100644
--- a/OMakefile
+++ b/OMakefile
@@ -57,7 +57,7 @@ if $(not $(defined CAMLLIB))
#
# OCaml options
#
-OCAMLFLAGS[] += -w Ae$(if $(OCAML_ACCEPTS_Z_WARNING), z)
+OCAMLFLAGS[] += -w Ae$(if $(OCAML_ACCEPTS_Z_WARNING), z)-9-27..29
if $(THREADS_ENABLED)
OCAMLFLAGS += -thread
export