Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

deactivate "Sed"

  • Loading branch information...
commit 5948468bccb8c561c379ae87b8a55e2e48a6b0bb 1 parent 882e63a
@tuong authored
Showing with 763 additions and 2,384 deletions.
  1. +0 −97 packages/FrontC.3.4/files/opam.ml
  2. +25 −0 packages/FrontC.3.4/files/opam.patch.in
  3. +5 −2 packages/FrontC.3.4/opam
  4. +0 −97 packages/alt-ergo.0.94/files/opam.ml
  5. +21 −0 packages/alt-ergo.0.94/files/opam.patch.in
  6. +5 −2 packages/alt-ergo.0.94/opam
  7. +0 −97 packages/bigbro.2.0.4-rev3/files/opam.ml
  8. +41 −0 packages/bigbro.2.0.4-rev3/files/opam.patch.in
  9. +7 −3 packages/bigbro.2.0.4-rev3/opam
  10. +0 −97 packages/bisect.1.1/files/opam.ml
  11. +31 −0 packages/bisect.1.1/files/opam.patch.in
  12. +5 −2 packages/bisect.1.1/opam
  13. +0 −97 packages/bolt.1.2/files/opam.ml
  14. +22 −0 packages/bolt.1.2/files/opam.patch.in
  15. +5 −2 packages/bolt.1.2/opam
  16. +0 −97 packages/bolt.1.3/files/opam.ml
  17. +22 −0 packages/bolt.1.3/files/opam.patch.in
  18. +5 −2 packages/bolt.1.3/opam
  19. +0 −97 packages/cairo.0.4.1/files/opam.ml
  20. +12 −0 packages/cairo.0.4.1/files/opam.patch.in
  21. +6 −2 packages/cairo.0.4.1/opam
  22. +22 −0 packages/cairo1.ocaml-1.2.0/files/opam.patch.in
  23. +6 −2 packages/cairo1.ocaml-1.2.0/opam
  24. +0 −97 packages/cmigrep.1.5/files/opam.ml
  25. +21 −0 packages/cmigrep.1.5/files/opam.patch.in
  26. +2 −1  packages/cmigrep.1.5/opam
  27. +0 −97 packages/coq.8.3pl2/files/opam.ml
  28. +30 −0 packages/coq.8.3pl2/files/opam.patch.in
  29. +6 −3 packages/coq.8.3pl2/opam
  30. +0 −97 packages/extlib.1.5.2/files/opam.ml
  31. +12 −0 packages/extlib.1.5.2/files/opam.patch.in
  32. +5 −3 packages/extlib.1.5.2/opam
  33. +0 −97 packages/kaputt.1.1/files/opam.ml
  34. +22 −0 packages/kaputt.1.1/files/opam.patch.in
  35. +5 −2 packages/kaputt.1.1/opam
  36. +12 −0 packages/liquidsoap.1.0.1-full/files/opam.patch.in
  37. +8 −2 packages/liquidsoap.1.0.1-full/opam
  38. +0 −97 packages/missinglib.0.4.1/files/opam.ml
  39. +12 −0 packages/missinglib.0.4.1/files/opam.patch.in
  40. +6 −2 packages/missinglib.0.4.1/opam
  41. +0 −97 packages/mlpost.0.8.1/files/opam.ml
  42. +15 −0 packages/mlpost.0.8.1/files/opam.patch.in
  43. +7 −2 packages/mlpost.0.8.1/opam
  44. +0 −97 packages/ocaml-markdown.0.1.0/files/opam.ml
  45. +57 −0 packages/ocaml-markdown.0.1.0/files/opam.patch.in
  46. +10 −5 packages/ocaml-markdown.0.1.0/opam
  47. +0 −97 packages/ocamlviz.1.01/files/opam.ml
  48. +48 −0 packages/ocamlviz.1.01/files/opam.patch.in
  49. +6 −4 packages/ocamlviz.1.01/opam
  50. +0 −97 packages/odb-server.0.1/files/opam.ml
  51. +19 −0 packages/odb-server.0.1/files/opam.patch.in
  52. +2 −1  packages/odb-server.0.1/opam
  53. +0 −97 packages/omake.0.9.8.6-0.rc1/files/opam.ml
  54. +12 −0 packages/omake.0.9.8.6-0.rc1/files/opam.patch.in
  55. +5 −2 packages/omake.0.9.8.6-0.rc1/opam
  56. +0 −97 packages/pgocaml.1.6/files/opam.ml
  57. +12 −0 packages/pgocaml.1.6/files/opam.patch.in
  58. +9 −2 packages/pgocaml.1.6/opam
  59. +0 −97 packages/postgres.20040120/files/opam.ml
  60. +62 −0 packages/postgres.20040120/files/opam.patch.in
  61. +5 −2 packages/postgres.20040120/opam
  62. +0 −97 packages/regstab.2.0.0/files/opam.ml
  63. +12 −0 packages/regstab.2.0.0/files/opam.patch.in
  64. +2 −1  packages/regstab.2.0.0/opam
  65. +0 −97 packages/sqlite3-ocaml.1.6.3/files/opam.ml
  66. +16 −0 packages/sqlite3-ocaml.1.6.3/files/opam.patch.in
  67. +5 −2 packages/sqlite3-ocaml.1.6.3/opam
  68. +0 −97 packages/unison.2.40.63/files/opam.ml
  69. +20 −0 packages/unison.2.40.63/files/opam.patch.in
  70. +5 −2 packages/unison.2.40.63/opam
  71. +0 −97 packages/why.2.31/files/opam.ml
  72. +30 −0 packages/why.2.31/files/opam.patch.in
  73. +2 −1  packages/why.2.31/opam
  74. +0 −97 packages/why3.0.73/files/opam.ml
  75. +12 −0 packages/why3.0.73/files/opam.patch.in
  76. +9 −2 packages/why3.0.73/opam
View
97 packages/FrontC.3.4/files/opam.ml
@@ -1,97 +0,0 @@
-
-module type COMMAND = sig
- val s_title : string
- val main : string list -> unit
-end
-
-module type SED = sig
- include COMMAND
- val s_add_expr_no_pos : string
- val s_add_expr : string
-end
-
-module Sed : SED = struct
- module List = struct
- include List
- let mapi f l =
- List.rev (snd (List.fold_left (fun (n, l) x -> succ n, f n x :: l) (0, []) l))
- let map f = mapi (fun _ -> f)
- end
-
- let read file =
- let ic = open_in_bin file in
- let rec aux l =
- match try Some (input_line ic) with _ -> None with
- | None -> l
- | Some s -> aux (s :: l) in
- let l = aux [] in
- let () = close_in ic in
- List.rev l
-
- let write file contents =
- let oc = open_out_bin file in
- begin
- List.iter (fun s -> output_string oc (s ^ "\n")) contents;
- close_out oc;
- end
-
- let apply f file =
- write file (f (read file))
-
- let sed l_sed =
- apply
- (fun file ->
- List.fold_left
- (fun file -> function
- | Some pos, s1, s2 ->
- let reg1 = Str.regexp_string s1 in
- let rec aux rev_file n = function
- | [] -> assert false
- | x :: xs ->
- if n = pos then
- List.fold_left (fun l x -> x :: l) ((Str.global_replace reg1 s2 x) :: xs) rev_file
- else
- aux (x :: rev_file) (succ n) xs in
- aux [] 1 file
-
- | None, s1, s2 ->
- let reg1 = Str.regexp_string s1 in
- List.map (Str.global_replace reg1 s2) file)
- file
- l_sed)
-
- let repl_tbl =
- Str.global_replace (Str.regexp_string "\\t") "\t"
- (* NOTE "\x.." should be replaced too *)
-
- let s_add_expr = "_add_expr_"
- let s_add_expr_no_pos = "_add_expr_no_pos_"
- let s_title = "sed"
-
- let main l =
- let rec aux l = function
- | cmd :: n :: s1 :: s2 :: xs when cmd = s_add_expr ->
- aux ((Some (int_of_string n), repl_tbl s1, repl_tbl s2) :: l) xs
- | cmd :: s1 :: s2 :: xs when cmd = s_add_expr_no_pos -> aux ((None, repl_tbl s1, repl_tbl s2) :: l) xs
- | [fic] -> List.rev l, fic
- | _ -> assert false in
- let l, fic = aux [] l in
- sed l fic
-end
-
-let ocaml s = [ "ocaml" ; "str.cma" ; "unix.cma" ; s ]
-let s_opam = "opam.ml"
-let s_main = "main"
-
-let main () =
- match Array.to_list Sys.argv with
- | _ :: cmd_main :: l ->
- snd
- (List.find
- (function s_title, _ -> cmd_main = s_title)
- (List.map
- (fun m -> let module M = (val m : COMMAND) in M.s_title, M.main)
- [ (module Sed : COMMAND) ]))
- l
- | _ -> assert false
-let _ = main ()
View
25 packages/FrontC.3.4/files/opam.patch.in
@@ -0,0 +1,25 @@
+diff -ru /tmp/opam-25607-3684/FrontC.3.4/Makefile.head /tmp/opam-25607-3793/FrontC.3.4/Makefile.head
+--- /tmp/opam-25607-3684/FrontC.3.4/Makefile.head 2008-04-01 15:53:52.000000000 +0200
++++ /tmp/opam-25607-3793/FrontC.3.4/Makefile.head 2012-10-04 16:19:22.423550934 +0200
+@@ -84,8 +84,8 @@
+ $$(OCAMLC) -a $$($(1)_LDFLAGS) $$(OCAMLC_LDFLAGS) -o $$@ $$($(1)_CMO) $$(OCAMLC_LIBS)
+
+ _install_$(1)_CMA:
+- install -d $(OCAML_SITE)/$(1)
+- install $(1).cma $$($(1)_CMIO) $(OCAML_SITE)/$(1)
++ install -d $(OCAML_SITE)/FrontC
++ install $(1).cma $$($(1)_CMIO) $(OCAML_SITE)/FrontC
+
+ endef
+
+@@ -114,8 +114,8 @@
+ $$(OCAMLOPT) -a $$($(1)_LDFLAGS) $$(OCAMLOPT_LDFLAGS) -o $$@ $$($(1)_CMX) $$(OCAMLOPT_LIBS)
+
+ _install_$(1)_CMXA:
+- install -d $(OCAML_SITE)/$(1)
+- install $(1).cmxa $(1).a $$($(1)_CMIX) $(OCAML_SITE)/$(1)
++ install -d $(OCAML_SITE)/FrontC
++ install $(1).cmxa $(1).a $$($(1)_CMIX) $(OCAML_SITE)/FrontC
+
+ endef
+
View
7 packages/FrontC.3.4/opam
@@ -1,11 +1,14 @@
opam-version: "1"
maintainer: "contact@ocamlpro.com"
+substs: ["opam.patch"]
build: [
- ["ocaml" "str.cma" "unix.cma" "opam.ml" "sed" "_add_expr_" "87" "/$(1)" "/FrontC" "_add_expr_" "88" "/$(1)" "/FrontC" "_add_expr_" "117" "/$(1)" "/FrontC" "_add_expr_" "118" "/$(1)" "/FrontC" "Makefile.head"]
["%{make}%" "install" "PREFIX=%{lib}%" "OCAML_SITE=%{lib}%"]
["cp" "META" "%{lib}%/FrontC"]
]
remove: [
["ocamlfind" "remove" "FrontC"]
]
-depends: ["ocamlfind"]
+depends: [
+ "ocamlfind"
+]
+patches: ["opam.patch"]
View
97 packages/alt-ergo.0.94/files/opam.ml
@@ -1,97 +0,0 @@
-
-module type COMMAND = sig
- val s_title : string
- val main : string list -> unit
-end
-
-module type SED = sig
- include COMMAND
- val s_add_expr_no_pos : string
- val s_add_expr : string
-end
-
-module Sed : SED = struct
- module List = struct
- include List
- let mapi f l =
- List.rev (snd (List.fold_left (fun (n, l) x -> succ n, f n x :: l) (0, []) l))
- let map f = mapi (fun _ -> f)
- end
-
- let read file =
- let ic = open_in_bin file in
- let rec aux l =
- match try Some (input_line ic) with _ -> None with
- | None -> l
- | Some s -> aux (s :: l) in
- let l = aux [] in
- let () = close_in ic in
- List.rev l
-
- let write file contents =
- let oc = open_out_bin file in
- begin
- List.iter (fun s -> output_string oc (s ^ "\n")) contents;
- close_out oc;
- end
-
- let apply f file =
- write file (f (read file))
-
- let sed l_sed =
- apply
- (fun file ->
- List.fold_left
- (fun file -> function
- | Some pos, s1, s2 ->
- let reg1 = Str.regexp_string s1 in
- let rec aux rev_file n = function
- | [] -> assert false
- | x :: xs ->
- if n = pos then
- List.fold_left (fun l x -> x :: l) ((Str.global_replace reg1 s2 x) :: xs) rev_file
- else
- aux (x :: rev_file) (succ n) xs in
- aux [] 1 file
-
- | None, s1, s2 ->
- let reg1 = Str.regexp_string s1 in
- List.map (Str.global_replace reg1 s2) file)
- file
- l_sed)
-
- let repl_tbl =
- Str.global_replace (Str.regexp_string "\\t") "\t"
- (* NOTE "\x.." should be replaced too *)
-
- let s_add_expr = "_add_expr_"
- let s_add_expr_no_pos = "_add_expr_no_pos_"
- let s_title = "sed"
-
- let main l =
- let rec aux l = function
- | cmd :: n :: s1 :: s2 :: xs when cmd = s_add_expr ->
- aux ((Some (int_of_string n), repl_tbl s1, repl_tbl s2) :: l) xs
- | cmd :: s1 :: s2 :: xs when cmd = s_add_expr_no_pos -> aux ((None, repl_tbl s1, repl_tbl s2) :: l) xs
- | [fic] -> List.rev l, fic
- | _ -> assert false in
- let l, fic = aux [] l in
- sed l fic
-end
-
-let ocaml s = [ "ocaml" ; "str.cma" ; "unix.cma" ; s ]
-let s_opam = "opam.ml"
-let s_main = "main"
-
-let main () =
- match Array.to_list Sys.argv with
- | _ :: cmd_main :: l ->
- snd
- (List.find
- (function s_title, _ -> cmd_main = s_title)
- (List.map
- (fun m -> let module M = (val m : COMMAND) in M.s_title, M.main)
- [ (module Sed : COMMAND) ]))
- l
- | _ -> assert false
-let _ = main ()
View
21 packages/alt-ergo.0.94/files/opam.patch.in
@@ -0,0 +1,21 @@
+diff -ru /tmp/opam-25607-3017/alt-ergo.0.94/configure.in /tmp/opam-25607-128/alt-ergo.0.94/configure.in
+--- /tmp/opam-25607-3017/alt-ergo.0.94/configure.in 2011-12-07 10:37:55.000000000 +0100
++++ /tmp/opam-25607-128/alt-ergo.0.94/configure.in 2012-10-04 16:19:23.614176085 +0200
+@@ -75,7 +75,7 @@
+
+ #looking for ocamlgraph library
+
+-AC_CHECK_FILE($OCAMLLIB/ocamlgraph/graph.cmi,OCAMLGRAPH=yes,OCAMLGRAPH=no)
++AC_CHECK_FILE(%{lib}%/ocamlgraph/graph.cmi,OCAMLGRAPH=yes,OCAMLGRAPH=no)
+ if test "$OCAMLGRAPH" = no ; then
+ AC_CHECK_FILE($OCAMLLIB/graph.cmi,OCAMLGRAPH=yes,OCAMLGRAPH=no)
+ if test "$OCAMLGRAPH" = no ; then
+@@ -84,7 +84,7 @@
+ OCAMLGRAPHLIB=""
+ fi
+ else
+- OCAMLGRAPHLIB="-I +ocamlgraph"
++ OCAMLGRAPHLIB="-I %{lib}%/ocamlgraph"
+ fi
+
+ # then we look for ocamlopt; if not present, we issue a warning
View
7 packages/alt-ergo.0.94/opam
@@ -1,10 +1,13 @@
opam-version: "1"
maintainer: "contact@ocamlpro.com"
+substs: ["opam.patch"]
build: [
- ["ocaml" "str.cma" "unix.cma" "opam.ml" "sed" "_add_expr_" "78" "$OCAMLLIB" "%{lib}%" "_add_expr_" "87" "+ocamlgraph" "%{lib}%/ocamlgraph" "configure.in"]
["autoconf"]
["./configure" "-prefix" "%{prefix}%"]
["%{make}%"]
["%{make}%" "install" "MANDIR=%{man}%/man1"]
]
-depends: ["ocamlgraph" {= "1.8.2"}]
+depends: [
+ "ocamlgraph" {= "1.8.2"}
+]
+patches: ["opam.patch"]
View
97 packages/bigbro.2.0.4-rev3/files/opam.ml
@@ -1,97 +0,0 @@
-
-module type COMMAND = sig
- val s_title : string
- val main : string list -> unit
-end
-
-module type SED = sig
- include COMMAND
- val s_add_expr_no_pos : string
- val s_add_expr : string
-end
-
-module Sed : SED = struct
- module List = struct
- include List
- let mapi f l =
- List.rev (snd (List.fold_left (fun (n, l) x -> succ n, f n x :: l) (0, []) l))
- let map f = mapi (fun _ -> f)
- end
-
- let read file =
- let ic = open_in_bin file in
- let rec aux l =
- match try Some (input_line ic) with _ -> None with
- | None -> l
- | Some s -> aux (s :: l) in
- let l = aux [] in
- let () = close_in ic in
- List.rev l
-
- let write file contents =
- let oc = open_out_bin file in
- begin
- List.iter (fun s -> output_string oc (s ^ "\n")) contents;
- close_out oc;
- end
-
- let apply f file =
- write file (f (read file))
-
- let sed l_sed =
- apply
- (fun file ->
- List.fold_left
- (fun file -> function
- | Some pos, s1, s2 ->
- let reg1 = Str.regexp_string s1 in
- let rec aux rev_file n = function
- | [] -> assert false
- | x :: xs ->
- if n = pos then
- List.fold_left (fun l x -> x :: l) ((Str.global_replace reg1 s2 x) :: xs) rev_file
- else
- aux (x :: rev_file) (succ n) xs in
- aux [] 1 file
-
- | None, s1, s2 ->
- let reg1 = Str.regexp_string s1 in
- List.map (Str.global_replace reg1 s2) file)
- file
- l_sed)
-
- let repl_tbl =
- Str.global_replace (Str.regexp_string "\\t") "\t"
- (* NOTE "\x.." should be replaced too *)
-
- let s_add_expr = "_add_expr_"
- let s_add_expr_no_pos = "_add_expr_no_pos_"
- let s_title = "sed"
-
- let main l =
- let rec aux l = function
- | cmd :: n :: s1 :: s2 :: xs when cmd = s_add_expr ->
- aux ((Some (int_of_string n), repl_tbl s1, repl_tbl s2) :: l) xs
- | cmd :: s1 :: s2 :: xs when cmd = s_add_expr_no_pos -> aux ((None, repl_tbl s1, repl_tbl s2) :: l) xs
- | [fic] -> List.rev l, fic
- | _ -> assert false in
- let l, fic = aux [] l in
- sed l fic
-end
-
-let ocaml s = [ "ocaml" ; "str.cma" ; "unix.cma" ; s ]
-let s_opam = "opam.ml"
-let s_main = "main"
-
-let main () =
- match Array.to_list Sys.argv with
- | _ :: cmd_main :: l ->
- snd
- (List.find
- (function s_title, _ -> cmd_main = s_title)
- (List.map
- (fun m -> let module M = (val m : COMMAND) in M.s_title, M.main)
- [ (module Sed : COMMAND) ]))
- l
- | _ -> assert false
-let _ = main ()
View
41 packages/bigbro.2.0.4-rev3/files/opam.patch.in
@@ -0,0 +1,41 @@
+diff -ru /tmp/opam-25607-3051/bigbro.2.0.4-rev3/Makefile /tmp/opam-25607-3399/bigbro.2.0.4-rev3/Makefile
+--- /tmp/opam-25607-3051/bigbro.2.0.4-rev3/Makefile 2006-02-13 22:36:08.000000000 +0100
++++ /tmp/opam-25607-3399/bigbro.2.0.4-rev3/Makefile 2012-10-04 16:19:05.823550316 +0200
+@@ -28,10 +28,10 @@
+ CAMLC=ocamlfind ocamlc
+ CAMLDEP=ocamldep
+ CAMLMKTOP=ocamlfind ocamlmktop
+-CAMLP4=camlp4o
++CAMLP4=camlp5o
+ P4INCLUDE:=-I $(shell $(CAMLP4) -where)
+ INCLUDE=-package "unix threads pcre"
+-COMPFLAGS=-thread -g -pp $(CAMLP4) $(INCLUDE)
++COMPFLAGS=-thread -g -pp "$(CAMLP4) -loc _loc" $(INCLUDE)
+
+ # ---------------------------------------------------------------------------------------------------------------------
+ # The list of bytecode files to be linked.
+@@ -98,10 +98,10 @@
+ # The usual way to compile O'Caml programs.
+
+ .generated-dependencies: *.ml *.mli
+- $(CAMLC) -pp $(CAMLP4) $(P4INCLUDE) -c $(GRAMMAR).ml
++ $(CAMLC) -pp "$(CAMLP4) -loc _loc" $(P4INCLUDE) -c $(GRAMMAR).ml
+ rm -rf .generated-dependencies
+ for i in *.mli *.ml ; do \
+- $(CAMLP4) pr_depend.cmo $$i >> .generated-dependencies; \
++ $(CAMLP4) pr_depend.cmo -loc _loc $$i >> .generated-dependencies; \
+ done
+
+ ifneq ($(MAKECMDGOALS),clean)
+diff -ru /tmp/opam-25607-3051/bigbro.2.0.4-rev3/pcreg.ml /tmp/opam-25607-3399/bigbro.2.0.4-rev3/pcreg.ml
+--- /tmp/opam-25607-3051/bigbro.2.0.4-rev3/pcreg.ml 2006-02-13 22:36:08.000000000 +0100
++++ /tmp/opam-25607-3399/bigbro.2.0.4-rev3/pcreg.ml 2012-10-04 16:19:05.863550923 +0200
+@@ -21,7 +21,7 @@
+ (* This function allows registering a new global declaration. It can be called within a grammar rule. *)
+
+ let dummy_loc =
+- Lexing.dummy_pos, Lexing.dummy_pos
++ Ploc.dummy
+
+ let declare (item : MLast.str_item) =
+ globals := (item, dummy_loc) :: !globals
View
10 packages/bigbro.2.0.4-rev3/opam
@@ -1,9 +1,13 @@
opam-version: "1"
maintainer: "contact@ocamlpro.com"
+substs: ["opam.patch"]
build: [
- ["ocaml" "str.cma" "unix.cma" "opam.ml" "sed" "_add_expr_" "31" "camlp4o" "camlp5o" "_add_expr_" "34" "$(CAMLP4)" "\"$(CAMLP4) -loc _loc\"" "_add_expr_" "101" "$(CAMLP4)" "\"$(CAMLP4) -loc _loc\"" "_add_expr_" "104" "cmo" "cmo -loc _loc" "Makefile"]
- ["ocaml" "str.cma" "unix.cma" "opam.ml" "sed" "_add_expr_" "24" "Lexing.dummy_pos, Lexing.dummy_pos" "Ploc.dummy" "pcreg.ml"]
["%{make}%"]
["%{make}%" "install" "PREFIX=%{prefix}%" "MANDIR=%{man}%/man1"]
]
-depends: ["ocamlfind" "pcre-ocaml" "camlp5"]
+depends: [
+ "ocamlfind"
+ "pcre-ocaml"
+ "camlp5"
+]
+patches: ["opam.patch"]
View
97 packages/bisect.1.1/files/opam.ml
@@ -1,97 +0,0 @@
-
-module type COMMAND = sig
- val s_title : string
- val main : string list -> unit
-end
-
-module type SED = sig
- include COMMAND
- val s_add_expr_no_pos : string
- val s_add_expr : string
-end
-
-module Sed : SED = struct
- module List = struct
- include List
- let mapi f l =
- List.rev (snd (List.fold_left (fun (n, l) x -> succ n, f n x :: l) (0, []) l))
- let map f = mapi (fun _ -> f)
- end
-
- let read file =
- let ic = open_in_bin file in
- let rec aux l =
- match try Some (input_line ic) with _ -> None with
- | None -> l
- | Some s -> aux (s :: l) in
- let l = aux [] in
- let () = close_in ic in
- List.rev l
-
- let write file contents =
- let oc = open_out_bin file in
- begin
- List.iter (fun s -> output_string oc (s ^ "\n")) contents;
- close_out oc;
- end
-
- let apply f file =
- write file (f (read file))
-
- let sed l_sed =
- apply
- (fun file ->
- List.fold_left
- (fun file -> function
- | Some pos, s1, s2 ->
- let reg1 = Str.regexp_string s1 in
- let rec aux rev_file n = function
- | [] -> assert false
- | x :: xs ->
- if n = pos then
- List.fold_left (fun l x -> x :: l) ((Str.global_replace reg1 s2 x) :: xs) rev_file
- else
- aux (x :: rev_file) (succ n) xs in
- aux [] 1 file
-
- | None, s1, s2 ->
- let reg1 = Str.regexp_string s1 in
- List.map (Str.global_replace reg1 s2) file)
- file
- l_sed)
-
- let repl_tbl =
- Str.global_replace (Str.regexp_string "\\t") "\t"
- (* NOTE "\x.." should be replaced too *)
-
- let s_add_expr = "_add_expr_"
- let s_add_expr_no_pos = "_add_expr_no_pos_"
- let s_title = "sed"
-
- let main l =
- let rec aux l = function
- | cmd :: n :: s1 :: s2 :: xs when cmd = s_add_expr ->
- aux ((Some (int_of_string n), repl_tbl s1, repl_tbl s2) :: l) xs
- | cmd :: s1 :: s2 :: xs when cmd = s_add_expr_no_pos -> aux ((None, repl_tbl s1, repl_tbl s2) :: l) xs
- | [fic] -> List.rev l, fic
- | _ -> assert false in
- let l, fic = aux [] l in
- sed l fic
-end
-
-let ocaml s = [ "ocaml" ; "str.cma" ; "unix.cma" ; s ]
-let s_opam = "opam.ml"
-let s_main = "main"
-
-let main () =
- match Array.to_list Sys.argv with
- | _ :: cmd_main :: l ->
- snd
- (List.find
- (function s_title, _ -> cmd_main = s_title)
- (List.map
- (fun m -> let module M = (val m : COMMAND) in M.s_title, M.main)
- [ (module Sed : COMMAND) ]))
- l
- | _ -> assert false
-let _ = main ()
View
31 packages/bisect.1.1/files/opam.patch.in
@@ -0,0 +1,31 @@
+diff -ru /tmp/opam-25607-2112/bisect.1.1/Makefile /tmp/opam-25607-1977/bisect.1.1/Makefile
+--- /tmp/opam-25607-2112/bisect.1.1/Makefile 2011-02-12 14:40:23.000000000 +0100
++++ /tmp/opam-25607-1977/bisect.1.1/Makefile 2012-10-04 16:19:06.634173986 +0200
+@@ -31,7 +31,7 @@
+ # DEFINITIONS
+
+ PROJECT_NAME=bisect
+-OCAMLBUILD=$(PATH_OCAML_PREFIX)/bin/ocamlbuild
++OCAMLBUILD=ocamlbuild
+ OCAMLBUILD_FLAGS=-classic-display -no-links
+ MODULES_ODOCL=$(PROJECT_NAME).odocl
+ MODULES_MLPACK=$(PROJECT_NAME).mlpack
+@@ -75,7 +75,7 @@
+
+ install: all
+ cp $(PATH_BUILD)/src/report/report.byte $(PATH_OCAML_PREFIX)/bin/bisect-report; \
+- (test -x $(PATH_OCAML_PREFIX)/bin/ocamlopt && cp $(PATH_BUILD)/src/report/report.native $(PATH_OCAML_PREFIX)/bin/bisect-report.opt || true); \
++ (which ocamlopt && cp $(PATH_BUILD)/src/report/report.native $(PATH_OCAML_PREFIX)/bin/bisect-report.opt || true); \
+ if [ -x "$(PATH_OCAMLFIND)" ]; then \
+ $(PATH_OCAMLFIND) query $(PROJECT_NAME) && $(PATH_OCAMLFIND) remove $(PROJECT_NAME) || true; \
+ $(PATH_OCAMLFIND) install $(PROJECT_NAME) META -optional \
+@@ -101,7 +101,7 @@
+
+ generate: FORCE
+ echo '$(PROJECT_NAME).cma' > $(PROJECT_NAME).itarget
+- (test -x $(PATH_OCAML_PREFIX)/bin/ocamlopt && echo '$(PROJECT_NAME).cmxa' >> $(PROJECT_NAME).itarget) || true
+- (test -x $(PATH_OCAML_PREFIX)/bin/ocamljava && echo '$(PROJECT_NAME).cmja' >> $(PROJECT_NAME).itarget) || true
++ (which ocamlopt && echo '$(PROJECT_NAME).cmxa' >> $(PROJECT_NAME).itarget) || true
++ (which ocamljava && echo '$(PROJECT_NAME).cmja' >> $(PROJECT_NAME).itarget) || true
+
+ FORCE:
View
7 packages/bisect.1.1/opam
@@ -1,7 +1,7 @@
opam-version: "1"
maintainer: "contact@ocamlpro.com"
+substs: ["opam.patch"]
build: [
- ["ocaml" "str.cma" "unix.cma" "opam.ml" "sed" "_add_expr_" "78" "test -x $(PATH_OCAML_PREFIX)/bin/" "which " "_add_expr_" "104" "test -x $(PATH_OCAML_PREFIX)/bin/" "which " "_add_expr_" "105" "test -x $(PATH_OCAML_PREFIX)/bin/" "which " "_add_expr_" "34" "$(PATH_OCAML_PREFIX)/bin/" "" "Makefile"]
["sh" "configure" "-ocaml-prefix" "%{prefix}%" "-ocamlfind" "%{bin}%/ocamlfind"]
["%{make}%"]
["%{make}%" "install"]
@@ -9,4 +9,7 @@ build: [
remove: [
["ocamlfind" "remove" "bisect"]
]
-depends: ["ocamlfind"]
+depends: [
+ "ocamlfind"
+]
+patches: ["opam.patch"]
View
97 packages/bolt.1.2/files/opam.ml
@@ -1,97 +0,0 @@
-
-module type COMMAND = sig
- val s_title : string
- val main : string list -> unit
-end
-
-module type SED = sig
- include COMMAND
- val s_add_expr_no_pos : string
- val s_add_expr : string
-end
-
-module Sed : SED = struct
- module List = struct
- include List
- let mapi f l =
- List.rev (snd (List.fold_left (fun (n, l) x -> succ n, f n x :: l) (0, []) l))
- let map f = mapi (fun _ -> f)
- end
-
- let read file =
- let ic = open_in_bin file in
- let rec aux l =
- match try Some (input_line ic) with _ -> None with
- | None -> l
- | Some s -> aux (s :: l) in
- let l = aux [] in
- let () = close_in ic in
- List.rev l
-
- let write file contents =
- let oc = open_out_bin file in
- begin
- List.iter (fun s -> output_string oc (s ^ "\n")) contents;
- close_out oc;
- end
-
- let apply f file =
- write file (f (read file))
-
- let sed l_sed =
- apply
- (fun file ->
- List.fold_left
- (fun file -> function
- | Some pos, s1, s2 ->
- let reg1 = Str.regexp_string s1 in
- let rec aux rev_file n = function
- | [] -> assert false
- | x :: xs ->
- if n = pos then
- List.fold_left (fun l x -> x :: l) ((Str.global_replace reg1 s2 x) :: xs) rev_file
- else
- aux (x :: rev_file) (succ n) xs in
- aux [] 1 file
-
- | None, s1, s2 ->
- let reg1 = Str.regexp_string s1 in
- List.map (Str.global_replace reg1 s2) file)
- file
- l_sed)
-
- let repl_tbl =
- Str.global_replace (Str.regexp_string "\\t") "\t"
- (* NOTE "\x.." should be replaced too *)
-
- let s_add_expr = "_add_expr_"
- let s_add_expr_no_pos = "_add_expr_no_pos_"
- let s_title = "sed"
-
- let main l =
- let rec aux l = function
- | cmd :: n :: s1 :: s2 :: xs when cmd = s_add_expr ->
- aux ((Some (int_of_string n), repl_tbl s1, repl_tbl s2) :: l) xs
- | cmd :: s1 :: s2 :: xs when cmd = s_add_expr_no_pos -> aux ((None, repl_tbl s1, repl_tbl s2) :: l) xs
- | [fic] -> List.rev l, fic
- | _ -> assert false in
- let l, fic = aux [] l in
- sed l fic
-end
-
-let ocaml s = [ "ocaml" ; "str.cma" ; "unix.cma" ; s ]
-let s_opam = "opam.ml"
-let s_main = "main"
-
-let main () =
- match Array.to_list Sys.argv with
- | _ :: cmd_main :: l ->
- snd
- (List.find
- (function s_title, _ -> cmd_main = s_title)
- (List.map
- (fun m -> let module M = (val m : COMMAND) in M.s_title, M.main)
- [ (module Sed : COMMAND) ]))
- l
- | _ -> assert false
-let _ = main ()
View
22 packages/bolt.1.2/files/opam.patch.in
@@ -0,0 +1,22 @@
+diff -ru /tmp/opam-25607-181/bolt.1.2/Makefile /tmp/opam-25607-3860/bolt.1.2/Makefile
+--- /tmp/opam-25607-181/bolt.1.2/Makefile 2011-08-15 16:00:48.000000000 +0200
++++ /tmp/opam-25607-3860/bolt.1.2/Makefile 2012-10-04 16:19:15.773551565 +0200
+@@ -31,7 +31,7 @@
+ # DEFINITIONS
+
+ PROJECT_NAME=bolt
+-OCAMLBUILD=$(PATH_OCAML_PREFIX)/bin/ocamlbuild
++OCAMLBUILD=ocamlbuild
+ OCAMLBUILD_FLAGS=-classic-display -no-links
+ MODULES_ODOCL=$(PROJECT_NAME).odocl
+ MODULES_MLPACK=$(PROJECT_NAME).mlpack
+@@ -100,7 +100,7 @@
+
+ generate: FORCE
+ echo '$(PROJECT_NAME).cma' > $(PROJECT_NAME).itarget
+- (test -x $(PATH_OCAML_PREFIX)/bin/ocamlopt && echo '$(PROJECT_NAME).cmxa' >> $(PROJECT_NAME).itarget) || true
+- (test -x $(PATH_OCAML_PREFIX)/bin/ocamljava && echo '$(PROJECT_NAME).cmjo' >> $(PROJECT_NAME).itarget) || true
++ (which ocamlopt && echo '$(PROJECT_NAME).cmxa' >> $(PROJECT_NAME).itarget) || true
++ (which ocamljava && echo '$(PROJECT_NAME).cmjo' >> $(PROJECT_NAME).itarget) || true
+
+ FORCE:
View
7 packages/bolt.1.2/opam
@@ -1,7 +1,7 @@
opam-version: "1"
maintainer: "contact@ocamlpro.com"
+substs: ["opam.patch"]
build: [
- ["ocaml" "str.cma" "unix.cma" "opam.ml" "sed" "_add_expr_" "103" "test -x $(PATH_OCAML_PREFIX)/bin/" "which " "_add_expr_" "104" "test -x $(PATH_OCAML_PREFIX)/bin/" "which " "_add_expr_" "34" "$(PATH_OCAML_PREFIX)/bin/" "" "Makefile"]
["sh" "configure" "-ocaml-prefix" "%{prefix}%" "-ocamlfind" "%{bin}%/ocamlfind"]
["%{make}%"]
["%{make}%" "install"]
@@ -9,5 +9,8 @@ build: [
remove: [
["ocamlfind" "remove" "bolt"]
]
-depends: ["ocamlfind"]
+depends: [
+ "ocamlfind"
+]
+patches: ["opam.patch"]
ocaml-version: [= "3.12.1"]
View
97 packages/bolt.1.3/files/opam.ml
@@ -1,97 +0,0 @@
-
-module type COMMAND = sig
- val s_title : string
- val main : string list -> unit
-end
-
-module type SED = sig
- include COMMAND
- val s_add_expr_no_pos : string
- val s_add_expr : string
-end
-
-module Sed : SED = struct
- module List = struct
- include List
- let mapi f l =
- List.rev (snd (List.fold_left (fun (n, l) x -> succ n, f n x :: l) (0, []) l))
- let map f = mapi (fun _ -> f)
- end
-
- let read file =
- let ic = open_in_bin file in
- let rec aux l =
- match try Some (input_line ic) with _ -> None with
- | None -> l
- | Some s -> aux (s :: l) in
- let l = aux [] in
- let () = close_in ic in
- List.rev l
-
- let write file contents =
- let oc = open_out_bin file in
- begin
- List.iter (fun s -> output_string oc (s ^ "\n")) contents;
- close_out oc;
- end
-
- let apply f file =
- write file (f (read file))
-
- let sed l_sed =
- apply
- (fun file ->
- List.fold_left
- (fun file -> function
- | Some pos, s1, s2 ->
- let reg1 = Str.regexp_string s1 in
- let rec aux rev_file n = function
- | [] -> assert false
- | x :: xs ->
- if n = pos then
- List.fold_left (fun l x -> x :: l) ((Str.global_replace reg1 s2 x) :: xs) rev_file
- else
- aux (x :: rev_file) (succ n) xs in
- aux [] 1 file
-
- | None, s1, s2 ->
- let reg1 = Str.regexp_string s1 in
- List.map (Str.global_replace reg1 s2) file)
- file
- l_sed)
-
- let repl_tbl =
- Str.global_replace (Str.regexp_string "\\t") "\t"
- (* NOTE "\x.." should be replaced too *)
-
- let s_add_expr = "_add_expr_"
- let s_add_expr_no_pos = "_add_expr_no_pos_"
- let s_title = "sed"
-
- let main l =
- let rec aux l = function
- | cmd :: n :: s1 :: s2 :: xs when cmd = s_add_expr ->
- aux ((Some (int_of_string n), repl_tbl s1, repl_tbl s2) :: l) xs
- | cmd :: s1 :: s2 :: xs when cmd = s_add_expr_no_pos -> aux ((None, repl_tbl s1, repl_tbl s2) :: l) xs
- | [fic] -> List.rev l, fic
- | _ -> assert false in
- let l, fic = aux [] l in
- sed l fic
-end
-
-let ocaml s = [ "ocaml" ; "str.cma" ; "unix.cma" ; s ]
-let s_opam = "opam.ml"
-let s_main = "main"
-
-let main () =
- match Array.to_list Sys.argv with
- | _ :: cmd_main :: l ->
- snd
- (List.find
- (function s_title, _ -> cmd_main = s_title)
- (List.map
- (fun m -> let module M = (val m : COMMAND) in M.s_title, M.main)
- [ (module Sed : COMMAND) ]))
- l
- | _ -> assert false
-let _ = main ()
View
22 packages/bolt.1.3/files/opam.patch.in
@@ -0,0 +1,22 @@
+diff -ru /tmp/opam-25607-2673/bolt.1.3/Makefile /tmp/opam-25607-1976/bolt.1.3/Makefile
+--- /tmp/opam-25607-2673/bolt.1.3/Makefile 2012-08-15 19:38:52.000000000 +0200
++++ /tmp/opam-25607-1976/bolt.1.3/Makefile 2012-10-04 16:19:16.723552004 +0200
+@@ -31,7 +31,7 @@
+ # DEFINITIONS
+
+ PROJECT_NAME=bolt
+-OCAMLBUILD=$(PATH_OCAML_PREFIX)/bin/ocamlbuild
++OCAMLBUILD=ocamlbuild
+ OCAMLBUILD_FLAGS=-classic-display -no-links
+ MODULES_ODOCL=$(PROJECT_NAME).odocl
+ MODULES_MLPACK=$(PROJECT_NAME).mlpack
+@@ -100,7 +100,7 @@
+
+ generate: FORCE
+ echo '$(PROJECT_NAME).cma' > $(PROJECT_NAME).itarget
+- (test -x $(PATH_OCAML_PREFIX)/bin/ocamlopt && echo '$(PROJECT_NAME).cmxa' >> $(PROJECT_NAME).itarget) || true
+- (test -x $(PATH_OCAML_PREFIX)/bin/ocamljava && echo '$(PROJECT_NAME).cmjo' >> $(PROJECT_NAME).itarget) || true
++ (which ocamlopt && echo '$(PROJECT_NAME).cmxa' >> $(PROJECT_NAME).itarget) || true
++ (which ocamljava && echo '$(PROJECT_NAME).cmjo' >> $(PROJECT_NAME).itarget) || true
+
+ FORCE:
View
7 packages/bolt.1.3/opam
@@ -1,7 +1,7 @@
opam-version: "1"
maintainer: "contact@ocamlpro.com"
+substs: ["opam.patch"]
build: [
- ["ocaml" "str.cma" "unix.cma" "opam.ml" "sed" "_add_expr_" "103" "test -x $(PATH_OCAML_PREFIX)/bin/" "which " "_add_expr_" "104" "test -x $(PATH_OCAML_PREFIX)/bin/" "which " "_add_expr_" "34" "$(PATH_OCAML_PREFIX)/bin/" "" "Makefile"]
["./configure" "-ocaml-prefix" "%{prefix}%" "-ocamlfind" "%{bin}%/ocamlfind"]
["%{make}%"]
["%{make}%" "install"]
@@ -9,4 +9,7 @@ build: [
remove: [
["ocamlfind" "remove" "bolt"]
]
-depends: ["ocamlfind"]
+depends: [
+ "ocamlfind"
+]
+patches: ["opam.patch"]
View
97 packages/cairo.0.4.1/files/opam.ml
@@ -1,97 +0,0 @@
-
-module type COMMAND = sig
- val s_title : string
- val main : string list -> unit
-end
-
-module type SED = sig
- include COMMAND
- val s_add_expr_no_pos : string
- val s_add_expr : string
-end
-
-module Sed : SED = struct
- module List = struct
- include List
- let mapi f l =
- List.rev (snd (List.fold_left (fun (n, l) x -> succ n, f n x :: l) (0, []) l))
- let map f = mapi (fun _ -> f)
- end
-
- let read file =
- let ic = open_in_bin file in
- let rec aux l =
- match try Some (input_line ic) with _ -> None with
- | None -> l
- | Some s -> aux (s :: l) in
- let l = aux [] in
- let () = close_in ic in
- List.rev l
-
- let write file contents =
- let oc = open_out_bin file in
- begin
- List.iter (fun s -> output_string oc (s ^ "\n")) contents;
- close_out oc;
- end
-
- let apply f file =
- write file (f (read file))
-
- let sed l_sed =
- apply
- (fun file ->
- List.fold_left
- (fun file -> function
- | Some pos, s1, s2 ->
- let reg1 = Str.regexp_string s1 in
- let rec aux rev_file n = function
- | [] -> assert false
- | x :: xs ->
- if n = pos then
- List.fold_left (fun l x -> x :: l) ((Str.global_replace reg1 s2 x) :: xs) rev_file
- else
- aux (x :: rev_file) (succ n) xs in
- aux [] 1 file
-
- | None, s1, s2 ->
- let reg1 = Str.regexp_string s1 in
- List.map (Str.global_replace reg1 s2) file)
- file
- l_sed)
-
- let repl_tbl =
- Str.global_replace (Str.regexp_string "\\t") "\t"
- (* NOTE "\x.." should be replaced too *)
-
- let s_add_expr = "_add_expr_"
- let s_add_expr_no_pos = "_add_expr_no_pos_"
- let s_title = "sed"
-
- let main l =
- let rec aux l = function
- | cmd :: n :: s1 :: s2 :: xs when cmd = s_add_expr ->
- aux ((Some (int_of_string n), repl_tbl s1, repl_tbl s2) :: l) xs
- | cmd :: s1 :: s2 :: xs when cmd = s_add_expr_no_pos -> aux ((None, repl_tbl s1, repl_tbl s2) :: l) xs
- | [fic] -> List.rev l, fic
- | _ -> assert false in
- let l, fic = aux [] l in
- sed l fic
-end
-
-let ocaml s = [ "ocaml" ; "str.cma" ; "unix.cma" ; s ]
-let s_opam = "opam.ml"
-let s_main = "main"
-
-let main () =
- match Array.to_list Sys.argv with
- | _ :: cmd_main :: l ->
- snd
- (List.find
- (function s_title, _ -> cmd_main = s_title)
- (List.map
- (fun m -> let module M = (val m : COMMAND) in M.s_title, M.main)
- [ (module Sed : COMMAND) ]))
- l
- | _ -> assert false
-let _ = main ()
View
12 packages/cairo.0.4.1/files/opam.patch.in
@@ -0,0 +1,12 @@
+diff -ru /tmp/opam-25607-2077/cairo.0.4.1/setup.ml /tmp/opam-25607-3868/cairo.0.4.1/setup.ml
+--- /tmp/opam-25607-2077/cairo.0.4.1/setup.ml 2011-12-30 17:23:59.000000000 +0100
++++ /tmp/opam-25607-3868/cairo.0.4.1/setup.ml 2012-10-04 16:19:32.494176371 +0200
+@@ -5999,7 +5999,7 @@
+ | "Unix" | "Cygwin" -> "-o " ^ exe
+ | "Win32" -> "/Fe" ^ exe
+ | _ -> assert false in
+- let args = o :: stdlib :: (flags @ [tmp]) in
++ let args = o :: stdlib :: (tmp :: flags @ []) in
+ let f_exit_code e =
+ if e <> 0 then (compile_err(); Sys.remove tmp; exit 1) in
+ BaseExec.run cc args ~f_exit_code;
View
8 packages/cairo.0.4.1/opam
@@ -1,7 +1,7 @@
opam-version: "1"
maintainer: "contact@ocamlpro.com"
+substs: ["opam.patch"]
build: [
- ["ocaml" "str.cma" "unix.cma" "opam.ml" "sed" "_add_expr_" "6002" "tmp" "" "_add_expr_" "6002" "flags" "tmp :: flags" "setup.ml"]
["ocaml" "setup.ml" "-configure" "--prefix" "%{prefix}%"]
["ocaml" "setup.ml" "-build"]
["ocaml" "setup.ml" "-install"]
@@ -9,5 +9,9 @@ build: [
remove: [
["ocamlfind" "remove" "cairo2"]
]
-depends: ["ocamlfind" "lablgtk" {= "2.14.2-oasis8"}]
+depends: [
+ "ocamlfind"
+ "lablgtk" {= "2.14.2-oasis8"}
+]
+patches: ["opam.patch"]
ocaml-version: [= "3.12.1"]
View
22 packages/cairo1.ocaml-1.2.0/files/opam.patch.in
@@ -0,0 +1,22 @@
+diff -ru /tmp/opam-25607-1226/cairo1.ocaml-1.2.0/src/Makefile /tmp/opam-25607-1760/cairo1.ocaml-1.2.0/src/Makefile
+--- /tmp/opam-25607-1226/cairo1.ocaml-1.2.0/src/Makefile 2010-04-11 23:17:32.000000000 +0200
++++ /tmp/opam-25607-1760/cairo1.ocaml-1.2.0/src/Makefile 2012-10-04 16:19:33.903552162 +0200
+@@ -87,15 +87,15 @@
+ $(call mloptobjs,$(pangocairo_SRC)) : INCFLAGS=-I $(LABLGTKDIR)
+
+ install: all
+- mkdir -p $(DESTDIR)$(INSTALLDIR) $(DESTDIR)$(OCAMLLIB)/stublibs
++ mkdir -p $(DESTDIR)$(INSTALLDIR) %{prefix}%/lib/stublibs
+ install -m 644 *.mli *.cmi *.cma lib*.a $(DESTDIR)$(INSTALLDIR)
+ ifdef OCAMLOPT
+ install -m644 *.cmxa *.a *.cmx $(DESTDIR)$(INSTALLDIR)
+ endif
+ install -m 755 dll*.so $(DESTDIR)$(INSTALLDIR)
+- if test -w $(DESTDIR)$(OCAMLLIB)/stublibs ; then \
++ if test -w %{prefix}%/lib/stublibs ; then \
+ for lib in dll*.so ; do \
+- ln -s $(INSTALLDIR)/$$lib $(DESTDIR)$(OCAMLLIB)/stublibs ; done ; fi
++ ln -s $(INSTALLDIR)/$$lib %{prefix}%/lib/stublibs ; done ; fi
+
+ DOCFILES = cairo.mli cairo_bigarray.mli cairo_png.mli cairo_pdf.mli cairo_ps.mli cairo_ft.mli
+ ifdef LABLGTKDIR
View
8 packages/cairo1.ocaml-1.2.0/opam
@@ -1,11 +1,11 @@
opam-version: "1"
maintainer: "contact@ocamlpro.com"
+substs: ["opam.patch"]
build: [
["aclocal" "-I" "support"]
["autoconf"]
["./configure" "LABLGTKDIR=%{lib}%/lablgtk2" "--prefix" "%{prefix}%" "--sbindir=%{lib}%/cairo/sbin" "--libexecdir=%{lib}%/cairo/libexec" "--sysconfdir=%{lib}%/cairo/etc" "--sharedstatedir=%{lib}%/cairo/com" "--localstatedir=%{lib}%/cairo/var" "--libdir=%{lib}%/cairo/lib" "--includedir=%{lib}%/cairo/include" "--datarootdir=%{lib}%/cairo/share"]
["ocaml" "str.cma" "unix.cma" "opam.ml" "sed" "_add_expr_" "11" "INSTALLDIR = $(OCAMLLIB)/cairo" "INSTALLDIR=%{lib}%/cairo" "config.make"]
- ["ocaml" "str.cma" "unix.cma" "opam.ml" "sed" "_add_expr_no_pos_" "$(DESTDIR)$(OCAMLLIB)/stublibs" "%{prefix}%/lib/stublibs" "src/Makefile"]
["%{make}%"]
["%{make}%" "install"]
["ocamlopt.opt" "-shared" "-linkall" "-I" "src" "-ccopt" "-I/usr/include/cairo" "-ccopt" "-I/usr/include/glib-2.0" "-ccopt" "-I/usr/lib/x86_64-linux-gnu/glib-2.0/include" "-ccopt" "-I/usr/include/pixman-1" "-ccopt" "-I/usr/include/freetype2" "-ccopt" "-I/usr/include/libpng12" "-o" "src/cairo.cmxs" "-cclib" "-Lsrc/" "-cclib" "-lcairo" "src/cairo.cmxa"]
@@ -15,4 +15,8 @@ build: [
remove: [
["rm" "-rf" "%{lib}%/cairo" "%{prefix}%/lib/stublibs/dllmlcairo_lablgtk.so" "%{prefix}%/lib/stublibs/dllmlcairo.so" "%{prefix}%/lib/stublibs/dllmlpangocairo.so"]
]
-depends: ["ocamlfind" "lablgtk" {= "2.14.2"}]
+depends: [
+ "ocamlfind"
+ "lablgtk" {= "2.14.2"}
+]
+patches: ["opam.patch"]
View
97 packages/cmigrep.1.5/files/opam.ml
@@ -1,97 +0,0 @@
-
-module type COMMAND = sig
- val s_title : string
- val main : string list -> unit
-end
-
-module type SED = sig
- include COMMAND
- val s_add_expr_no_pos : string
- val s_add_expr : string
-end
-
-module Sed : SED = struct
- module List = struct
- include List
- let mapi f l =
- List.rev (snd (List.fold_left (fun (n, l) x -> succ n, f n x :: l) (0, []) l))
- let map f = mapi (fun _ -> f)
- end
-
- let read file =
- let ic = open_in_bin file in
- let rec aux l =
- match try Some (input_line ic) with _ -> None with
- | None -> l
- | Some s -> aux (s :: l) in
- let l = aux [] in
- let () = close_in ic in
- List.rev l
-
- let write file contents =
- let oc = open_out_bin file in
- begin
- List.iter (fun s -> output_string oc (s ^ "\n")) contents;
- close_out oc;
- end
-
- let apply f file =
- write file (f (read file))
-
- let sed l_sed =
- apply
- (fun file ->
- List.fold_left
- (fun file -> function
- | Some pos, s1, s2 ->
- let reg1 = Str.regexp_string s1 in
- let rec aux rev_file n = function
- | [] -> assert false
- | x :: xs ->
- if n = pos then
- List.fold_left (fun l x -> x :: l) ((Str.global_replace reg1 s2 x) :: xs) rev_file
- else
- aux (x :: rev_file) (succ n) xs in
- aux [] 1 file
-
- | None, s1, s2 ->
- let reg1 = Str.regexp_string s1 in
- List.map (Str.global_replace reg1 s2) file)
- file
- l_sed)
-
- let repl_tbl =
- Str.global_replace (Str.regexp_string "\\t") "\t"
- (* NOTE "\x.." should be replaced too *)
-
- let s_add_expr = "_add_expr_"
- let s_add_expr_no_pos = "_add_expr_no_pos_"
- let s_title = "sed"
-
- let main l =
- let rec aux l = function
- | cmd :: n :: s1 :: s2 :: xs when cmd = s_add_expr ->
- aux ((Some (int_of_string n), repl_tbl s1, repl_tbl s2) :: l) xs
- | cmd :: s1 :: s2 :: xs when cmd = s_add_expr_no_pos -> aux ((None, repl_tbl s1, repl_tbl s2) :: l) xs
- | [fic] -> List.rev l, fic
- | _ -> assert false in
- let l, fic = aux [] l in
- sed l fic
-end
-
-let ocaml s = [ "ocaml" ; "str.cma" ; "unix.cma" ; s ]
-let s_opam = "opam.ml"
-let s_main = "main"
-
-let main () =
- match Array.to_list Sys.argv with
- | _ :: cmd_main :: l ->
- snd
- (List.find
- (function s_title, _ -> cmd_main = s_title)
- (List.map
- (fun m -> let module M = (val m : COMMAND) in M.s_title, M.main)
- [ (module Sed : COMMAND) ]))
- l
- | _ -> assert false
-let _ = main ()
View
21 packages/cmigrep.1.5/files/opam.patch.in
@@ -0,0 +1,21 @@
+diff -ru /tmp/opam-25607-1625/cmigrep.1.5/cmigrep.ml /tmp/opam-25607-406/cmigrep.1.5/cmigrep.ml
+--- /tmp/opam-25607-1625/cmigrep.1.5/cmigrep.ml 2008-04-02 02:37:07.000000000 +0200
++++ /tmp/opam-25607-406/cmigrep.1.5/cmigrep.ml 2012-10-04 16:19:18.933552029 +0200
+@@ -304,7 +304,7 @@
+ (function
+ | Tsig_type (id, type_decl, _rec_status) ->
+ begin match type_decl.type_kind with
+- | Type_variant (constructors, _private) ->
++ | Type_variant (constructors(*, _private*)) ->
+ List.iter
+ (fun (name, type_exprs) ->
+ if Pcre.pmatch ~rex:exp name then begin
+@@ -382,7 +382,7 @@
+ (function
+ | Tsig_type (id, type_decl, _rec_status) ->
+ begin match type_decl.type_kind with
+- | Type_record (labels, _, _) ->
++ | Type_record (labels, _(*, _*)) ->
+ List.iter
+ (fun (name, mutable_flag, type_expr) ->
+ if Pcre.pmatch ~rex:exp name then begin
View
3  packages/cmigrep.1.5/opam
@@ -1,7 +1,7 @@
opam-version: "1"
maintainer: "contact@ocamlpro.com"
+substs: ["opam.patch"]
build: [
- ["ocaml" "str.cma" "unix.cma" "opam.ml" "sed" "_add_expr_" "307" ", _private" "(*, _private*)" "_add_expr_" "385" ", _)" "(*, _*))" "cmigrep.ml"]
["%{make}%" "GODI_LIB=%{lib}%/compiler-libs"]
["%{make}%" "install" "GODI_BASE=%{prefix}%"]
]
@@ -10,3 +10,4 @@ depends: [
"compiler-libs" {= "3.12.1"}
"pcre-ocaml"
]
+patches: ["opam.patch"]
View
97 packages/coq.8.3pl2/files/opam.ml
@@ -1,97 +0,0 @@
-
-module type COMMAND = sig
- val s_title : string
- val main : string list -> unit
-end
-
-module type SED = sig
- include COMMAND
- val s_add_expr_no_pos : string
- val s_add_expr : string
-end
-
-module Sed : SED = struct
- module List = struct
- include List
- let mapi f l =
- List.rev (snd (List.fold_left (fun (n, l) x -> succ n, f n x :: l) (0, []) l))
- let map f = mapi (fun _ -> f)
- end
-
- let read file =
- let ic = open_in_bin file in
- let rec aux l =
- match try Some (input_line ic) with _ -> None with
- | None -> l
- | Some s -> aux (s :: l) in
- let l = aux [] in
- let () = close_in ic in
- List.rev l
-
- let write file contents =
- let oc = open_out_bin file in
- begin
- List.iter (fun s -> output_string oc (s ^ "\n")) contents;
- close_out oc;
- end
-
- let apply f file =
- write file (f (read file))
-
- let sed l_sed =
- apply
- (fun file ->
- List.fold_left
- (fun file -> function
- | Some pos, s1, s2 ->
- let reg1 = Str.regexp_string s1 in
- let rec aux rev_file n = function
- | [] -> assert false
- | x :: xs ->
- if n = pos then
- List.fold_left (fun l x -> x :: l) ((Str.global_replace reg1 s2 x) :: xs) rev_file
- else
- aux (x :: rev_file) (succ n) xs in
- aux [] 1 file
-
- | None, s1, s2 ->
- let reg1 = Str.regexp_string s1 in
- List.map (Str.global_replace reg1 s2) file)
- file
- l_sed)
-
- let repl_tbl =
- Str.global_replace (Str.regexp_string "\\t") "\t"
- (* NOTE "\x.." should be replaced too *)
-
- let s_add_expr = "_add_expr_"
- let s_add_expr_no_pos = "_add_expr_no_pos_"
- let s_title = "sed"
-
- let main l =
- let rec aux l = function
- | cmd :: n :: s1 :: s2 :: xs when cmd = s_add_expr ->
- aux ((Some (int_of_string n), repl_tbl s1, repl_tbl s2) :: l) xs
- | cmd :: s1 :: s2 :: xs when cmd = s_add_expr_no_pos -> aux ((None, repl_tbl s1, repl_tbl s2) :: l) xs
- | [fic] -> List.rev l, fic
- | _ -> assert false in
- let l, fic = aux [] l in
- sed l fic
-end
-
-let ocaml s = [ "ocaml" ; "str.cma" ; "unix.cma" ; s ]
-let s_opam = "opam.ml"
-let s_main = "main"
-
-let main () =
- match Array.to_list Sys.argv with
- | _ :: cmd_main :: l ->
- snd
- (List.find
- (function s_title, _ -> cmd_main = s_title)
- (List.map
- (fun m -> let module M = (val m : COMMAND) in M.s_title, M.main)
- [ (module Sed : COMMAND) ]))
- l
- | _ -> assert false
-let _ = main ()
View
30 packages/coq.8.3pl2/files/opam.patch.in
@@ -0,0 +1,30 @@
+diff -ru /tmp/opam-25607-3915/coq.8.3pl2/configure /tmp/opam-25607-2391/coq.8.3pl2/configure
+--- /tmp/opam-25607-3915/coq.8.3pl2/configure 2011-04-19 09:19:00.000000000 +0200
++++ /tmp/opam-25607-2391/coq.8.3pl2/configure 2012-10-04 16:19:23.173551314 +0200
+@@ -627,7 +627,7 @@
+ no) LABLGTKLIB=+lablgtk2 # Pour le message
+ LABLGTKINCLUDES="-I $LABLGTKLIB";; # Pour le makefile
+ yes) LABLGTKLIB="$lablgtkdir" # Pour le message
+- LABLGTKINCLUDES="-I \"$LABLGTKLIB\"";; # Pour le makefile
++ LABLGTKINCLUDES="-I '$LABLGTKLIB'";; # Pour le makefile
+ esac;;
+ no) LABLGTKINCLUDES="";;
+ esac
+diff -ru /tmp/opam-25607-3915/coq.8.3pl2/Makefile.build /tmp/opam-25607-2391/coq.8.3pl2/Makefile.build
+--- /tmp/opam-25607-3915/coq.8.3pl2/Makefile.build 2010-09-30 18:50:00.000000000 +0200
++++ /tmp/opam-25607-2391/coq.8.3pl2/Makefile.build 2012-10-04 16:19:23.223550599 +0200
+@@ -288,12 +288,12 @@
+
+ $(COQIDEOPT): $(COQMKTOP) $(LINKCMX) $(LIBCOQRUN) ide/ide.cmxa
+ $(SHOW)'COQMKTOP -o $@'
+- $(HIDE)$(COQMKTOP) -boot -ide -opt $(OPTFLAGS) -o $@
++ $(HIDE)$(COQMKTOP) -boot -ide -opt $(OPTFLAGS) $(COQIDEINCLUDES) -o $@
+ $(STRIP) $@
+
+ $(COQIDEBYTE): $(COQMKTOP) $(LINKCMO) $(LIBCOQRUN) ide/ide.cma
+ $(SHOW)'COQMKTOP -o $@'
+- $(HIDE)$(COQMKTOP) -boot -g -ide -top $(BYTEFLAGS) -o $@
++ $(HIDE)$(COQMKTOP) -boot -g -ide -top $(BYTEFLAGS) $(COQIDEINCLUDES) -o $@
+
+ $(COQIDE):
+ cd bin; ln -sf coqide.$(HASCOQIDE)$(EXE) coqide$(EXE)
View
9 packages/coq.8.3pl2/opam
@@ -1,10 +1,13 @@
opam-version: "1"
maintainer: "contact@ocamlpro.com"
+substs: ["opam.patch"]
build: [
- ["ocaml" "str.cma" "unix.cma" "opam.ml" "sed" "_add_expr_" "630" "\\\"$LABLGTKLIB\\\"" "'$LABLGTKLIB'" "configure"]
- ["ocaml" "str.cma" "unix.cma" "opam.ml" "sed" "_add_expr_" "291" ") -o" ") $(COQIDEINCLUDES) -o" "_add_expr_" "296" ") -o" ") $(COQIDEINCLUDES) -o" "Makefile.build"]
["./configure" "-camlp5dir" "%{lib}%/camlp5" "-lablgtkdir" "%{lib}%/lablgtk2" "--prefix" "%{prefix}%"]
["%{make}%" "world" "VERBOSE=1"]
["%{make}%" "install"]
]
-depends: ["camlp5" {<= "6.04"} "lablgtk" {= "2.14.2-oasis8"}]
+depends: [
+ "camlp5" {<= "6.04"}
+ "lablgtk" {= "2.14.2-oasis8"}
+]
+patches: ["opam.patch"]
View
97 packages/extlib.1.5.2/files/opam.ml
@@ -1,97 +0,0 @@
-
-module type COMMAND = sig
- val s_title : string
- val main : string list -> unit
-end
-
-module type SED = sig
- include COMMAND
- val s_add_expr_no_pos : string
- val s_add_expr : string
-end
-
-module Sed : SED = struct
- module List = struct
- include List
- let mapi f l =
- List.rev (snd (List.fold_left (fun (n, l) x -> succ n, f n x :: l) (0, []) l))
- let map f = mapi (fun _ -> f)
- end
-
- let read file =
- let ic = open_in_bin file in
- let rec aux l =
- match try Some (input_line ic) with _ -> None with
- | None -> l
- | Some s -> aux (s :: l) in
- let l = aux [] in
- let () = close_in ic in
- List.rev l
-
- let write file contents =
- let oc = open_out_bin file in
- begin
- List.iter (fun s -> output_string oc (s ^ "\n")) contents;
- close_out oc;
- end
-
- let apply f file =
- write file (f (read file))
-
- let sed l_sed =
- apply
- (fun file ->
- List.fold_left
- (fun file -> function
- | Some pos, s1, s2 ->
- let reg1 = Str.regexp_string s1 in
- let rec aux rev_file n = function
- | [] -> assert false
- | x :: xs ->
- if n = pos then
- List.fold_left (fun l x -> x :: l) ((Str.global_replace reg1 s2 x) :: xs) rev_file
- else
- aux (x :: rev_file) (succ n) xs in
- aux [] 1 file
-
- | None, s1, s2 ->
- let reg1 = Str.regexp_string s1 in
- List.map (Str.global_replace reg1 s2) file)
- file
- l_sed)
-
- let repl_tbl =
- Str.global_replace (Str.regexp_string "\\t") "\t"
- (* NOTE "\x.." should be replaced too *)
-
- let s_add_expr = "_add_expr_"
- let s_add_expr_no_pos = "_add_expr_no_pos_"
- let s_title = "sed"
-
- let main l =
- let rec aux l = function
- | cmd :: n :: s1 :: s2 :: xs when cmd = s_add_expr ->
- aux ((Some (int_of_string n), repl_tbl s1, repl_tbl s2) :: l) xs
- | cmd :: s1 :: s2 :: xs when cmd = s_add_expr_no_pos -> aux ((None, repl_tbl s1, repl_tbl s2) :: l) xs
- | [fic] -> List.rev l, fic
- | _ -> assert false in
- let l, fic = aux [] l in
- sed l fic
-end
-
-let ocaml s = [ "ocaml" ; "str.cma" ; "unix.cma" ; s ]
-let s_opam = "opam.ml"
-let s_main = "main"
-
-let main () =
- match Array.to_list Sys.argv with
- | _ :: cmd_main :: l ->
- snd
- (List.find
- (function s_title, _ -> cmd_main = s_title)
- (List.map
- (fun m -> let module M = (val m : COMMAND) in M.s_title, M.main)
- [ (module Sed : COMMAND) ]))
- l
- | _ -> assert false
-let _ = main ()
View
12 packages/extlib.1.5.2/files/opam.patch.in
@@ -0,0 +1,12 @@
+diff -ru /tmp/opam-25607-1804/extlib.1.5.2/Makefile /tmp/opam-25607-1732/extlib.1.5.2/Makefile
+--- /tmp/opam-25607-1804/extlib.1.5.2/Makefile 2011-08-06 16:56:39.000000000 +0200
++++ /tmp/opam-25607-1732/extlib.1.5.2/Makefile 2012-10-04 16:19:34.043550370 +0200
+@@ -20,7 +20,7 @@
+ cp odoc_style.css doc/style.css
+
+ install:
+- ocamlfind install extlib META *.cmi *.cma $(MLI) $(wildcard *.cmxa) $(wildcard *.a)
++ ocamlfind install extlib META extLib.cmxs *.cmi *.cma $(MLI) $(wildcard *.cmxa) $(wildcard *.a)
+
+ uninstall:
+ ocamlfind remove extlib
View
8 packages/extlib.1.5.2/opam
@@ -1,16 +1,18 @@
opam-version: "1"
maintainer: "contact@ocamlpro.com"
-substs: ["extlib.config"]
+substs: ["opam.patch" "extlib.config"]
build: [
["%{make}%" "all"]
["%{make}%" "opt"]
["ocamlopt" "-shared" "-linkall" "extLib.cmxa" "-o" "extLib.cmxs"]
- ["ocaml" "str.cma" "unix.cma" "opam.ml" "sed" "_add_expr_" "23" "META" "META extLib.cmxs" "Makefile"]
["%{make}%" "install"]
]
remove: [
["ocamlfind" "remove" "extlib"]
]
-depends: ["ocamlfind"]
+depends: [
+ "ocamlfind"
+]
libraries: ["extlib"]
+patches: ["opam.patch"]
ocaml-version: [< "4.00.0"]
View
97 packages/kaputt.1.1/files/opam.ml
@@ -1,97 +0,0 @@
-
-module type COMMAND = sig
- val s_title : string
- val main : string list -> unit
-end
-
-module type SED = sig
- include COMMAND
- val s_add_expr_no_pos : string
- val s_add_expr : string
-end
-
-module Sed : SED = struct
- module List = struct
- include List
- let mapi f l =
- List.rev (snd (List.fold_left (fun (n, l) x -> succ n, f n x :: l) (0, []) l))
- let map f = mapi (fun _ -> f)
- end
-
- let read file =
- let ic = open_in_bin file in
- let rec aux l =
- match try Some (input_line ic) with _ -> None with
- | None -> l
- | Some s -> aux (s :: l) in
- let l = aux [] in
- let () = close_in ic in
- List.rev l
-
- let write file contents =
- let oc = open_out_bin file in
- begin
- List.iter (fun s -> output_string oc (s ^ "\n")) contents;
- close_out oc;
- end
-
- let apply f file =
- write file (f (read file))
-
- let sed l_sed =
- apply
- (fun file ->
- List.fold_left
- (fun file -> function
- | Some pos, s1, s2 ->
- let reg1 = Str.regexp_string s1 in
- let rec aux rev_file n = function
- | [] -> assert false
- | x :: xs ->
- if n = pos then
- List.fold_left (fun l x -> x :: l) ((Str.global_replace reg1 s2 x) :: xs) rev_file
- else
- aux (x :: rev_file) (succ n) xs in
- aux [] 1 file
-
- | None, s1, s2 ->
- let reg1 = Str.regexp_string s1 in
- List.map (Str.global_replace reg1 s2) file)
- file
- l_sed)
-
- let repl_tbl =
- Str.global_replace (Str.regexp_string "\\t") "\t"
- (* NOTE "\x.." should be replaced too *)
-
- let s_add_expr = "_add_expr_"
- let s_add_expr_no_pos = "_add_expr_no_pos_"
- let s_title = "sed"
-
- let main l =
- let rec aux l = function
- | cmd :: n :: s1 :: s2 :: xs when cmd = s_add_expr ->
- aux ((Some (int_of_string n), repl_tbl s1, repl_tbl s2) :: l) xs
- | cmd :: s1 :: s2 :: xs when cmd = s_add_expr_no_pos -> aux ((None, repl_tbl s1, repl_tbl s2) :: l) xs
- | [fic] -> List.rev l, fic
- | _ -> assert false in
- let l, fic = aux [] l in
- sed l fic
-end
-
-let ocaml s = [ "ocaml" ; "str.cma" ; "unix.cma" ; s ]
-let s_opam = "opam.ml"
-let s_main = "main"
-
-let main () =
- match Array.to_list Sys.argv with
- | _ :: cmd_main :: l ->
- snd
- (List.find
- (function s_title, _ -> cmd_main = s_title)
- (List.map
- (fun m -> let module M = (val m : COMMAND) in M.s_title, M.main)
- [ (module Sed : COMMAND) ]))
- l
- | _ -> assert false
-let _ = main ()
View
22 packages/kaputt.1.1/files/opam.patch.in
@@ -0,0 +1,22 @@
+diff -ru /tmp/opam-25607-2766/kaputt.1.1/Makefile /tmp/opam-25607-2234/kaputt.1.1/Makefile
+--- /tmp/opam-25607-2766/kaputt.1.1/Makefile 2011-02-20 15:28:30.000000000 +0100
++++ /tmp/opam-25607-2234/kaputt.1.1/Makefile 2012-10-04 16:19:18.283549371 +0200
+@@ -31,7 +31,7 @@
+ # DEFINITIONS
+
+ PROJECT_NAME=kaputt
+-OCAMLBUILD=$(PATH_OCAML_PREFIX)/bin/ocamlbuild
++OCAMLBUILD=ocamlbuild
+ OCAMLBUILD_FLAGS=-classic-display -no-links
+ MODULES_ODOCL=$(PROJECT_NAME).odocl
+ MODULES_MLPACK=$(PROJECT_NAME).mlpack
+@@ -104,7 +104,7 @@
+ cp src/library/abbreviations.old src/library/abbreviations.mli; \
+ fi
+ echo '$(PROJECT_NAME).cma' > $(PROJECT_NAME).itarget
+- (test -x $(PATH_OCAML_PREFIX)/bin/ocamlopt && echo '$(PROJECT_NAME).cmxa' >> $(PROJECT_NAME).itarget) || true
+- (test -x $(PATH_OCAML_PREFIX)/bin/ocamljava && echo '$(PROJECT_NAME).cmja' >> $(PROJECT_NAME).itarget) || true
++ (which ocamlopt && echo '$(PROJECT_NAME).cmxa' >> $(PROJECT_NAME).itarget) || true
++ (which ocamljava && echo '$(PROJECT_NAME).cmja' >> $(PROJECT_NAME).itarget) || true
+
+ FORCE:
View
7 packages/kaputt.1.1/opam
@@ -1,7 +1,7 @@
opam-version: "1"
maintainer: "contact@ocamlpro.com"
+substs: ["opam.patch"]
build: [
- ["ocaml" "str.cma" "unix.cma" "opam.ml" "sed" "_add_expr_" "107" "test -x $(PATH_OCAML_PREFIX)/bin/" "which " "_add_expr_" "108" "test -x $(PATH_OCAML_PREFIX)/bin/" "which " "_add_expr_" "34" "$(PATH_OCAML_PREFIX)/bin/" "" "Makefile"]
["sh" "configure" "-ocaml-prefix" "%{prefix}%" "-ocamlfind" "%{bin}%/ocamlfind"]
["%{make}%"]
["%{make}%" "install"]
@@ -9,4 +9,7 @@ build: [
remove: [
["ocamlfind" "remove" "kaputt"]
]
-depends: ["ocamlfind"]
+depends: [
+ "ocamlfind"
+]
+patches: ["opam.patch"]
View
12 packages/liquidsoap.1.0.1-full/files/opam.patch.in
@@ -0,0 +1,12 @@
+diff -ru /tmp/opam-25607-1408/liquidsoap.1.0.1-full/liquidsoap-1.0.1/Makefile.defs.in /tmp/opam-25607-731/liquidsoap.1.0.1-full/liquidsoap-1.0.1/Makefile.defs.in
+--- /tmp/opam-25607-1408/liquidsoap.1.0.1-full/liquidsoap-1.0.1/Makefile.defs.in 2012-07-04 00:03:59.000000000 +0200
++++ /tmp/opam-25607-731/liquidsoap.1.0.1-full/liquidsoap-1.0.1/Makefile.defs.in 2012-10-04 16:19:21.103551290 +0200
+@@ -32,7 +32,7 @@
+ CAMLP4O = @CAMLP4O@
+
+ liquidsoap_ocamlcflags= @liquidsoap_ocamlcflags@
+-liquidsoap_ocamllflags= @liquidsoap_ocamllflags@ -cclib "$(LDFLAGS)"
++liquidsoap_ocamllflags= @liquidsoap_ocamllflags@ -I %{lib}%/camlidl -cclib "$(LDFLAGS)"
+ _DEP_OPTS= @_DEP_OPTS@
+
+ # Make the building quiet
View
10 packages/liquidsoap.1.0.1-full/opam
@@ -1,14 +1,20 @@
opam-version: "1"
maintainer: "contact@ocamlpro.com"
+substs: ["opam.patch"]
build: [
["cp" "PACKAGES.default" "PACKAGES"]
["ocaml" "str.cma" "unix.cma" "opam.ml" "sed" "_add_expr_" "56" "ocaml-aacplus" "#ocaml-aacplus" "_add_expr_" "92" "ocaml-ladspa" "#ocaml-ladspa" "_add_expr_" "115" "ocaml-dssi" "#ocaml-dssi" "_add_expr_" "122" "ocaml-xmlplaylist" "#ocaml-xmlplaylist" "_add_expr_" "126" "ocaml-lastfm" "#ocaml-lastfm" "PACKAGES"]
["./bootstrap"]
- ["ocaml" "str.cma" "unix.cma" "opam.ml" "sed" "_add_expr_" "35" "-cclib" "-I %{lib}%/camlidl -cclib" "liquidsoap-1.0.1/Makefile.defs.in"]
["./configure" "--prefix" "%{prefix}%" "--sbindir=%{lib}%/liquidsoap/sbin" "--libexecdir=%{lib}%/liquidsoap/libexec" "--sysconfdir=%{lib}%/liquidsoap/etc" "--sharedstatedir=%{lib}%/liquidsoap/com" "--localstatedir=%{lib}%/liquidsoap/var" "--libdir=%{lib}%/liquidsoap/lib" "--includedir=%{lib}%/liquidsoap/include" "--datarootdir=%{lib}%/liquidsoap/share" "--disable-graphics"]
["ocaml" "str.cma" "unix.cma" "opam.ml" "sed" "_add_expr_" "40" "INCDIRS = " "INCDIRS = %{lib}%/camlidl" "ocaml-gstreamer-0.1.0/src/Makefile"]
["%{make}%"]
["%{make}%" "install"]
]
-depends: ["ocamlfind" "camlidl" "pcre-ocaml" "camomile"]
+depends: [
+ "ocamlfind"
+ "camlidl"
+ "pcre-ocaml"
+ "camomile"
+]
+patches: ["opam.patch"]
ocaml-version: [= "3.12.1"]
View
97 packages/missinglib.0.4.1/files/opam.ml
@@ -1,97 +0,0 @@
-
-module type COMMAND = sig
- val s_title : string
- val main : string list -> unit
-end
-
-module type SED = sig
- include COMMAND
- val s_add_expr_no_pos : string
- val s_add_expr : string
-end
-
-module Sed : SED = struct
- module List = struct
- include List
- let mapi f l =
- List.rev (snd (List.fold_left (fun (n, l) x -> succ n, f n x :: l) (0, []) l))
- let map f = mapi (fun _ -> f)
- end
-
- let read file =
- let ic = open_in_bin file in
- let rec aux l =
- match try Some (input_line ic) with _ -> None with
- | None -> l
- | Some s -> aux (s :: l) in
- let l = aux [] in
- let () = close_in ic in
- List.rev l
-
- let write file contents =
- let oc = open_out_bin file in
- begin
- List.iter (fun s -> output_string oc (s ^ "\n")) contents;
- close_out oc;
- end
-
- let apply f file =
- write file (f (read file))
-
- let sed l_sed =
- apply
- (fun file ->
- List.fold_left
- (fun file -> function
- | Some pos, s1, s2 ->
- let reg1 = Str.regexp_string s1 in
- let rec aux rev_file n = function
- | [] -> assert false
- | x :: xs ->
- if n = pos then
- List.fold_left (fun l x -> x :: l) ((Str.global_replace reg1 s2 x) :: xs) rev_file
- else
- aux (x :: rev_file) (succ n) xs in
- aux [] 1 file
-
- | None, s1, s2 ->
- let reg1 = Str.regexp_string s1 in
- List.map (Str.global_replace reg1 s2) file)
- file
- l_sed)
-
- let repl_tbl =
- Str.global_replace (Str.regexp_string "\\t") "\t"
- (* NOTE "\x.." should be replaced too *)
-
- let s_add_expr = "_add_expr_"
- let s_add_expr_no_pos = "_add_expr_no_pos_"
- let s_title = "sed"
-
- let main l =
- let rec aux l = function
- | cmd :: n :: s1 :: s2 :: xs when cmd = s_add_expr ->
- aux ((Some (int_of_string n), repl_tbl s1, repl_tbl s2) :: l) xs
- | cmd :: s1 :: s2 :: xs when cmd = s_add_expr_no_pos -> aux ((None, repl_tbl s1, repl_tbl s2) :: l) xs
- | [fic] -> List.rev l, fic
- | _ -> assert false in
- let l, fic = aux [] l in
- sed l fic
-end
-
-let ocaml s = [ "ocaml" ; "str.cma" ; "unix.cma" ; s ]
-let s_opam = "opam.ml"
-let s_main = "main"
-
-let main () =
- match Array.to_list Sys.argv with
- | _ :: cmd_main :: l ->
- snd
- (List.find
- (function s_title, _ -> cmd_main = s_title)
- (List.map
- (fun m -> let module M = (val m : COMMAND) in M.s_title, M.main)
- [ (module Sed : COMMAND) ]))
- l
- | _ -> assert false
-let _ = main ()
View
12 packages/missinglib.0.4.1/files/opam.patch.in
@@ -0,0 +1,12 @@
+diff -ru /tmp/opam-25607-1904/missinglib.0.4.1/Makefile.setup /tmp/opam-25607-2830/missinglib.0.4.1/Makefile.setup
+--- /tmp/opam-25607-1904/missinglib.0.4.1/Makefile.setup 2004-06-05 17:45:01.000000000 +0200
++++ /tmp/opam-25607-2830/missinglib.0.4.1/Makefile.setup 2012-10-04 16:19:18.624175873 +0200
+@@ -16,7 +16,7 @@
+ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ #
+
+-OCAMLFLAGS := -warn-error A
++OCAMLFLAGS := -w -a
+
+ ifndef OCAMLMAKEFILE
+ OCAMLMAKEFILE := $(PATHTOTOP)/contrib/OCamlMakefile/OCamlMakefile
View
8 packages/missinglib.0.4.1/opam
@@ -1,11 +1,15 @@
opam-version: "1"
maintainer: "contact@ocamlpro.com"
+substs: ["opam.patch"]
build: [
- ["ocaml" "str.cma" "unix.cma" "opam.ml" "sed" "_add_expr_" "19" "-warn-error A" "-w -a" "Makefile.setup"]
["%{make}%"]
["%{make}%" "install"]
]
remove: [
["ocamlfind" "remove" "missinglib"]
]
-depends: ["ocamlfind" "ounit"]
+depends: [
+ "ocamlfind"
+ "ounit"
+]
+patches: ["opam.patch"]
View
97 packages/mlpost.0.8.1/files/opam.ml
@@ -1,97 +0,0 @@
-
-module type COMMAND = sig
- val s_title : string
- val main : string list -> unit
-end
-
-module type SED = sig
- include COMMAND
- val s_add_expr_no_pos : string
- val s_add_expr : string
-end
-
-module Sed : SED = struct
- module List = struct
- include List
- let mapi f l =
- List.rev (snd (List.fold_left (fun (n, l) x -> succ n, f n x :: l) (0, []) l))
- let map f = mapi (fun _ -> f)
- end
-
- let read file =
- let ic = open_in_bin file in
- let rec aux l =
- match try Some (input_line ic) with _ -> None with
- | None -> l
- | Some s -> aux (s :: l) in
- let l = aux [] in
- let () = close_in ic in
- List.rev l
-
- let write file contents =
- let oc = open_out_bin file in
- begin
- List.iter (fun s -> output_string oc (s ^ "\n")) contents;
- close_out oc;
- end
-
- let apply f file =
- write file (f (read file))
-
- let sed l_sed =
- apply
- (fun file ->
- List.fold_left
- (fun file -> function
- | Some pos, s1, s2 ->
- let reg1 = Str.regexp_string s1 in
- let rec aux rev_file n = function
- | [] -> assert false
- | x :: xs ->
- if n = pos then
- List.fold_left (fun l x -> x :: l) ((Str.global_replace reg1 s2 x) :: xs) rev_file
- else
- aux (x :: rev_file) (succ n) xs in
- aux [] 1 file
-
- | None, s1, s2 ->
- let reg1 = Str.regexp_string s1 in
- List.map (Str.global_replace reg1 s2) file)
- file
- l_sed)
-
- let repl_tbl =
- Str.global_replace (Str.regexp_string "\\t") "\t"
- (* NOTE "\x.." should be replaced too *)
-
- let s_add_expr = "_add_expr_"
- let s_add_expr_no_pos = "_add_expr_no_pos_"
- let s_title = "sed"
-
- let main l =
- let rec aux l = function
- | cmd :: n :: s1 :: s2 :: xs when cmd = s_add_expr ->
- aux ((Some (int_of_string n), repl_tbl s1, repl_tbl s2) :: l) xs
- | cmd :: s1 :: s2 :: xs when cmd = s_add_expr_no_pos -> aux ((None, repl_tbl s1, repl_tbl s2) :: l) xs
- | [fic] -> List.rev l, fic
- | _ -> assert false in
- let l, fic = aux [] l in
- sed l fic
-end
-
-let ocaml s = [ "ocaml" ; "str.cma" ; "unix.cma" ; s ]
-let s_opam = "opam.ml"
-let s_main = "main"
-
-let main () =
- match Array.to_list Sys.argv with
- | _ :: cmd_main :: l ->
- snd
- (List.find
- (function s_title, _ -> cmd_main = s_title)
- (List.map
- (fun m -> let module M = (val m : COMMAND) in M.s_title, M.main)
- [ (module Sed : COMMAND) ]))
- l
- | _ -> assert false
-let _ = main ()
View
15 packages/mlpost.0.8.1/files/opam.patch.in
@@ -0,0 +1,15 @@
+diff -ru /tmp/opam-25607-1008/mlpost.0.8.1/configure.in /tmp/opam-25607-1225/mlpost.0.8.1/configure.in
+--- /tmp/opam-25607-1008/mlpost.0.8.1/configure.in 2010-04-26 21:50:23.000000000 +0200
++++ /tmp/opam-25607-1225/mlpost.0.8.1/configure.in 2012-10-04 16:19:05.683551499 +0200
+@@ -327,9 +327,9 @@
+ if test -n "$LABLGTK2LIB";then
+ echo "ocamlfind found lablgtk2 in $LABLGTK2LIB"
+ else
+- AC_CHECK_FILE($OCAMLLIB/lablgtk2/lablgtk.cma,LABLGTK2=yes,LABLGTK2=no)
++ AC_CHECK_FILE(%{lib}%/lablgtk2/lablgtk.cma,LABLGTK2=yes,LABLGTK2=no)
+ if test "$LABLGTK2" = yes; then
+- LABLGTK2LIB=$OCAMLLIB/lablgtk2/
++ LABLGTK2LIB=%{lib}%/lablgtk2/
+ elif test -n "$OCAMLLIBLOCAL"; then
+ AC_CHECK_FILE($OCAMLLIBLOCAL/lablgtk2/lablgtk2.cma,LABLGTK2=yes,LABLGTK2=no)
+ if test "$LABLGTK2" = yes; then
View
9 packages/mlpost.0.8.1/opam
@@ -1,8 +1,8 @@
opam-version: "1"
maintainer: "contact@ocamlpro.com"
+substs: ["opam.patch"]
build: [
["mkdir" "-p" "%{lib}%/mlpost/share/man/man1"]
- ["ocaml" "str.cma" "unix.cma" "opam.ml" "sed" "_add_expr_" "330" "$OCAMLLIB" "%{lib}%" "_add_expr_" "332" "$OCAMLLIB" "%{lib}%" "configure.in"]
["autoconf"]
["./configure" "--prefix" "%{prefix}%" "--sbindir=%{lib}%/mlpost/sbin" "--libexecdir=%{lib}%/mlpost/libexec" "--sysconfdir=%{lib}%/mlpost/etc" "--sharedstatedir=%{lib}%/mlpost/com" "--localstatedir=%{lib}%/mlpost/var" "--libdir=%{lib}%/mlpost/lib" "--includedir=%{lib}%/mlpost/include" "--datarootdir=%{lib}%/mlpost/share"]
["%{make}%"]
@@ -15,4 +15,9 @@ remove: [
["ocamlfind" "remove" "mlpost_lablgtk"]
["ocamlfind" "remove" "mlpost"]
]
-depends: ["ocamlfind" "cairo1" {= "ocaml-1.2.0"} "bitstring"]
+depends: [
+ "ocamlfind"
+ "cairo1" {= "ocaml-1.2.0"}
+ "bitstring"
+]
+patches: ["opam.patch"]
View
97 packages/ocaml-markdown.0.1.0/files/opam.ml
@@ -1,97 +0,0 @@
-
-module type COMMAND = sig
- val s_title : string
- val main : string list -> unit
-end
-
-module type SED = sig
- include COMMAND
- val s_add_expr_no_pos : string
- val s_add_expr : string
-end
-
-module Sed : SED = struct
- module List = struct
- include List
- let mapi f l =
- List.rev (snd (List.fold_left (fun (n, l) x -> succ n, f n x :: l) (0, []) l))
- let map f = mapi (fun _ -> f)
- end
-
- let read file =
- let ic = open_in_bin file in
- let rec aux l =
- match try Some (input_line ic) with _ -> None with
- | None -> l
- | Some s -> aux (s :: l) in
- let l = aux [] in
- let () = close_in ic in
- List.rev l
-
- let write file contents =
- let oc = open_out_bin file in
- begin
- List.iter (fun s -> output_string oc (s ^ "\n")) contents;
- close_out oc;
- end
-
- let apply f file =
- write file (f (read file))
-
- let sed l_sed =
- apply
- (fun file ->
- List.fold_left
- (fun file -> function
- | Some pos, s1, s2 ->
- let reg1 = Str.regexp_string s1 in
- let rec aux rev_file n = function
- | [] -> assert false
- | x :: xs ->
- if n = pos then
- List.fold_left (fun l x -> x :: l) ((Str.global_replace reg1 s2 x) :: xs) rev_file
- else
- aux (x :: rev_file) (succ n) xs in
- aux [] 1 file
-
- | None, s1, s2 ->
- let reg1 = Str.regexp_string s1 in
- List.map (Str.global_replace reg1 s2) file)
- file
- l_sed)
-
- let repl_tbl =
- Str.global_replace (Str.regexp_string "\\t") "\t"
- (* NOTE "\x.." should be replaced too *)
-
- let s_add_expr = "_add_expr_"
- let s_add_expr_no_pos = "_add_expr_no_pos_"
- let s_title = "sed"
-
- let main l =
- let rec aux l = function
- | cmd :: n :: s1 :: s2 :: xs when cmd = s_add_expr ->
- aux ((Some (int_of_string n), repl_tbl s1, repl_tbl s2) :: l) xs
- | cmd :: s1 :: s2 :: xs when cmd = s_add_expr_no_pos -> aux ((None, repl_tbl s1, repl_tbl s2) :: l) xs
- | [fic] -> List.rev l, fic
- | _ -> assert false in
- let l, fic = aux [] l in
- sed l fic
-end
-
-let ocaml s = [ "ocaml" ; "str.cma" ; "unix.cma" ; s ]
-let s_opam = "opam.ml"
-let s_main = "main"
-
-let main () =
- match Array.to_list Sys.argv with
- | _ :: cmd_main :: l ->
- snd
- (List.find
- (function s_title, _ -> cmd_main = s_title)
- (List.map
- (fun m -> let module M = (val m : COMMAND) in M.s_title, M.main)
- [ (module Sed : COMMAND) ]))
- l
- | _ -> assert false
-let _ = main ()
View
57 packages/ocaml-markdown.0.1.0/files/opam.patch.in
@@ -0,0 +1,57 @@
+diff -ru /tmp/opam-25607-1101/ocaml-markdown.0.1.0/_oasis /tmp/opam-25607-3080/ocaml-markdown.0.1.0/_oasis
+--- /tmp/opam-25607-1101/ocaml-markdown.0.1.0/_oasis 2012-06-15 20:37:55.000000000 +0200
++++ /tmp/opam-25607-3080/ocaml-markdown.0.1.0/_oasis 2012-10-04 16:19:21.994175955 +0200
+@@ -20,7 +20,7 @@
+ FindlibParent: markdown
+ Path: src
+ Modules: MarkdownHTML
+- BuildDepends: markdown, ocsigen.xhtml
++ BuildDepends: markdown, tyxml
+
+ Executable test
+ Path: test
+diff -ru /tmp/opam-25607-1101/ocaml-markdown.0.1.0/setup.ml /tmp/opam-25607-3080/ocaml-markdown.0.1.0/setup.ml
+--- /tmp/opam-25607-1101/ocaml-markdown.0.1.0/setup.ml 2012-06-15 20:37:55.000000000 +0200
++++ /tmp/opam-25607-3080/ocaml-markdown.0.1.0/setup.ml 2012-10-04 16:19:22.054173884 +0200
+@@ -5695,7 +5695,7 @@
+ bs_build_depends =
+ [
+ InternalLibrary "markdown";
+- FindlibPackage ("ocsigen.xhtml", None)
++ FindlibPackage ("tyxml", None)
+ ];
+ bs_build_tools = [ExternalTool "ocamlbuild"];
+ bs_c_sources = [];
+diff -ru /tmp/opam-25607-1101/ocaml-markdown.0.1.0/src/MarkdownHTML.ml /tmp/opam-25607-3080/ocaml-markdown.0.1.0/src/MarkdownHTML.ml
+--- /tmp/opam-25607-1101/ocaml-markdown.0.1.0/src/MarkdownHTML.ml 2012-06-15 20:37:55.000000000 +0200
++++ /tmp/opam-25607-3080/ocaml-markdown.0.1.0/src/MarkdownHTML.ml 2012-10-04 16:19:22.144173878 +0200
+@@ -1,7 +1,7 @@
+ (* Copyright (C) 2009 Mauricio Fernandez <mfp@acm.org> *)
+
+ open Markdown
+-open XHTML.M
++open Xhtml.M
+
+ let rec elm_to_html ~render_pre ~render_link ~render_img elm =
+ let self = elm_to_html ~render_pre ~render_link ~render_img in
+@@ -35,7 +35,7 @@
+ | Code s -> code [pcdata s]
+ | Anchor id ->
+ (* would like to do
+- a ~a:[XHTML.M_01_00.a_name_01_00 id] []
++ a ~a:[Xhtml.M_01_00.a_name_01_00 id] []
+ but that'd require switching to M_01_00 everywhere, so cheap hack *)
+ b ~a:[a_id id] []
+ | Link href -> begin match href.href_target with
+diff -ru /tmp/opam-25607-1101/ocaml-markdown.0.1.0/_tags /tmp/opam-25607-3080/ocaml-markdown.0.1.0/_tags
+--- /tmp/opam-25607-1101/ocaml-markdown.0.1.0/_tags 2012-06-15 20:37:55.000000000 +0200
++++ /tmp/opam-25607-3080/ocaml-markdown.0.1.0/_tags 2012-10-04 16:19:22.094176754 +0200
+@@ -18,7 +18,7 @@
+ # Library html
+ "src/html.cmxs": use_html
+ <src/*.ml{,i}>: use_markdown
+-<src/*.ml{,i}>: pkg_ocsigen.xhtml
++<src/*.ml{,i}>: pkg_tyxml
+ <src/*.ml{,i}>: pkg_extlib
+ <src/*.ml{,i}>: pkg_str
+ <src/*.ml{,i}>: pkg_sexplib
View
15 packages/ocaml-markdown.0.1.0/opam
@@ -1,11 +1,8 @@
opam-version: "1"
maintainer: "contact@ocamlpro.com"
+substs: ["opam.patch"]
build: [
["rm" "setup.ml"] {"%{ocaml-version}%" = "4.00.0"}
- ["ocaml" "str.cma" "unix.cma" "opam.ml" "sed" "_add_expr_no_pos_" "ocsigen.xhtml" "tyxml" "_oasis"]
- ["ocaml" "str.cma" "unix.cma" "opam.ml" "sed" "_add_expr_no_pos_" "ocsigen.xhtml" "tyxml" "setup.ml"] {"%{ocaml-version}%" = "3.12.1"}
- ["ocaml" "str.cma" "unix.cma" "opam.ml" "sed" "_add_expr_no_pos_" "ocsigen.xhtml" "tyxml" "_tags"]
- ["ocaml" "str.cma" "unix.cma" "opam.ml" "sed" "_add_expr_no_pos_" "XHTML" "Xhtml" "src/MarkdownHTML.ml"]
["oasis" "setup"] {"%{ocaml-version}%" = "4.00.0"}
["./configure" "--prefix" "%{prefix}%"]
["%{make}%"]
@@ -14,4 +11,12 @@ build: [
remove: [
["ocamlfind" "remove" "markdown"]
]
-depends: ["ocamlfind" "extlib" {= "1.5.3"} "sexplib" "ounit" "tyxml" "oasis" {= "0.3.0"}]
+depends: [
+ "ocamlfind"
+ "extlib" {= "1.5.3"}
+ "sexplib"
+ "ounit"
+ "tyxml"
+ "oasis" {= "0.3.0"}
+]
+patches: ["opam.patch"]
View
97 packages/ocamlviz.1.01/files/opam.ml
@@ -1,97 +0,0 @@
-
-module type COMMAND = sig
- val s_title : string
- val main : string list -> unit
-end
-
-module type SED = sig
- include COMMAND
- val s_add_expr_no_pos : string
- val s_add_expr : string