git.iko.soy/typeable/nixpkgs
on master help sign in
ulex: remove version 0.8
commiteaf0de5985ef1316323c7da4026ed268399a3589 authorThéo Zimmermann <theo.zimmermann@univ-paris-diderot.fr> dateWed 10 Oct 2018, 16:32 (8 years ago) parent7ac0a23
4 files changed−122
pkgs/development/ocaml-modules/ulex/0.8/camlp5.patch−72 pkgs/development/ocaml-modules/ulex/0.8/default.nix−36 pkgs/development/ocaml-modules/ulex/0.8/meta_version.patch−10 pkgs/top-level/ocaml-packages.nix−4
pkgs/development/ocaml-modules/ulex/0.8/camlp5.patchdeleted−72
@@ -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−
pkgs/development/ocaml-modules/ulex/0.8/default.nixdeleted−36
@@ -1,36 +0,0 @@
1−{stdenv, fetchurl, ocaml, findlib, camlp5 }:
2−
3−let
4− pname = "ulex";
5−in
6−
7−if stdenv.lib.versionAtLeast ocaml.version "4.06"
8−then throw "ulex-0.8 is not available for OCaml ${ocaml.version}"
9−else
10−
11−stdenv.mkDerivation rec {
12− name = "${pname}-${version}";
13− version = "0.8";
14−
15− src = fetchurl {
16− url = "http://www.cduce.org/download/old/${pname}-${version}.tar.gz";
17− sha256 = "19faabg8hzz155xlzmjwsl59d7slahb5m1l9zh1fqvvpp81r26cp";
18− };
19−
20− buildInputs = [ocaml findlib camlp5];
21−
22− createFindlibDestdir = true;
23−
24− patches = [ ./meta_version.patch ./camlp5.patch ];
25−
26− propagatedBuildInputs = [ camlp5 ];
27−
28− buildFlags = "all all.opt";
29−
30− meta = {
31− homepage = http://www.cduce.org/download.html;
32− description = "A lexer generator for Unicode and OCaml";
33− license = stdenv.lib.licenses.mit;
34− maintainers = [ stdenv.lib.maintainers.roconnor ];
35− };
36−}
pkgs/development/ocaml-modules/ulex/0.8/meta_version.patchdeleted−10
@@ -1,10 +0,0 @@
1−Author: Stefano Zacchiroli <zack@debian.org>
2−Description: fix a typo in the findlib package version number specified in META
3−--- ulex0.8.orig/META
4−+++ ulex0.8/META
5−@@ -1,4 +1,4 @@
6−-version = "0.7"
7−+version = "0.8"
8− requires = "camlp4"
9− description = "Runtime support for ulex"
10− archive(byte) = "ulexing.cma"
pkgs/top-level/ocaml-packages.nix−4
@@ -592,10 +592,6 @@ let
592592
593593 ulex = callPackage ../development/ocaml-modules/ulex { };
594594
595− ulex08 = callPackage ../development/ocaml-modules/ulex/0.8 {
596− camlp5 = camlp5_transitional;
597− };
598−
599595 textutils_p4 = callPackage ../development/ocaml-modules/textutils { };
600596
601597 tls = callPackage ../development/ocaml-modules/tls {