1 |
commit: 7e3fa6a3010694fdc50538c0d7722f1362eabac3 |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Apr 3 09:36:39 2017 +0000 |
4 |
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Apr 3 09:36:39 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e3fa6a3 |
7 |
|
8 |
dev-ml/ocaml-websocket: Initial import |
9 |
|
10 |
Package-Manager: Portage-2.3.5, Repoman-2.3.2 |
11 |
|
12 |
dev-ml/ocaml-websocket/Manifest | 1 + |
13 |
dev-ml/ocaml-websocket/metadata.xml | 12 +++++ |
14 |
dev-ml/ocaml-websocket/ocaml-websocket-2.9.ebuild | 54 +++++++++++++++++++++++ |
15 |
3 files changed, 67 insertions(+) |
16 |
|
17 |
diff --git a/dev-ml/ocaml-websocket/Manifest b/dev-ml/ocaml-websocket/Manifest |
18 |
new file mode 100644 |
19 |
index 00000000000..94a592d40bf |
20 |
--- /dev/null |
21 |
+++ b/dev-ml/ocaml-websocket/Manifest |
22 |
@@ -0,0 +1 @@ |
23 |
+DIST ocaml-websocket-2.9.tar.gz 23946 SHA256 fcf53aec904f0defbd76ec4aea9a4363bb38912b76c84cf97ffa1a5bfcd260c3 SHA512 eab5e4f971985c03ca70b46abb54ca8a09491e5ebc803b57ddf8447447b6926da2117fd882c7cb5a9a7282290e756f535e4584f09cbd21ce2554f20df1db7ae8 WHIRLPOOL fbefe08995de2721370571a66021c8dd6f51d65f142e310f1cf34f4fdcc8ea4adb6ab3dbec70fa01660cdf1a2c22cffc31a4c87ae674864b528839c06d96a423 |
24 |
|
25 |
diff --git a/dev-ml/ocaml-websocket/metadata.xml b/dev-ml/ocaml-websocket/metadata.xml |
26 |
new file mode 100644 |
27 |
index 00000000000..fa5c1b148ef |
28 |
--- /dev/null |
29 |
+++ b/dev-ml/ocaml-websocket/metadata.xml |
30 |
@@ -0,0 +1,12 @@ |
31 |
+<?xml version="1.0" encoding="UTF-8"?> |
32 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
33 |
+<pkgmetadata> |
34 |
+<maintainer type="project"> |
35 |
+ <email>ml@g.o</email> |
36 |
+ <name>Gentoo ML Project</name> |
37 |
+</maintainer> |
38 |
+ <use> |
39 |
+ <flag name="async">Enables support for the <pkg>dev-ml/async</pkg> asynchronous execution library.</flag> |
40 |
+ <flag name="lwt">Enables support for the <pkg>dev-ml/lwt</pkg> cooperative light-weight thread library.</flag> |
41 |
+ </use> |
42 |
+</pkgmetadata> |
43 |
|
44 |
diff --git a/dev-ml/ocaml-websocket/ocaml-websocket-2.9.ebuild b/dev-ml/ocaml-websocket/ocaml-websocket-2.9.ebuild |
45 |
new file mode 100644 |
46 |
index 00000000000..6dd48459ec4 |
47 |
--- /dev/null |
48 |
+++ b/dev-ml/ocaml-websocket/ocaml-websocket-2.9.ebuild |
49 |
@@ -0,0 +1,54 @@ |
50 |
+# Copyright 1999-2017 Gentoo Foundation |
51 |
+# Distributed under the terms of the GNU General Public License v2 |
52 |
+ |
53 |
+EAPI=6 |
54 |
+ |
55 |
+DESCRIPTION="Websocket library for OCaml" |
56 |
+HOMEPAGE="https://github.com/vbmithr/ocaml-websocket" |
57 |
+SRC_URI="https://github.com/vbmithr/ocaml-websocket/archive/${PV}.tar.gz -> ${P}.tar.gz" |
58 |
+ |
59 |
+LICENSE="ISC" |
60 |
+SLOT="0/${PV}" |
61 |
+KEYWORDS="~amd64" |
62 |
+IUSE="+ocamlopt async +ssl lwt" |
63 |
+ |
64 |
+DEPEND=" |
65 |
+ dev-lang/ocaml:=[ocamlopt?] |
66 |
+ dev-ml/astring:=[ocamlopt(+)?] |
67 |
+ dev-ml/ocaml-cohttp:=[ocamlopt(+)?,async?,lwt?] |
68 |
+ dev-ml/cppo:=[ocamlopt(+)?] |
69 |
+ dev-ml/ocplib-endian:=[ocamlopt(+)?] |
70 |
+ async? ( |
71 |
+ dev-ml/async:=[ocamlopt(+)?] |
72 |
+ ssl? ( dev-ml/async_ssl:=[ocamlopt(+)?] ) |
73 |
+ ) |
74 |
+ lwt? ( dev-ml/lwt:=[ocamlopt(+)?] ) |
75 |
+ ssl? ( dev-ml/cryptokit:=[ocamlopt(+)?] ) |
76 |
+ |
77 |
+" |
78 |
+RDEPEND="${DEPEND}" |
79 |
+DEPEND="${DEPEND} |
80 |
+ dev-ml/opam |
81 |
+ dev-ml/ocamlbuild" |
82 |
+ |
83 |
+src_compile() { |
84 |
+ ocaml pkg/build.ml \ |
85 |
+ native=$(usex ocamlopt true false) \ |
86 |
+ native-dynlink=$(usex ocamlopt true false) \ |
87 |
+ lwt=$(usex lwt true false) \ |
88 |
+ async=$(usex async true false) \ |
89 |
+ async_ssl=$(usex async "$(usex ssl true false)" false) \ |
90 |
+ nocrypto=false \ |
91 |
+ cryptokit=$(usex ssl true false) \ |
92 |
+ test=false \ |
93 |
+ || die |
94 |
+} |
95 |
+ |
96 |
+src_install() { |
97 |
+ opam-installer -i \ |
98 |
+ --prefix="${ED}/usr" \ |
99 |
+ --libdir="${D}/$(ocamlc -where)" \ |
100 |
+ --docdir="${ED}/usr/share/doc/${PF}" \ |
101 |
+ websocket.install || die |
102 |
+ dodoc README CHANGES |
103 |
+} |