1 |
commit: 568490c7fd35d06313b26cc09ac30429c7c7e130 |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 3 14:34:14 2016 +0000 |
4 |
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 3 17:44:22 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=568490c7 |
7 |
|
8 |
dev-ml/ppx_bench: bump to 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_bench/files/oc43.patch | 35 +++++++++++++++++++++++++++++ |
14 |
dev-ml/ppx_bench/ppx_bench-113.33.00.ebuild | 4 ++++ |
15 |
2 files changed, 39 insertions(+) |
16 |
|
17 |
diff --git a/dev-ml/ppx_bench/files/oc43.patch b/dev-ml/ppx_bench/files/oc43.patch |
18 |
new file mode 100644 |
19 |
index 0000000..7dbc7b4 |
20 |
--- /dev/null |
21 |
+++ b/dev-ml/ppx_bench/files/oc43.patch |
22 |
@@ -0,0 +1,35 @@ |
23 |
+diff -uNr ppx_bench-113.33.00/_oasis ppx_bench-113.33.00+4.03/_oasis |
24 |
+--- ppx_bench-113.33.00/_oasis 2016-03-09 16:44:53.000000000 +0100 |
25 |
++++ ppx_bench-113.33.00+4.03/_oasis 2016-03-22 15:13:49.000000000 +0100 |
26 |
+@@ -1,8 +1,8 @@ |
27 |
+ OASISFormat: 0.4 |
28 |
+-OCamlVersion: >= 4.02.3 |
29 |
++OCamlVersion: >= 4.03.0 |
30 |
+ FindlibVersion: >= 1.3.2 |
31 |
+ Name: ppx_bench |
32 |
+-Version: 113.33.00 |
33 |
++Version: 113.33.00+4.03 |
34 |
+ Synopsis: Syntax extension for writing in-line benchmarks in ocaml code |
35 |
+ Authors: Jane Street Group, LLC <opensource@××××××××××.com> |
36 |
+ Copyrights: (C) 2015-2016 Jane Street Group LLC <opensource@××××××××××.com> |
37 |
+diff -uNr ppx_bench-113.33.00/opam ppx_bench-113.33.00+4.03/opam |
38 |
+--- ppx_bench-113.33.00/opam 2016-03-18 12:08:01.000000000 +0100 |
39 |
++++ ppx_bench-113.33.00+4.03/opam 2016-03-22 17:51:35.000000000 +0100 |
40 |
+@@ -17,4 +17,4 @@ |
41 |
+ "ppx_inline_test" |
42 |
+ "ppx_tools" {>= "0.99.3"} |
43 |
+ ] |
44 |
+-available: [ ocaml-version >= "4.02.3" ] |
45 |
++available: [ ocaml-version >= "4.03.0" ] |
46 |
+diff -uNr ppx_bench-113.33.00/src/ppx_bench.ml ppx_bench-113.33.00+4.03/src/ppx_bench.ml |
47 |
+--- ppx_bench-113.33.00/src/ppx_bench.ml 2016-03-09 16:44:53.000000000 +0100 |
48 |
++++ ppx_bench-113.33.00+4.03/src/ppx_bench.ml 2016-03-22 15:13:49.000000000 +0100 |
49 |
+@@ -113,7 +113,7 @@ |
50 |
+ assert_enabled loc; |
51 |
+ apply_to_descr_bench |
52 |
+ path "add_bench_module" loc ~inner_loc:m.pmod_loc None ?name_suffix name |
53 |
+- (pexp_fun ~loc "" None (punit ~loc) |
54 |
++ (pexp_fun ~loc Nolabel None (punit ~loc) |
55 |
+ (pexp_letmodule ~loc (Located.mk ~loc "M") |
56 |
+ m |
57 |
+ (eunit ~loc))) |
58 |
|
59 |
diff --git a/dev-ml/ppx_bench/ppx_bench-113.33.00.ebuild b/dev-ml/ppx_bench/ppx_bench-113.33.00.ebuild |
60 |
index 52d678d..c54b388 100644 |
61 |
--- a/dev-ml/ppx_bench/ppx_bench-113.33.00.ebuild |
62 |
+++ b/dev-ml/ppx_bench/ppx_bench-113.33.00.ebuild |
63 |
@@ -26,6 +26,10 @@ DEPEND="${DEPEND} dev-ml/opam" |
64 |
|
65 |
S="${WORKDIR}/${MY_P}" |
66 |
|
67 |
+src_prepare() { |
68 |
+ has_version '>=dev-lang/ocaml-4.03' && epatch "${FILESDIR}/oc43.patch" |
69 |
+} |
70 |
+ |
71 |
src_configure() { |
72 |
emake setup.exe |
73 |
OASIS_SETUP_COMMAND="./setup.exe" oasis_src_configure |