summaryrefslogtreecommitdiff
path: root/dev-ml
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2016-05-03 16:34:14 +0200
committerAlexis Ballier <aballier@gentoo.org>2016-05-03 19:44:22 +0200
commit568490c7fd35d06313b26cc09ac30429c7c7e130 (patch)
treeca1a404e39edf53fcbc89f0fe0a9694ee6fcfc5e /dev-ml
parentnet-wireless/irda-utils: remove old version (diff)
downloadgentoo-568490c7fd35d06313b26cc09ac30429c7c7e130.tar.gz
gentoo-568490c7fd35d06313b26cc09ac30429c7c7e130.tar.bz2
gentoo-568490c7fd35d06313b26cc09ac30429c7c7e130.zip
dev-ml/ppx_bench: bump to 4.03
Package-Manager: portage-2.2.28 Signed-off-by: Alexis Ballier <aballier@gentoo.org>
Diffstat (limited to 'dev-ml')
-rw-r--r--dev-ml/ppx_bench/files/oc43.patch35
-rw-r--r--dev-ml/ppx_bench/ppx_bench-113.33.00.ebuild4
2 files changed, 39 insertions, 0 deletions
diff --git a/dev-ml/ppx_bench/files/oc43.patch b/dev-ml/ppx_bench/files/oc43.patch
new file mode 100644
index 000000000000..7dbc7b481ff0
--- /dev/null
+++ b/dev-ml/ppx_bench/files/oc43.patch
@@ -0,0 +1,35 @@
+diff -uNr ppx_bench-113.33.00/_oasis ppx_bench-113.33.00+4.03/_oasis
+--- ppx_bench-113.33.00/_oasis 2016-03-09 16:44:53.000000000 +0100
++++ ppx_bench-113.33.00+4.03/_oasis 2016-03-22 15:13:49.000000000 +0100
+@@ -1,8 +1,8 @@
+ OASISFormat: 0.4
+-OCamlVersion: >= 4.02.3
++OCamlVersion: >= 4.03.0
+ FindlibVersion: >= 1.3.2
+ Name: ppx_bench
+-Version: 113.33.00
++Version: 113.33.00+4.03
+ Synopsis: Syntax extension for writing in-line benchmarks in ocaml code
+ Authors: Jane Street Group, LLC <opensource@janestreet.com>
+ Copyrights: (C) 2015-2016 Jane Street Group LLC <opensource@janestreet.com>
+diff -uNr ppx_bench-113.33.00/opam ppx_bench-113.33.00+4.03/opam
+--- ppx_bench-113.33.00/opam 2016-03-18 12:08:01.000000000 +0100
++++ ppx_bench-113.33.00+4.03/opam 2016-03-22 17:51:35.000000000 +0100
+@@ -17,4 +17,4 @@
+ "ppx_inline_test"
+ "ppx_tools" {>= "0.99.3"}
+ ]
+-available: [ ocaml-version >= "4.02.3" ]
++available: [ ocaml-version >= "4.03.0" ]
+diff -uNr ppx_bench-113.33.00/src/ppx_bench.ml ppx_bench-113.33.00+4.03/src/ppx_bench.ml
+--- ppx_bench-113.33.00/src/ppx_bench.ml 2016-03-09 16:44:53.000000000 +0100
++++ ppx_bench-113.33.00+4.03/src/ppx_bench.ml 2016-03-22 15:13:49.000000000 +0100
+@@ -113,7 +113,7 @@
+ assert_enabled loc;
+ apply_to_descr_bench
+ path "add_bench_module" loc ~inner_loc:m.pmod_loc None ?name_suffix name
+- (pexp_fun ~loc "" None (punit ~loc)
++ (pexp_fun ~loc Nolabel None (punit ~loc)
+ (pexp_letmodule ~loc (Located.mk ~loc "M")
+ m
+ (eunit ~loc)))
diff --git a/dev-ml/ppx_bench/ppx_bench-113.33.00.ebuild b/dev-ml/ppx_bench/ppx_bench-113.33.00.ebuild
index 52d678d559ff..c54b3886b342 100644
--- a/dev-ml/ppx_bench/ppx_bench-113.33.00.ebuild
+++ b/dev-ml/ppx_bench/ppx_bench-113.33.00.ebuild
@@ -26,6 +26,10 @@ DEPEND="${DEPEND} dev-ml/opam"
S="${WORKDIR}/${MY_P}"
+src_prepare() {
+ has_version '>=dev-lang/ocaml-4.03' && epatch "${FILESDIR}/oc43.patch"
+}
+
src_configure() {
emake setup.exe
OASIS_SETUP_COMMAND="./setup.exe" oasis_src_configure