summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-ml/ocaml-redis/Manifest1
-rw-r--r--dev-ml/ocaml-redis/ocaml-redis-0.3.4.ebuild42
2 files changed, 43 insertions, 0 deletions
diff --git a/dev-ml/ocaml-redis/Manifest b/dev-ml/ocaml-redis/Manifest
index 48e065f22167..c05e72366b90 100644
--- a/dev-ml/ocaml-redis/Manifest
+++ b/dev-ml/ocaml-redis/Manifest
@@ -1 +1,2 @@
DIST ocaml-redis-0.3.3.tar.gz 71336 SHA256 18b481846d20494f7e7b68b6ac18036dcf50910b1d91d88dd16df3d7b5a9eea2 SHA512 35f9647ecc17d2cd1770b3867ee350f83ac132918b1e368fa560d54f0ad11fa987aed0a14103327e79030a169d5b381e473b82f7039d77324a67ab9d75aa6749 WHIRLPOOL c5b20b4a92ffd437d02e0b1cdebf20b48e83b1664ea66d9b3cf85463626ea9f90d129951c5d2cb64b8bb3f296d67a7989c7ee1069344da5a83d71afe6aa5c6d3
+DIST ocaml-redis-0.3.4.tar.gz 26422 SHA256 da2b9d8f4be0b7699715c38b4eb68a925bc5ee3db74d4aead95dc37f2e9f524f SHA512 b1d77b7eb69b6c795d505eb58c38cf558bcff6a054937f29a959a353c0c0107cdd78eb6329ea003f31ba7ae9d71cc9f7786495babbf1ffc8262356d468094699 WHIRLPOOL 033bc54a23319a0db56557e57f6159f811082a54ef845603304db9de97a16f732bb309972ecc93213f9b8ee9cad10635a046daecac97de23079de6d51f8ccb06
diff --git a/dev-ml/ocaml-redis/ocaml-redis-0.3.4.ebuild b/dev-ml/ocaml-redis/ocaml-redis-0.3.4.ebuild
new file mode 100644
index 000000000000..f69ee04b772b
--- /dev/null
+++ b/dev-ml/ocaml-redis/ocaml-redis-0.3.4.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit findlib
+
+DESCRIPTION="Redis bindings for OCaml"
+HOMEPAGE="http://0xffea.github.io/ocaml-redis/"
+SRC_URI="https://github.com/0xffea/ocaml-redis/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="test"
+
+RDEPEND="
+ dev-lang/ocaml:=
+ dev-ml/ocaml-re:=
+ dev-ml/uuidm:=
+ dev-ml/lwt:=
+"
+DEPEND="${RDEPEND}
+ dev-ml/jbuilder
+ dev-ml/opam
+ test? ( dev-ml/ounit )"
+
+src_compile() {
+ jbuilder build -p redis || die
+}
+
+src_test() {
+ jbuilder runtest || die
+}
+
+src_install() {
+ opam-installer -i \
+ --prefix="${ED}/usr" \
+ --libdir="${D}/$(ocamlc -where)" \
+ --docdir="${ED}/usr/share/doc/${PF}" \
+ redis.install || die
+}