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_enumerate/, dev-ml/ppx_enumerate/files/
Date: Sun, 02 Apr 2017 08:38:58
Message-Id: 1491122278.03ee331c683b178b7ddfffc3c9c2149c41d3ceed.aballier@gentoo
1 commit: 03ee331c683b178b7ddfffc3c9c2149c41d3ceed
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 1 16:40:47 2017 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 2 08:37:58 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03ee331c
7
8 dev-ml/ppx_enumerate: Bump to 0.9.0
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.2
11
12 dev-ml/ppx_enumerate/Manifest | 2 +-
13 dev-ml/ppx_enumerate/files/oc43.patch | 40 --------------------
14 dev-ml/ppx_enumerate/ppx_enumerate-0.9.0.ebuild | 32 ++++++++++++++++
15 .../ppx_enumerate/ppx_enumerate-113.33.00.ebuild | 44 ----------------------
16 4 files changed, 33 insertions(+), 85 deletions(-)
17
18 diff --git a/dev-ml/ppx_enumerate/Manifest b/dev-ml/ppx_enumerate/Manifest
19 index 0e9288aa18d..d43aff91a37 100644
20 --- a/dev-ml/ppx_enumerate/Manifest
21 +++ b/dev-ml/ppx_enumerate/Manifest
22 @@ -1 +1 @@
23 -DIST ppx_enumerate-113.33.00.tar.gz 56173 SHA256 9eaa3804b1553594d3422bc86aecd13b91a69b879b8e2a826a2862beb4e91973 SHA512 9792f991a570a7a636ca528e4ff400cde147a8a034e54dda853b9df677aa3a7e8d2c570045c11d4beb3ce6ef827116a65f8ac0ceda969b53fb99dbba8ce99bf9 WHIRLPOOL 416690f9f7153bacbb086fe1ab3394585b4be878f4be1e706df11bdcfba6471ee6d724b89ba9b2880c1c74a9e3486ff8b5e59d8608e1d445c1b082dd60fbd244
24 +DIST ppx_enumerate-0.9.0.tar.gz 10967 SHA256 294cf49af97bfae335f7edbe64eb0e97bda736af949ff57ca9c4d195e54e9dfb SHA512 46e979528af75313fcbfee4d1437156ded90d46f7608271a77ad41bb7e087e2ea4f61f534624b23679c4edf812d2fcfe26b9b634c3fcb691e2da2388ae04950c WHIRLPOOL 6c33184295d1f8e4d13dc5d619b3d9df3981e8e7f8042e129b316f4cfab2a0ef8224eca7b716bec68d75bf86bf4027eded73a035c02e2bacc95ec49ea18f1785
25
26 diff --git a/dev-ml/ppx_enumerate/files/oc43.patch b/dev-ml/ppx_enumerate/files/oc43.patch
27 deleted file mode 100644
28 index b04635f9790..00000000000
29 --- a/dev-ml/ppx_enumerate/files/oc43.patch
30 +++ /dev/null
31 @@ -1,40 +0,0 @@
32 -diff -uNr ppx_enumerate-113.33.00/_oasis ppx_enumerate-113.33.00+4.03/_oasis
33 ---- ppx_enumerate-113.33.00/_oasis 2016-03-09 16:44:54.000000000 +0100
34 -+++ ppx_enumerate-113.33.00+4.03/_oasis 2016-03-22 15:13:50.000000000 +0100
35 -@@ -1,8 +1,8 @@
36 - OASISFormat: 0.4
37 --OCamlVersion: >= 4.02.3
38 -+OCamlVersion: >= 4.03.0
39 - FindlibVersion: >= 1.3.2
40 - Name: ppx_enumerate
41 --Version: 113.33.00
42 -+Version: 113.33.00+4.03
43 - Synopsis: Generate a list containing all values of a finite type
44 - Authors: Jane Street Group, LLC <opensource@××××××××××.com>
45 - Copyrights: (C) 2015-2016 Jane Street Group LLC <opensource@××××××××××.com>
46 -diff -uNr ppx_enumerate-113.33.00/opam ppx_enumerate-113.33.00+4.03/opam
47 ---- ppx_enumerate-113.33.00/opam 2016-03-18 12:08:01.000000000 +0100
48 -+++ ppx_enumerate-113.33.00+4.03/opam 2016-03-22 17:51:36.000000000 +0100
49 -@@ -16,4 +16,4 @@
50 - "ppx_tools" {>= "0.99.3"}
51 - "ppx_type_conv"
52 - ]
53 --available: [ ocaml-version >= "4.02.3" ]
54 -+available: [ ocaml-version >= "4.03.0" ]
55 -diff -uNr ppx_enumerate-113.33.00/src/ppx_enumerate.ml ppx_enumerate-113.33.00+4.03/src/ppx_enumerate.ml
56 ---- ppx_enumerate-113.33.00/src/ppx_enumerate.ml 2016-03-09 16:44:54.000000000 +0100
57 -+++ ppx_enumerate-113.33.00+4.03/src/ppx_enumerate.ml 2016-03-22 15:13:50.000000000 +0100
58 -@@ -226,10 +226,11 @@
59 -
60 - and constructor_case loc cd =
61 - match cd.pcd_args with
62 -- | [] -> [%expr [ [%e econstruct cd None ] ] ]
63 -- | tps ->
64 -+ | Pcstr_tuple [] -> [%expr [ [%e econstruct cd None ] ] ]
65 -+ | Pcstr_tuple tps ->
66 - product loc tps (fun x ->
67 - econstruct cd (Some (pexp_tuple ~loc x)))
68 -+ | Pcstr_record _ -> failwith "Pcstr_record not supported"
69 -
70 - and product loc tps f =
71 - let all = List.map tps ~f:(fun tp -> enum ~main_type:tp tp) in
72
73 diff --git a/dev-ml/ppx_enumerate/ppx_enumerate-0.9.0.ebuild b/dev-ml/ppx_enumerate/ppx_enumerate-0.9.0.ebuild
74 new file mode 100644
75 index 00000000000..7e943ef8c74
76 --- /dev/null
77 +++ b/dev-ml/ppx_enumerate/ppx_enumerate-0.9.0.ebuild
78 @@ -0,0 +1,32 @@
79 +# Copyright 1999-2017 Gentoo Foundation
80 +# Distributed under the terms of the GNU General Public License v2
81 +
82 +EAPI=6
83 +
84 +DESCRIPTION="Generate a list containing all values of a finite type"
85 +HOMEPAGE="https://github.com/janestreet/ppx_enumerate"
86 +SRC_URI="https://github.com/janestreet/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
87 +
88 +LICENSE="Apache-2.0"
89 +SLOT="0/${PV}"
90 +KEYWORDS="~amd64"
91 +IUSE=""
92 +
93 +DEPEND="
94 + dev-lang/ocaml:=
95 + dev-ml/ppx_core:=
96 + dev-ml/ppx_driver:=
97 + dev-ml/ppx_metaquot:=
98 + dev-ml/ppx_type_conv:=
99 + dev-ml/ocaml-migrate-parsetree:=
100 +"
101 +RDEPEND="${DEPEND}"
102 +DEPEND="${DEPEND} dev-ml/opam dev-ml/jbuilder"
103 +
104 +src_install() {
105 + opam-installer -i \
106 + --prefix="${ED}/usr" \
107 + --libdir="${D}/$(ocamlc -where)" \
108 + --docdir="${ED}/usr/share/doc/${PF}" \
109 + ${PN}.install || die
110 +}
111
112 diff --git a/dev-ml/ppx_enumerate/ppx_enumerate-113.33.00.ebuild b/dev-ml/ppx_enumerate/ppx_enumerate-113.33.00.ebuild
113 deleted file mode 100644
114 index 5f291ae3013..00000000000
115 --- a/dev-ml/ppx_enumerate/ppx_enumerate-113.33.00.ebuild
116 +++ /dev/null
117 @@ -1,44 +0,0 @@
118 -# Copyright 1999-2015 Gentoo Foundation
119 -# Distributed under the terms of the GNU General Public License v2
120 -
121 -EAPI="5"
122 -
123 -inherit oasis
124 -
125 -DESCRIPTION="Generate a list containing all values of a finite type"
126 -HOMEPAGE="http://www.janestreet.com/ocaml"
127 -SRC_URI="http://ocaml.janestreet.com/ocaml-core/${PV%.*}/files/${P}.tar.gz"
128 -
129 -LICENSE="Apache-2.0"
130 -SLOT="0/${PV}"
131 -KEYWORDS="~amd64"
132 -IUSE=""
133 -
134 -DEPEND="dev-ml/ppx_tools:=
135 - dev-ml/ppx_core:=
136 - dev-ml/ppx_type_conv:=
137 -"
138 -RDEPEND="${DEPEND}"
139 -DEPEND="${DEPEND} dev-ml/opam"
140 -
141 -src_prepare() {
142 - has_version '>=dev-lang/ocaml-4.03' && epatch "${FILESDIR}/oc43.patch"
143 -}
144 -
145 -src_configure() {
146 - emake setup.exe
147 - OASIS_SETUP_COMMAND="./setup.exe" oasis_src_configure
148 -}
149 -
150 -src_compile() {
151 - emake
152 -}
153 -
154 -src_install() {
155 - opam-installer -i \
156 - --prefix="${ED}/usr" \
157 - --libdir="${D}/$(ocamlc -where)" \
158 - --docdir="${ED}/usr/share/doc/${PF}" \
159 - ${PN}.install || die
160 - dodoc CHANGES.md
161 -}