lablgtk test fix
Closes Homebrew/homebrew#40927. Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
parent
7cbf4d1a35
commit
e362cd407c
1 changed files with 28 additions and 1 deletions
|
@ -33,7 +33,34 @@ class Lablgtk < Formula
|
|||
GtkMain.Main.init ()
|
||||
let _ = main ()
|
||||
EOS
|
||||
system "ocamlc", "-I", "#{Formula["lablgtk"].opt_lib}/ocaml/lablgtk2", "lablgtk.cma", "gtkInit.cmo", "test.ml", "-o", "test"
|
||||
ENV["CAML_LD_LIBRARY_PATH"] = "#{lib}/ocaml/stublibs"
|
||||
flags = %W[
|
||||
-cclib
|
||||
-latk-1.0
|
||||
-cclib
|
||||
-lcairo
|
||||
-cclib
|
||||
-lgdk-quartz-2.0
|
||||
-cclib
|
||||
-lgdk_pixbuf-2.0
|
||||
-cclib
|
||||
-lgio-2.0
|
||||
-cclib
|
||||
-lglib-2.0
|
||||
-cclib
|
||||
-lgobject-2.0
|
||||
-cclib
|
||||
-lgtk-quartz-2.0
|
||||
-cclib
|
||||
-lgtksourceview-2.0
|
||||
-cclib
|
||||
-lintl
|
||||
-cclib
|
||||
-lpango-1.0
|
||||
-cclib
|
||||
-lpangocairo-1.0
|
||||
]
|
||||
system "ocamlc", "-I", "#{Formula["lablgtk"].opt_lib}/ocaml/lablgtk2", "lablgtk.cma", "gtkInit.cmo", "test.ml", "-o", "test", *flags
|
||||
system "./test"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue