1 |
commit: 9a34654a3ba90fde69401627faf0891d0455d7ed |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 3 14:08:11 2016 +0000 |
4 |
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 3 14:17:38 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a34654a |
7 |
|
8 |
dev-ml/ppx_custom_printf: fix build with ocaml 4.03 |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org> |
12 |
|
13 |
dev-ml/ppx_custom_printf/files/oc43.patch | 145 +++++++++++++++++++++ |
14 |
.../ppx_custom_printf-113.33.00.ebuild | 6 +- |
15 |
2 files changed, 150 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/dev-ml/ppx_custom_printf/files/oc43.patch b/dev-ml/ppx_custom_printf/files/oc43.patch |
18 |
new file mode 100644 |
19 |
index 0000000..959a4be |
20 |
--- /dev/null |
21 |
+++ b/dev-ml/ppx_custom_printf/files/oc43.patch |
22 |
@@ -0,0 +1,145 @@ |
23 |
+diff -uNr ppx_custom_printf-113.33.00/CHANGES.md ppx_custom_printf-113.33.00+4.03/CHANGES.md |
24 |
+--- ppx_custom_printf-113.33.00/CHANGES.md 2016-03-09 16:44:54.000000000 +0100 |
25 |
++++ ppx_custom_printf-113.33.00+4.03/CHANGES.md 2016-03-22 15:13:50.000000000 +0100 |
26 |
+@@ -1,3 +1,7 @@ |
27 |
++## 113.33.00+4.03 |
28 |
++ |
29 |
++Various updates to work with OCaml 4.03.0 |
30 |
++ |
31 |
+ ## 113.24.00 |
32 |
+ |
33 |
+ - OCaml makes no distinctions between "foo" and |
34 |
+diff -uNr ppx_custom_printf-113.33.00/format-lifter/META ppx_custom_printf-113.33.00+4.03/format-lifter/META |
35 |
+--- ppx_custom_printf-113.33.00/format-lifter/META 2016-03-18 12:08:01.000000000 +0100 |
36 |
++++ ppx_custom_printf-113.33.00+4.03/format-lifter/META 2016-03-22 17:51:36.000000000 +0100 |
37 |
+@@ -1,6 +1,6 @@ |
38 |
+ # OASIS_START |
39 |
+-# DO NOT EDIT (digest: 30e281114bcfdcf7ccf231691613c2e6) |
40 |
+-version = "113.33.00" |
41 |
++# DO NOT EDIT (digest: 2c66a1ad37be0774b6cf2393020b734d) |
42 |
++version = "113.33.00+4.03" |
43 |
+ description = |
44 |
+ "Printf-style format-strings for user-defined string conversion" |
45 |
+ archive(byte) = "ppx_format_lifter.cma" |
46 |
+diff -uNr ppx_custom_printf-113.33.00/INSTALL.txt ppx_custom_printf-113.33.00+4.03/INSTALL.txt |
47 |
+--- ppx_custom_printf-113.33.00/INSTALL.txt 2016-03-18 12:08:01.000000000 +0100 |
48 |
++++ ppx_custom_printf-113.33.00+4.03/INSTALL.txt 2016-03-22 17:51:36.000000000 +0100 |
49 |
+@@ -1,5 +1,5 @@ |
50 |
+ (* OASIS_START *) |
51 |
+-(* DO NOT EDIT (digest: aa3e5a8a416bfdc4bbbd15b0bcdbfede) *) |
52 |
++(* DO NOT EDIT (digest: d41a009725728d3aa9236f47b80b9b12) *) |
53 |
+ |
54 |
+ This is the INSTALL file for the ppx_custom_printf distribution. |
55 |
+ |
56 |
+@@ -11,7 +11,7 @@ |
57 |
+ |
58 |
+ In order to compile this package, you will need: |
59 |
+ |
60 |
+-* ocaml (>= 4.02.3) |
61 |
++* ocaml (>= 4.03.0) |
62 |
+ * findlib (>= 1.3.2) |
63 |
+ * ppx_core for library ppx_custom_printf |
64 |
+ * ppx_driver for library ppx_custom_printf, executable ppx |
65 |
+diff -uNr ppx_custom_printf-113.33.00/_oasis ppx_custom_printf-113.33.00+4.03/_oasis |
66 |
+--- ppx_custom_printf-113.33.00/_oasis 2016-03-09 16:44:54.000000000 +0100 |
67 |
++++ ppx_custom_printf-113.33.00+4.03/_oasis 2016-03-22 15:13:50.000000000 +0100 |
68 |
+@@ -1,8 +1,8 @@ |
69 |
+ OASISFormat: 0.4 |
70 |
+-OCamlVersion: >= 4.02.3 |
71 |
++OCamlVersion: >= 4.03.0 |
72 |
+ FindlibVersion: >= 1.3.2 |
73 |
+ Name: ppx_custom_printf |
74 |
+-Version: 113.33.00 |
75 |
++Version: 113.33.00+4.03 |
76 |
+ Synopsis: Printf-style format-strings for user-defined string conversion |
77 |
+ Authors: Jane Street Group, LLC <opensource@××××××××××.com> |
78 |
+ Copyrights: (C) 2015-2016 Jane Street Group LLC <opensource@××××××××××.com> |
79 |
+diff -uNr ppx_custom_printf-113.33.00/opam ppx_custom_printf-113.33.00+4.03/opam |
80 |
+--- ppx_custom_printf-113.33.00/opam 2016-03-18 12:08:01.000000000 +0100 |
81 |
++++ ppx_custom_printf-113.33.00+4.03/opam 2016-03-22 17:51:36.000000000 +0100 |
82 |
+@@ -17,4 +17,4 @@ |
83 |
+ "ppx_sexp_conv" |
84 |
+ "ppx_tools" {>= "0.99.3"} |
85 |
+ ] |
86 |
+-available: [ ocaml-version >= "4.02.3" ] |
87 |
++available: [ ocaml-version >= "4.03.0" ] |
88 |
+diff -uNr ppx_custom_printf-113.33.00/setup.ml ppx_custom_printf-113.33.00+4.03/setup.ml |
89 |
+--- ppx_custom_printf-113.33.00/setup.ml 2016-03-18 12:08:01.000000000 +0100 |
90 |
++++ ppx_custom_printf-113.33.00+4.03/setup.ml 2016-03-22 17:51:36.000000000 +0100 |
91 |
+@@ -1,5 +1,5 @@ |
92 |
+ (* OASIS_START *) |
93 |
+-(* DO NOT EDIT (digest: c9a6b21baa91c0680f8cba2e849204cf) *) |
94 |
++(* DO NOT EDIT (digest: 924f534c954af21abd6099b21f46beee) *) |
95 |
+ (* |
96 |
+ Regenerated by OASIS v0.4.5 |
97 |
+ Visit http://oasis.forge.ocamlcore.org for more information and |
98 |
+@@ -6666,12 +6666,12 @@ |
99 |
+ package = |
100 |
+ { |
101 |
+ oasis_version = "0.4"; |
102 |
+- ocaml_version = Some (OASISVersion.VGreaterEqual "4.02.3"); |
103 |
++ ocaml_version = Some (OASISVersion.VGreaterEqual "4.03.0"); |
104 |
+ findlib_version = Some (OASISVersion.VGreaterEqual "1.3.2"); |
105 |
+ alpha_features = []; |
106 |
+ beta_features = []; |
107 |
+ name = "ppx_custom_printf"; |
108 |
+- version = "113.33.00"; |
109 |
++ version = "113.33.00+4.03"; |
110 |
+ license = |
111 |
+ OASISLicense.DEP5License |
112 |
+ (OASISLicense.DEP5Unit |
113 |
+@@ -6841,7 +6841,7 @@ |
114 |
+ }; |
115 |
+ oasis_fn = Some "_oasis"; |
116 |
+ oasis_version = "0.4.5"; |
117 |
+- oasis_digest = Some "Hd\2128>@-\017\228\178\138\253\228l<\r"; |
118 |
++ oasis_digest = Some "UJ\215>\004\182B+\173\217\151\0165\212\011,"; |
119 |
+ oasis_exec = None; |
120 |
+ oasis_setup_args = []; |
121 |
+ setup_update = false |
122 |
+diff -uNr ppx_custom_printf-113.33.00/src/META ppx_custom_printf-113.33.00+4.03/src/META |
123 |
+--- ppx_custom_printf-113.33.00/src/META 2016-03-18 12:08:01.000000000 +0100 |
124 |
++++ ppx_custom_printf-113.33.00+4.03/src/META 2016-03-22 17:51:36.000000000 +0100 |
125 |
+@@ -1,6 +1,6 @@ |
126 |
+ # OASIS_START |
127 |
+-# DO NOT EDIT (digest: 2dabcf3bd944c3b9b0a168e17d64eb20) |
128 |
+-version = "113.33.00" |
129 |
++# DO NOT EDIT (digest: 148f0da22163c9e0ef38850349ca8160) |
130 |
++version = "113.33.00+4.03" |
131 |
+ description = |
132 |
+ "Printf-style format-strings for user-defined string conversion" |
133 |
+ requires = |
134 |
+diff -uNr ppx_custom_printf-113.33.00/src/ppx_custom_printf.ml ppx_custom_printf-113.33.00+4.03/src/ppx_custom_printf.ml |
135 |
+--- ppx_custom_printf-113.33.00/src/ppx_custom_printf.ml 2016-03-09 16:44:54.000000000 +0100 |
136 |
++++ ppx_custom_printf-113.33.00+4.03/src/ppx_custom_printf.ml 2016-03-22 15:13:50.000000000 +0100 |
137 |
+@@ -182,7 +182,7 @@ |
138 |
+ let ty = Parse.core_type lexbuf in |
139 |
+ let e = Ppx_sexp_conv_expander.Sexp_of.core_type ty in |
140 |
+ let arg = gen_symbol () in |
141 |
+- pexp_fun ~loc "" None (pvar ~loc arg) |
142 |
++ pexp_fun ~loc Nolabel None (pvar ~loc arg) |
143 |
+ (eapply ~loc sexp_converter [eapply ~loc e [evar ~loc arg]]) |
144 |
+ | None -> |
145 |
+ let fail loc = |
146 |
+@@ -214,7 +214,7 @@ |
147 |
+ let func = pexp_ident ~loc (Located.mk ~loc to_string_id) in |
148 |
+ (* Eta-expand as the to_string function might take optional arguments *) |
149 |
+ let arg = gen_symbol () in |
150 |
+- pexp_fun ~loc "" None (pvar ~loc arg) (eapply ~loc func [evar ~loc arg]) |
151 |
++ pexp_fun ~loc Nolabel None (pvar ~loc arg) (eapply ~loc func [evar ~loc arg]) |
152 |
+ |
153 |
+ class lifter ~loc ~custom_specs = object(self) |
154 |
+ inherit [expression] Ppx_format_lifter.lifter as super |
155 |
+@@ -296,9 +296,9 @@ |
156 |
+ match e.pexp_desc with |
157 |
+ | Pexp_apply ({ pexp_desc = Pexp_ident { txt = Lident "!"; _ } |
158 |
+ ; pexp_attributes = ident_attrs; _ }, |
159 |
+- [ ("", { pexp_desc = Pexp_constant (Const_string (str, _)) |
160 |
+- ; pexp_loc = loc |
161 |
+- ; pexp_attributes = str_attrs }) ]) -> |
162 |
++ [ (Nolabel, { pexp_desc = Pexp_constant (Pconst_string (str, _)) |
163 |
++ ; pexp_loc = loc |
164 |
++ ; pexp_attributes = str_attrs }) ]) -> |
165 |
+ assert_no_attributes ident_attrs; |
166 |
+ assert_no_attributes str_attrs; |
167 |
+ let e' = expand_format_string ~loc str in |
168 |
|
169 |
diff --git a/dev-ml/ppx_custom_printf/ppx_custom_printf-113.33.00.ebuild b/dev-ml/ppx_custom_printf/ppx_custom_printf-113.33.00.ebuild |
170 |
index 225be12..3220bec 100644 |
171 |
--- a/dev-ml/ppx_custom_printf/ppx_custom_printf-113.33.00.ebuild |
172 |
+++ b/dev-ml/ppx_custom_printf/ppx_custom_printf-113.33.00.ebuild |
173 |
@@ -4,7 +4,7 @@ |
174 |
|
175 |
EAPI="5" |
176 |
|
177 |
-inherit oasis |
178 |
+inherit oasis eutils |
179 |
|
180 |
DESCRIPTION="Printf-style format-strings for user-defined string conversion" |
181 |
HOMEPAGE="http://www.janestreet.com/ocaml" |
182 |
@@ -23,6 +23,10 @@ DEPEND="dev-ml/ppx_tools:= |
183 |
RDEPEND="${DEPEND}" |
184 |
DEPEND="${DEPEND} dev-ml/opam" |
185 |
|
186 |
+src_prepare() { |
187 |
+ has_version '>=dev-lang/ocaml-4.03' && epatch "${FILESDIR}/oc43.patch" |
188 |
+} |
189 |
+ |
190 |
src_configure() { |
191 |
emake setup.exe |
192 |
OASIS_SETUP_COMMAND="./setup.exe" oasis_src_configure |