Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ml/ppx_expect/files/, dev-ml/ppx_expect/
Date: Sun, 02 Apr 2017 08:38:48
Message-Id: 1491122279.155b4371b4fca510e83ef2210caa0b40c361e425.aballier@gentoo
1 commit: 155b4371b4fca510e83ef2210caa0b40c361e425
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 1 16:50:03 2017 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 2 08:37:59 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=155b4371
7
8 dev-ml/ppx_expect: Bump to 0.9.0
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.2
11
12 dev-ml/ppx_expect/Manifest | 2 +-
13 dev-ml/ppx_expect/files/oc43.patch | 49 ----------------------
14 ...ct-113.33.01.ebuild => ppx_expect-0.9.0.ebuild} | 39 ++++++-----------
15 3 files changed, 14 insertions(+), 76 deletions(-)
16
17 diff --git a/dev-ml/ppx_expect/Manifest b/dev-ml/ppx_expect/Manifest
18 index c2d6b6cf5d8..a164d0729bd 100644
19 --- a/dev-ml/ppx_expect/Manifest
20 +++ b/dev-ml/ppx_expect/Manifest
21 @@ -1 +1 @@
22 -DIST ppx_expect-113.33.01.tar.gz 79539 SHA256 8697a447ce335bb5cf780ba258c13d13302d591109ff7f3ccb3ac6592db92242 SHA512 2074962dad42cb319ad758a202df4cc8f7e4302de45409da8f6167d9d3138914eba91339c3c71980663c893e1562994938907a1000fef45c96b74cbc0ace80f0 WHIRLPOOL be96bbde6d61127b1e03e7db9cf677bb5d37d5082d8110c377a545073b2500c0224e40d85c768602d40fa47fd9ac1c36294be108d3f100b590f5cb10ba5fbb49
23 +DIST ppx_expect-0.9.0.tar.gz 33700 SHA256 77d6b0da071c1fd31139edca2d95cf05c535ad8ef9b8816df041ce626be44efb SHA512 b8a6941f3ac0dea2167d7fe5c61e7adf605f5399e11049b5c9f22c613182983a014d05c2fb16e7a2dc94dbccf445e1801c39a89e6d995b5599cb40ee4322148e WHIRLPOOL e7741c77bbf06f35da4ddb1f10e2d008fff8dc536f6373317bd79a0fcac5c30fd10b4403588a71f3d9e44ec01280579e8d443a7ab37c30e0893644d81e2847aa
24
25 diff --git a/dev-ml/ppx_expect/files/oc43.patch b/dev-ml/ppx_expect/files/oc43.patch
26 deleted file mode 100644
27 index 3606d296338..00000000000
28 --- a/dev-ml/ppx_expect/files/oc43.patch
29 +++ /dev/null
30 @@ -1,49 +0,0 @@
31 -diff -uNr ppx_expect-113.33.01/expect_payload/ppx_expect_payload.ml ppx_expect-113.33.01+4.03/expect_payload/ppx_expect_payload.ml
32 ---- ppx_expect-113.33.01/expect_payload/ppx_expect_payload.ml 2016-03-22 17:09:17.000000000 +0100
33 -+++ ppx_expect-113.33.01+4.03/expect_payload/ppx_expect_payload.ml 2016-04-06 12:35:50.000000000 +0200
34 -@@ -63,7 +63,7 @@
35 -
36 - let pattern () =
37 - Ast_pattern.(
38 -- map (single_expr_payload (pexp_loc __ (pexp_constant (const_string __ __))))
39 -+ map (single_expr_payload (pexp_loc __ (pexp_constant (pconst_string __ __))))
40 - ~f:(fun f loc s tag -> f (Some (loc, s, tag)))
41 - |||
42 - map (pstr nil)
43 -diff -uNr ppx_expect-113.33.01/_oasis ppx_expect-113.33.01+4.03/_oasis
44 ---- ppx_expect-113.33.01/_oasis 2016-03-22 17:09:17.000000000 +0100
45 -+++ ppx_expect-113.33.01+4.03/_oasis 2016-04-06 12:35:50.000000000 +0200
46 -@@ -1,8 +1,8 @@
47 - OASISFormat: 0.4
48 --OCamlVersion: >= 4.02.3
49 -+OCamlVersion: >= 4.03.0
50 - FindlibVersion: >= 1.3.2
51 - Name: ppx_expect
52 --Version: 113.33.01
53 -+Version: 113.33.01+4.03
54 - Synopsis: Cram like framework for OCaml
55 - Authors: Jane Street Group, LLC <opensource@××××××××××.com>
56 - Copyrights: (C) 2015-2016 Jane Street Group LLC <opensource@××××××××××.com>
57 -diff -uNr ppx_expect-113.33.01/opam ppx_expect-113.33.01+4.03/opam
58 ---- ppx_expect-113.33.01/opam 2016-03-22 18:31:21.000000000 +0100
59 -+++ ppx_expect-113.33.01+4.03/opam 2016-04-06 12:54:27.000000000 +0200
60 -@@ -27,4 +27,4 @@
61 - "sexplib"
62 - "variantslib"
63 - ]
64 --available: [ ocaml-version >= "4.02.3" ]
65 -+available: [ ocaml-version >= "4.03.0" ]
66 -diff -uNr ppx_expect-113.33.01/src/expect_extension.ml ppx_expect-113.33.01+4.03/src/expect_extension.ml
67 ---- ppx_expect-113.33.01/src/expect_extension.ml 2016-03-22 17:09:17.000000000 +0100
68 -+++ ppx_expect-113.33.01+4.03/src/expect_extension.ml 2016-04-06 12:35:50.000000000 +0200
69 -@@ -24,9 +24,8 @@
70 - pstr ((
71 - pstr_value nonrecursive (
72 - value_binding
73 -- ~pat:(map (pstring __) ~f:(fun f x -> f (Some x)))
74 -+ ~pat:(alt_option (pstring __) ppat_any)
75 - ~expr ^:: nil)
76 -- ||| map (pstr_eval expr nil) ~f:(fun f -> f None)
77 - ) ^:: nil)
78 -
79 - let expect_test =
80
81 diff --git a/dev-ml/ppx_expect/ppx_expect-113.33.01.ebuild b/dev-ml/ppx_expect/ppx_expect-0.9.0.ebuild
82 similarity index 51%
83 rename from dev-ml/ppx_expect/ppx_expect-113.33.01.ebuild
84 rename to dev-ml/ppx_expect/ppx_expect-0.9.0.ebuild
85 index 7e3ba793aa6..06f32df2666 100644
86 --- a/dev-ml/ppx_expect/ppx_expect-113.33.01.ebuild
87 +++ b/dev-ml/ppx_expect/ppx_expect-0.9.0.ebuild
88 @@ -1,50 +1,38 @@
89 -# Copyright 1999-2015 Gentoo Foundation
90 +# Copyright 1999-2017 Gentoo Foundation
91 # Distributed under the terms of the GNU General Public License v2
92
93 -EAPI="5"
94 -
95 -inherit oasis
96 +EAPI=6
97
98 DESCRIPTION="Cram like framework for OCaml"
99 -HOMEPAGE="http://www.janestreet.com/ocaml"
100 -SRC_URI="http://ocaml.janestreet.com/ocaml-core/${PV%.*}/files/${P}.tar.gz"
101 +HOMEPAGE="https://github.com/janestreet/ppx_expect"
102 +SRC_URI="https://github.com/janestreet/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
103
104 LICENSE="Apache-2.0"
105 SLOT="0/${PV}"
106 KEYWORDS="~amd64"
107 IUSE=""
108
109 -DEPEND="dev-ml/ppx_tools:=
110 - dev-ml/fieldslib:=
111 +DEPEND="
112 + dev-lang/ocaml:=
113 + dev-ml/base:=
114 dev-ml/ppx_assert:=
115 dev-ml/ppx_compare:=
116 dev-ml/ppx_core:=
117 dev-ml/ppx_custom_printf:=
118 dev-ml/ppx_driver:=
119 dev-ml/ppx_fields_conv:=
120 + dev-ml/ppx_here:=
121 dev-ml/ppx_inline_test:=
122 + dev-ml/ppx_metaquot:=
123 dev-ml/ppx_sexp_conv:=
124 - dev-ml/ppx_sexp_value:=
125 + dev-ml/ppx_traverse:=
126 dev-ml/ppx_variants_conv:=
127 + dev-ml/stdio:=
128 + dev-ml/ocaml-migrate-parsetree:=
129 dev-ml/ocaml-re:=
130 - dev-ml/sexplib:=
131 - dev-ml/variantslib:=
132 "
133 RDEPEND="${DEPEND}"
134 -DEPEND="${DEPEND} dev-ml/opam"
135 -
136 -src_prepare() {
137 - has_version '>=dev-lang/ocaml-4.03' && epatch "${FILESDIR}/oc43.patch"
138 -}
139 -
140 -src_configure() {
141 - emake setup.exe
142 - OASIS_SETUP_COMMAND="./setup.exe" oasis_src_configure
143 -}
144 -
145 -src_compile() {
146 - emake
147 -}
148 +DEPEND="${DEPEND} dev-ml/opam dev-ml/jbuilder"
149
150 src_install() {
151 opam-installer -i \
152 @@ -52,5 +40,4 @@ src_install() {
153 --libdir="${D}/$(ocamlc -where)" \
154 --docdir="${ED}/usr/share/doc/${PF}" \
155 ${PN}.install || die
156 - dodoc CHANGES.md
157 }