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/js_of_ocaml/, dev-ml/js_of_ocaml/files/
Date: Tue, 01 Mar 2016 18:48:09
Message-Id: 1456858057.79ba50f3e692f57b7ee9d4dc8af935f5e851a5a1.aballier@gentoo
1 commit: 79ba50f3e692f57b7ee9d4dc8af935f5e851a5a1
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Tue Mar 1 18:19:59 2016 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 1 18:47:37 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79ba50f3
7
8 dev-ml/js_of_ocaml: remove old
9
10 Package-Manager: portage-2.2.27
11 Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org>
12
13 dev-ml/js_of_ocaml/Manifest | 1 -
14 dev-ml/js_of_ocaml/files/tyxml36-2.patch | 30 ------
15 dev-ml/js_of_ocaml/files/tyxml36.patch | 158 ------------------------------
16 dev-ml/js_of_ocaml/js_of_ocaml-2.6.ebuild | 52 ----------
17 4 files changed, 241 deletions(-)
18
19 diff --git a/dev-ml/js_of_ocaml/Manifest b/dev-ml/js_of_ocaml/Manifest
20 index fa92aea..e312923 100644
21 --- a/dev-ml/js_of_ocaml/Manifest
22 +++ b/dev-ml/js_of_ocaml/Manifest
23 @@ -1,2 +1 @@
24 -DIST js_of_ocaml-2.6.tar.gz 1291882 SHA256 c1f066d09524c6be2d40cfb387de49b337837dcc8f2f746a207f37706ca66460 SHA512 2c4e294b7946757d9b05ec640e130cbee6a0130c03eb3a2188988fb956c1f0e2738c32e97abc461e748e667e7d31e386c5470942df84ddbcf5903d41b133e8c8 WHIRLPOOL abf477caa49edc65b5e577a90dd86641f12b6757e6f2c9034fe08d51cc1ac11209b73e8fdd88de420ed0277d8715bb085c10d29b237854cdebb8a9e36f8e22fe
25 DIST js_of_ocaml-2.7.tar.gz 1304487 SHA256 52922f55428a1d8a55ec2493c4989152e06efd29a981adf8ac9f343f558854b5 SHA512 ab6e5d16342bf763c10eb5c2e7589610622034eee2ad82aa09c6f68448f155a5c56584702307852b251bde80146c1b7115ed6add1358ad96b130c9dd2b96118b WHIRLPOOL 278c17432fdf9bf670df33479c68705868be39eb4d53f67fc489fe44ac2e7645dd5e2ed3e6e71752a2387b516ce0ab6dc99ac1d870fc75ffdad9df87031e9de4
26
27 diff --git a/dev-ml/js_of_ocaml/files/tyxml36-2.patch b/dev-ml/js_of_ocaml/files/tyxml36-2.patch
28 deleted file mode 100644
29 index 0f7771c..0000000
30 --- a/dev-ml/js_of_ocaml/files/tyxml36-2.patch
31 +++ /dev/null
32 @@ -1,30 +0,0 @@
33 -commit f11959da5a630a7dca47497c9543231d9698b406
34 -Author: Vasilis Papavasileiou <git@×××××××××××××××.net>
35 -Date: Fri Aug 7 11:16:20 2015 +0200
36 -
37 - Tyxml_js: ft constructor in Xml_wrap (forward-compatibility)
38 -
39 -diff --git a/lib/tyxml/tyxml_js.ml b/lib/tyxml/tyxml_js.ml
40 -index 4799600..cdf7cd2 100644
41 ---- a/lib/tyxml/tyxml_js.ml
42 -+++ b/lib/tyxml/tyxml_js.ml
43 -@@ -164,6 +164,7 @@ module Html5 = Html5_f.Make(Xml)(Svg)
44 - module Xml_wrap = struct
45 - type 'a t = 'a React.signal
46 - type 'a tlist = 'a ReactiveData.RList.t
47 -+ type ('a, 'b) ft = 'a -> 'b
48 - let return = React.S.const
49 - let fmap f = React.S.map f
50 - let nil () = ReactiveData.RList.nil
51 -diff --git a/lib/tyxml/tyxml_js.mli b/lib/tyxml/tyxml_js.mli
52 -index 8cb33c5..db2183e 100644
53 ---- a/lib/tyxml/tyxml_js.mli
54 -+++ b/lib/tyxml/tyxml_js.mli
55 -@@ -50,6 +50,7 @@ module Xml : XML with module W = Xml_wrap.NoWrap
56 - module Xml_wrap : Xml_wrap.T
57 - with type 'a t = 'a React.signal
58 - and type 'a tlist = 'a ReactiveData.RList.t
59 -+ and type ('a, 'b) ft = 'a -> 'b
60 -
61 - module Util : sig
62 - val update_children : Dom.node Js.t -> Dom.node Js.t ReactiveData.RList.t -> unit
63
64 diff --git a/dev-ml/js_of_ocaml/files/tyxml36.patch b/dev-ml/js_of_ocaml/files/tyxml36.patch
65 deleted file mode 100644
66 index 34a2aab..0000000
67 --- a/dev-ml/js_of_ocaml/files/tyxml36.patch
68 +++ /dev/null
69 @@ -1,158 +0,0 @@
70 -commit ebf7150f41c64ac0e18e9f89d1e565b6c3115414
71 -Author: Vasilis Papavasileiou <git@×××××××××××××××.net>
72 -Date: Thu Aug 6 11:52:11 2015 +0200
73 -
74 - up-to-date version of @drup's new-style wrapping (ocsigen/tyxml#58)
75 -
76 -diff --git a/lib/tyxml/tyxml_js.ml b/lib/tyxml/tyxml_js.ml
77 -index 0143219..4799600 100644
78 ---- a/lib/tyxml/tyxml_js.ml
79 -+++ b/lib/tyxml/tyxml_js.ml
80 -@@ -20,8 +20,19 @@
81 - let js_string_of_float f = (Js.number_of_float f)##toString()
82 - let js_string_of_int i = (Js.number_of_float (float_of_int i))##toString()
83 -
84 -+
85 -+module type XML =
86 -+ Xml_sigs.T
87 -+ with type uri = string
88 -+ and type event_handler = Dom_html.event Js.t -> bool
89 -+ and type mouse_event_handler = Dom_html.mouseEvent Js.t -> bool
90 -+ and type keyboard_event_handler = Dom_html.keyboardEvent Js.t -> bool
91 -+ and type elt = Dom.node Js.t
92 -+
93 -+
94 - module Xml = struct
95 -
96 -+ module W = Xml_wrap.NoWrap
97 - type 'a wrap = 'a
98 - type 'a list_wrap = 'a list
99 -
100 -@@ -162,7 +173,6 @@ module Xml_wrap = struct
101 - let append x y = ReactiveData.RList.concat x y
102 - end
103 -
104 --
105 - module Util = struct
106 - open ReactiveData
107 - open RList
108 -@@ -226,9 +236,23 @@ end
109 -
110 -
111 - module R = struct
112 -- module Xml_wed = struct
113 -- type 'a wrap = 'a Xml_wrap.t
114 -- type 'a list_wrap = 'a Xml_wrap.tlist
115 -+
116 -+ let filter_attrib (name,a) on =
117 -+ match a with
118 -+ | Xml.Event _ ->
119 -+ raise (Invalid_argument "filter_attrib not implemented for event handler")
120 -+ | Xml.Attr a ->
121 -+ name,
122 -+ Xml.Attr
123 -+ (React.S.l2
124 -+ (fun on a -> if on then a else None) on a)
125 -+
126 -+ let attach_attribs = Xml.attach_attribs
127 -+
128 -+ module Xml = struct
129 -+ module W = Xml_wrap
130 -+ type 'a wrap = 'a W.t
131 -+ type 'a list_wrap = 'a W.tlist
132 - type uri = Xml.uri
133 - let string_of_uri = Xml.string_of_uri
134 - let uri_of_string = Xml.uri_of_string
135 -@@ -239,7 +263,7 @@ module R = struct
136 - type attrib = Xml.attrib
137 -
138 - let attr name f s =
139 -- let a = Xml_wrap.fmap f s in
140 -+ let a = W.fmap f s in
141 - name,Xml.Attr a
142 -
143 - let float_attrib name s = attr name (fun f -> Some (js_string_of_float f)) s
144 -@@ -267,7 +291,7 @@ module R = struct
145 - let leaf = Xml.leaf
146 - let node ?(a=[]) name l =
147 - let e = Dom_html.document##createElement(Js.string name) in
148 -- Xml.attach_attribs e a;
149 -+ attach_attribs e a;
150 - Util.update_children (e :> Dom.node Js.t) l;
151 - (e :> Dom.node Js.t)
152 - let cdata = Xml.cdata
153 -@@ -275,30 +299,22 @@ module R = struct
154 - let cdata_style = Xml.cdata_style
155 - end
156 -
157 -- module Xml_wed_svg = struct
158 -- include Xml_wed
159 -+ module Xml_Svg = struct
160 -+ include Xml
161 -
162 - let leaf = Xml_Svg.leaf
163 -
164 - let node ?(a = []) name l =
165 - let e =
166 - Dom_html.document##createElementNS(Dom_svg.xmlns,Js.string name) in
167 -- Xml.attach_attribs e a;
168 -+ attach_attribs e a;
169 - Util.update_children (e :> Dom.node Js.t) l;
170 - (e :> Dom.node Js.t)
171 - end
172 -
173 -- module Svg = Svg_f.MakeWrapped(Xml_wrap)(Xml_wed_svg)
174 -- module Html5 = Html5_f.MakeWrapped(Xml_wrap)(Xml_wed)(Svg)
175 -- let filter_attrib (name,a) on =
176 -- match a with
177 -- | Xml.Event _ ->
178 -- raise (Invalid_argument "filter_attrib not implemented for event handler")
179 -- | Xml.Attr a ->
180 -- name,
181 -- Xml.Attr
182 -- (React.S.l2
183 -- (fun on a -> if on then a else None) on a)
184 -+ module Svg = Svg_f.Make(Xml_Svg)
185 -+ module Html5 = Html5_f.Make(Xml)(Svg)
186 -+
187 - end
188 -
189 - module To_dom = Tyxml_cast.MakeTo(struct
190 -diff --git a/lib/tyxml/tyxml_js.mli b/lib/tyxml/tyxml_js.mli
191 -index b3323cc..8cb33c5 100644
192 ---- a/lib/tyxml/tyxml_js.mli
193 -+++ b/lib/tyxml/tyxml_js.mli
194 -@@ -37,13 +37,16 @@
195 - @see <https://ocsigen.org/tyxml/dev/api/Html5_sigs.T> Html5_sigs.T to have a list of available functions to build HTML.
196 - *)
197 -
198 --module Xml : Xml_sigs.T
199 -+module type XML =
200 -+ Xml_sigs.T
201 - with type uri = string
202 - and type event_handler = Dom_html.event Js.t -> bool
203 - and type mouse_event_handler = Dom_html.mouseEvent Js.t -> bool
204 - and type keyboard_event_handler = Dom_html.keyboardEvent Js.t -> bool
205 - and type elt = Dom.node Js.t
206 -
207 -+module Xml : XML with module W = Xml_wrap.NoWrap
208 -+
209 - module Xml_wrap : Xml_wrap.T
210 - with type 'a t = 'a React.signal
211 - and type 'a tlist = 'a ReactiveData.RList.t
212 -@@ -57,10 +60,13 @@ module Svg : Svg_sigs.Make(Xml).T
213 - module Html5 : Html5_sigs.Make(Xml)(Svg).T
214 -
215 - module R : sig
216 -- module Svg : Svg_sigs.MakeWrapped(Xml_wrap)(Xml).T
217 -+ module Xml : XML with module W = Xml_wrap
218 -+
219 -+ module Svg : Svg_sigs.Make(Xml).T
220 - with type +'a elt = 'a Svg.elt
221 - and type +'a attrib = 'a Svg.attrib
222 -- module Html5 : Html5_sigs.MakeWrapped(Xml_wrap)(Xml)(Svg).T
223 -+
224 -+ module Html5 : Html5_sigs.Make(Xml)(Svg).T
225 - with type +'a elt = 'a Html5.elt
226 - and type +'a attrib = 'a Html5.attrib
227 - val filter_attrib : 'a Html5.attrib -> bool React.signal -> 'a Html5.attrib
228
229 diff --git a/dev-ml/js_of_ocaml/js_of_ocaml-2.6.ebuild b/dev-ml/js_of_ocaml/js_of_ocaml-2.6.ebuild
230 deleted file mode 100644
231 index b7fe9c9..0000000
232 --- a/dev-ml/js_of_ocaml/js_of_ocaml-2.6.ebuild
233 +++ /dev/null
234 @@ -1,52 +0,0 @@
235 -# Copyright 1999-2015 Gentoo Foundation
236 -# Distributed under the terms of the GNU General Public License v2
237 -# $Id$
238 -
239 -EAPI=5
240 -
241 -inherit findlib eutils
242 -
243 -DESCRIPTION="A compiler from OCaml bytecode to javascript"
244 -HOMEPAGE="http://ocsigen.org/js_of_ocaml/"
245 -SRC_URI="https://github.com/ocsigen/js_of_ocaml/archive/${PV}.tar.gz -> ${P}.tar.gz"
246 -
247 -LICENSE="LGPL-2.1-with-linking-exception"
248 -SLOT="0/${PV}"
249 -KEYWORDS="~amd64"
250 -IUSE="+ocamlopt doc +deriving"
251 -
252 -DEPEND=">=dev-lang/ocaml-3.12:=[ocamlopt?]
253 - >=dev-ml/lwt-2.4.4:=
254 - dev-ml/react:=
255 - dev-ml/reactiveData:=
256 - >=dev-ml/tyxml-3.6:=
257 - dev-ml/cmdliner:=
258 - dev-ml/menhir:=
259 - dev-ml/ocaml-base64:=
260 - dev-ml/camlp4:=
261 - dev-ml/cppo:=
262 - deriving? ( >=dev-ml/deriving-0.6:= )"
263 -RDEPEND="${DEPEND}"
264 -
265 -src_prepare() {
266 - epatch \
267 - "${FILESDIR}/tyxml36.patch" \
268 - "${FILESDIR}/tyxml36-2.patch"
269 -}
270 -
271 -src_configure() {
272 - use ocamlopt || echo "BEST := byte" >> Makefile.conf
273 - use deriving || echo "WITH_DERIVING := NO" >> Makefile.conf
274 -}
275 -
276 -src_compile() {
277 - emake
278 - use doc && emake doc
279 -}
280 -
281 -src_install() {
282 - findlib_src_preinst
283 - emake BINDIR="${ED}/usr/bin/" install
284 - dodoc CHANGES README.md
285 - use doc && dohtml -r doc/api/html/
286 -}