diff options
Diffstat (limited to 'dev-ml/eliom')
-rw-r--r-- | dev-ml/eliom/Manifest | 1 | ||||
-rw-r--r-- | dev-ml/eliom/eliom-6.2.0.ebuild | 66 |
2 files changed, 67 insertions, 0 deletions
diff --git a/dev-ml/eliom/Manifest b/dev-ml/eliom/Manifest index 2facc9d2cb70..1f002683e8e5 100644 --- a/dev-ml/eliom/Manifest +++ b/dev-ml/eliom/Manifest @@ -1 +1,2 @@ DIST eliom-6.1.0.tar.gz 722881 SHA256 cc27c90dfae92db69f23c9d1301d67433d71c7b8d83cba7253dd7d9c41728dbc SHA512 ab389e8023de952f371209c5fe6863240214af559c4ae883dc9d3dc9f353afcc8e38292974c8c0a05c65213fe7dc0b350580c5c8647bba679a5ec0c44859621e WHIRLPOOL e4eeacc566db899ffbaab8dd58bf81dbb49ed18b27e4285669e809bc05232a4b212e0422e33580d40dbf1ec18f236e65ab09f790211693bfbf5882d269ea5137 +DIST eliom-6.2.0.tar.gz 724359 SHA256 bda9ab348fb7a6a45f69e908bdc0ae2752b11a2dc199059b0dcd342a50a28405 SHA512 02ea52c78470f222297dd9f82218e82427ea2d2d0c9f261d1a9c2decbe7644c0bf583b77b8cef2577d5662d363efd276755f400e7a4c29c89a2265e49ca850db WHIRLPOOL f90b6a2b5d2e13d13164ae2b20200566bd44b2d68db9eb7d79e76ca27448cfe2b23bc57618a83368d587b268315fff2dd154fbb501a6ce0beda49d28d8b3dbec diff --git a/dev-ml/eliom/eliom-6.2.0.ebuild b/dev-ml/eliom/eliom-6.2.0.ebuild new file mode 100644 index 000000000000..a17da8ae438c --- /dev/null +++ b/dev-ml/eliom/eliom-6.2.0.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils multilib findlib + +DESCRIPTION="A web framework to program client/server applications" +HOMEPAGE="http://ocsigen.org/eliom/" + +if [ "${PV#9999}" != "${PV}" ] ; then + inherit git-r3 + SRC_URI="" + EGIT_REPO_URI="https://github.com/ocsigen/eliom" + KEYWORDS="" +else + SRC_URI="https://github.com/ocsigen/eliom/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +LICENSE="LGPL-2.1-with-linking-exception" +SLOT="0/${PV}" +IUSE="doc +ocamlopt +ppx" + +RDEPEND=">=dev-lang/ocaml-4.03:=[ocamlopt?] + >=dev-ml/js_of_ocaml-2.8.2:= + >=www-servers/ocsigenserver-2.8:= + >=dev-ml/tyxml-4:= + >=dev-ml/deriving-0.6:= + >=dev-ml/reactiveData-0.2.1:= + dev-ml/ocaml-ipaddr:= + dev-ml/react:= + dev-ml/ocaml-ssl:= + >=dev-ml/lwt-2.5.0:= + dev-ml/camlp4:= + ppx? ( >=dev-ml/ppx_tools-0.99.3:= )" +DEPEND="${RDEPEND} + dev-ml/ocamlbuild + dev-ml/opam" + +src_compile() { + if use ocamlopt ; then + emake PPX=$(usex ppx true false) all + else + emake PPX=$(usex ppx true false) byte + fi + use doc && emake doc + emake man +} + +src_install() { + opam-installer \ + --prefix="${ED}/usr" \ + --libdir="${D}/$(ocamlc -where)" \ + --docdir="${ED}/usr/share/doc/${PF}" \ + --mandir="${ED}/usr/share/man" \ + || die + dodoc CHANGES README.md + if use doc ; then + docinto client/html + dodoc -r _build/src/lib/client/api.docdir/* + docinto server/html + dodoc -r _build/src/lib/server/api.docdir/* + fi +} |