1 |
commit: 58fd5dcd4938a9f962654880520b9e57322080a3 |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 6 14:13:21 2016 +0000 |
4 |
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 6 14:17:21 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58fd5dcd |
7 |
|
8 |
dev-ml/eliom: add live ebuild |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
dev-ml/eliom/eliom-9999.ebuild | 67 ++++++++++++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 67 insertions(+) |
14 |
|
15 |
diff --git a/dev-ml/eliom/eliom-9999.ebuild b/dev-ml/eliom/eliom-9999.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000..f408965 |
18 |
--- /dev/null |
19 |
+++ b/dev-ml/eliom/eliom-9999.ebuild |
20 |
@@ -0,0 +1,67 @@ |
21 |
+# Copyright 1999-2016 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+# $Id$ |
24 |
+ |
25 |
+EAPI=5 |
26 |
+ |
27 |
+inherit eutils multilib findlib |
28 |
+ |
29 |
+DESCRIPTION="A web framework to program client/server applications" |
30 |
+HOMEPAGE="http://ocsigen.org/eliom/" |
31 |
+ |
32 |
+if [ "${PV#9999}" != "${PV}" ] ; then |
33 |
+ inherit git-r3 |
34 |
+ SRC_URI="" |
35 |
+ EGIT_REPO_URI="https://github.com/ocsigen/eliom" |
36 |
+ KEYWORDS="" |
37 |
+else |
38 |
+ SRC_URI="https://github.com/ocsigen/eliom/archive/${PV}.tar.gz -> ${P}.tar.gz" |
39 |
+ KEYWORDS="~amd64" |
40 |
+fi |
41 |
+ |
42 |
+LICENSE="LGPL-2.1-with-linking-exception" |
43 |
+SLOT="0/${PV}" |
44 |
+IUSE="doc +ocamlopt +ppx" |
45 |
+ |
46 |
+RDEPEND=">=dev-lang/ocaml-4.03:=[ocamlopt?] |
47 |
+ >=dev-ml/js_of_ocaml-2.5-r1:= |
48 |
+ >=www-servers/ocsigenserver-2.5:= |
49 |
+ >=dev-ml/tyxml-4:= |
50 |
+ >=dev-ml/deriving-0.6:= |
51 |
+ >=dev-ml/reactiveData-0.2:= |
52 |
+ dev-ml/ocaml-ipaddr:= |
53 |
+ dev-ml/react:= |
54 |
+ dev-ml/ocaml-ssl:= |
55 |
+ >=dev-ml/lwt-2.5.0:= |
56 |
+ dev-ml/calendar:= |
57 |
+ dev-ml/camlp4:= |
58 |
+ ppx? ( >=dev-ml/ppx_tools-0.99.3:= )" |
59 |
+DEPEND="${RDEPEND} |
60 |
+ dev-ml/ocamlbuild |
61 |
+ dev-ml/opam" |
62 |
+ |
63 |
+src_compile() { |
64 |
+ if use ocamlopt ; then |
65 |
+ emake PPX=$(usex ppx true false) all |
66 |
+ else |
67 |
+ emake PPX=$(usex ppx true false) byte |
68 |
+ fi |
69 |
+ use doc && emake doc |
70 |
+ emake man |
71 |
+} |
72 |
+ |
73 |
+src_install() { |
74 |
+ opam-installer \ |
75 |
+ --prefix="${ED}/usr" \ |
76 |
+ --libdir="${D}/$(ocamlc -where)" \ |
77 |
+ --docdir="${ED}/usr/share/doc/${PF}" \ |
78 |
+ --mandir="${ED}/usr/share/man" \ |
79 |
+ || die |
80 |
+ dodoc CHANGES README.md |
81 |
+ if use doc ; then |
82 |
+ docinto client/html |
83 |
+ dodoc -r _build/src/lib/client/api.docdir/* |
84 |
+ docinto server/html |
85 |
+ dodoc -r _build/src/lib/server/api.docdir/* |
86 |
+ fi |
87 |
+} |