@@ -1,72 +0,0 @@
1−Author: Stefano Zacchiroli <zack@debian.org>
2−Description: build (and install) using camlp5 instead of camlp4
3−--- ulex0.8.orig/META
4−+++ ulex0.8/META
5−@@ -1,5 +1,5 @@
6− version = "0.8"
7−-requires = "camlp4"
8−+requires = "camlp5"
9− description = "Runtime support for ulex"
10− archive(byte) = "ulexing.cma"
11− archive(native) = "ulexing.cmxa"
12−--- ulex0.8.orig/Makefile
13−+++ ulex0.8/Makefile
14−@@ -20,7 +20,7 @@
15− ocamlopt -a -o ulexing.cmxa $(ULEXING)
16−
17− pa_ulex.cma: $(ULEX)
18−- ocamlc -a -o pa_ulex.cma -pp 'camlp4o pa_extend.cmo q_MLast.cmo' -I +camlp4 $(ULEX)
19−+ ocamlc -a -o pa_ulex.cma -pp 'camlp5o pa_extend.cmo q_MLast.cmo' -I `camlp5 -where` $(ULEX)
20−
21− pa_ulex.ml: pa_ulex.ml.src
22− ocaml mk_pa_ulex.ml
23−@@ -29,14 +29,14 @@
24− rm -f *.cm* *~ test custom_ulexing *.o *.a *.html *.css pa_ulex.ml
25−
26− view_test: pa_ulex.cma
27−- camlp4o ./pa_ulex.cma pr_o.cmo -sep "\n" test.ml
28−+ camlp5o ./pa_ulex.cma pr_o.cmo -sep "\n" test.ml
29−
30− run_test: ulexing.cma pa_ulex.cma
31−- ocamlc -o test -pp 'camlp4o ./pa_ulex.cma' ulexing.cma test.ml
32−+ ocamlc -o test -pp 'camlp5o ./pa_ulex.cma' ulexing.cma test.ml
33− ./test
34−
35− custom_ulexing: ulexing.cma pa_ulex.cma
36−- ocamlc -o custom_ulexing -pp 'camlp4o ./pa_ulex.cma' ulexing.cma custom_ulexing.ml
37−+ ocamlc -o custom_ulexing -pp 'camlp5o ./pa_ulex.cma' ulexing.cma custom_ulexing.ml
38−
39−
40− doc:
41−--- ulex0.8.orig/README
42−+++ ulex0.8/README
43−@@ -142,7 +142,7 @@
44−
45− Compilation of OCaml files with lexer specifications:
46−
47−- ocamlfind ocamlc -c -package ulex -syntax camlp4o my_file.ml
48−+ ocamlfind ocamlc -c -package ulex -syntax camlp5o my_file.ml
49−
50− When linking, you must also include the ulex package:
51− ocamlfind ocamlc -o my_prog -linkpkg -package ulex my_file.cmo
52−--- ulex0.8.orig/mk_pa_ulex.ml
53−+++ ulex0.8/mk_pa_ulex.ml
54−@@ -1,10 +1,4 @@
55− let s = float_of_string (String.sub (Sys.ocaml_version) 0 4) in
56−-if (s < 3.09) then (
57− print_endline "Old camlp4 (loc)";
58− Sys.command "sed s/_loc/loc/ < pa_ulex.ml.src > pa_ulex.ml"
59−-)
60−-else (
61−- print_endline "New camlp4 (_loc)";
62−- Sys.command "cp pa_ulex.ml.src pa_ulex.ml"
63−-)
64−
65−--- ulex0.8.orig/pa_ulex.ml.src
66−+++ ulex0.8/pa_ulex.ml.src
67−@@ -1,4 +1,4 @@
68−-let _loc = (Lexing.dummy_pos,Lexing.dummy_pos)
69−+let _loc = Stdpp.dummy_loc
70−
71− (* Named regexp *)
72−