summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2017-04-01 18:41:17 +0200
committerAlexis Ballier <aballier@gentoo.org>2017-04-02 10:37:58 +0200
commitfe0ba07adcc32894870a68c8f31e8261cb566c75 (patch)
treeb46e38f26a1d550fe09e244e6f71883071f4c722 /dev-ml/ppx_bench
parentdev-ml/ppx_enumerate: Bump to 0.9.0 (diff)
downloadgentoo-fe0ba07adcc32894870a68c8f31e8261cb566c75.tar.gz
gentoo-fe0ba07adcc32894870a68c8f31e8261cb566c75.tar.bz2
gentoo-fe0ba07adcc32894870a68c8f31e8261cb566c75.zip
dev-ml/ppx_bench: Bump to 0.9.0
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'dev-ml/ppx_bench')
-rw-r--r--dev-ml/ppx_bench/Manifest2
-rw-r--r--dev-ml/ppx_bench/files/oc43.patch35
-rw-r--r--dev-ml/ppx_bench/ppx_bench-0.9.0.ebuild34
-rw-r--r--dev-ml/ppx_bench/ppx_bench-113.33.00.ebuild48
4 files changed, 35 insertions, 84 deletions
diff --git a/dev-ml/ppx_bench/Manifest b/dev-ml/ppx_bench/Manifest
index 9d75c7e66f99..78d8db5a86d3 100644
--- a/dev-ml/ppx_bench/Manifest
+++ b/dev-ml/ppx_bench/Manifest
@@ -1 +1 @@
-DIST ppx_bench-113.33.00.tar.gz 56870 SHA256 3e694b1ffdeb2139189dcfc544e49e86072a7b46fdcdbb01ea10a7da42844193 SHA512 696a80bf9cdc5dc98ace9dd4fd1c5b61741f1c18af69615110730ec09736b114daa2bcc62fdac231fcf54a527ecd4f7e30d4c331a2d7e3b2aa160ec3bd54995a WHIRLPOOL bcaf4e9079546e58b98ece1495e983fdd25aa578382630d2efb9beb49fb6a6df9334ff7920f5254ab40f18d77972038d36055811e3e566fa8107764dc5911fb5
+DIST ppx_bench-0.9.0.tar.gz 11064 SHA256 e1491b585e1c1a76d05efa2851436d9e389905a65bb53fbfd5cb8b4b7f311ea0 SHA512 c82ae501fb9642e75ba16cc263dde7c18efcf3a5b2f2e91eabe57b85f15fb2ead4c41d9312c2301cb2062a4327db7985421d1503b6c7f7024f80df83075fc3f9 WHIRLPOOL d1eb770731a10c357a5cb0bfdeaa4b017cf7f8dd8beadb3f785534a0afdae26e8b2339f7d600d080aebac16906747a7e258580f7d55cd912e4b636c4af0ad30e
diff --git a/dev-ml/ppx_bench/files/oc43.patch b/dev-ml/ppx_bench/files/oc43.patch
deleted file mode 100644
index 7dbc7b481ff0..000000000000
--- a/dev-ml/ppx_bench/files/oc43.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-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-0.9.0.ebuild b/dev-ml/ppx_bench/ppx_bench-0.9.0.ebuild
new file mode 100644
index 000000000000..ef714fdd3fef
--- /dev/null
+++ b/dev-ml/ppx_bench/ppx_bench-0.9.0.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Syntax extension for writing in-line benchmarks in ocaml code"
+HOMEPAGE="https://github.com/janestreet/ppx_bench"
+SRC_URI="https://github.com/janestreet/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+
+LICENSE="Apache-2.0"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND="
+ dev-lang/ocaml:=
+ dev-ml/ppx_core:=
+ dev-ml/ppx_driver:=
+ dev-ml/ppx_inline_test:=
+ dev-ml/ppx_metaquot:=
+ dev-ml/ocaml-migrate-parsetree:=
+"
+
+RDEPEND="${DEPEND}"
+DEPEND="${DEPEND} dev-ml/opam dev-ml/jbuilder"
+
+src_install() {
+ opam-installer -i \
+ --prefix="${ED}/usr" \
+ --libdir="${D}/$(ocamlc -where)" \
+ --docdir="${ED}/usr/share/doc/${PF}" \
+ ${PN}.install || die
+}
diff --git a/dev-ml/ppx_bench/ppx_bench-113.33.00.ebuild b/dev-ml/ppx_bench/ppx_bench-113.33.00.ebuild
deleted file mode 100644
index ef656195fb91..000000000000
--- a/dev-ml/ppx_bench/ppx_bench-113.33.00.ebuild
+++ /dev/null
@@ -1,48 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-
-inherit oasis
-
-MY_P=${PN/-/_}-${PV}
-DESCRIPTION="Syntax extension for writing in-line benchmarks in ocaml code"
-HOMEPAGE="http://www.janestreet.com/ocaml"
-SRC_URI="http://ocaml.janestreet.com/ocaml-core/${PV%.*}/files/${MY_P}.tar.gz"
-
-LICENSE="Apache-2.0"
-SLOT="0/${PV}"
-KEYWORDS="~amd64"
-IUSE=""
-
-DEPEND="dev-ml/ppx_tools:=
- dev-ml/ppx_driver:=
- dev-ml/ppx_inline_test:=
- dev-ml/ppx_core:="
-
-RDEPEND="${DEPEND}"
-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
-}
-
-src_compile() {
- emake
-}
-
-src_install() {
- opam-installer -i \
- --prefix="${ED}/usr" \
- --libdir="${D}/$(ocamlc -where)" \
- --docdir="${ED}/usr/share/doc/${PF}" \
- ${PN}.install || die
- dodoc CHANGES.md
-}