commit:     c02297c9c11addcd6f954b564e58b148f0bc2872
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 28 08:50:34 2017 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Sat Jul 29 10:05:38 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c02297c9

dev-ml/ocaml-dispatch: bump to 0.4.0

Package-Manager: Portage-2.3.6, Repoman-2.3.3

 dev-ml/ocaml-dispatch/Manifest                    |  1 +
 dev-ml/ocaml-dispatch/ocaml-dispatch-0.4.0.ebuild | 43 +++++++++++++++++++++++
 2 files changed, 44 insertions(+)

diff --git a/dev-ml/ocaml-dispatch/Manifest b/dev-ml/ocaml-dispatch/Manifest
index 2ab3e314bed..f9f4dc4fc5f 100644
--- a/dev-ml/ocaml-dispatch/Manifest
+++ b/dev-ml/ocaml-dispatch/Manifest
@@ -1 +1,2 @@
 DIST ocaml-dispatch-0.3.0.tar.gz 51453 SHA256 
ebb6bb60ec5a7c17a68711a801006f204b283989b5b9fa1dbe9bd781645f3913 SHA512 
0f09eae45a2ecae27d07e247b6a47f307e074342e337e7be262f5183f77090f0aef81fb5c0bf499732bd0a711d4d51775cbcea5e463011f43a1777582d78806b
 WHIRLPOOL 
f77f459b34df41506ef1eb13e4d880a0bfed8166e60e2770b0cb6dc3ac2285281f4fc35c2b12465743492d8f730b6ad5585e995a3152a2c5e72638c335158256
+DIST ocaml-dispatch-0.4.0.tar.gz 7554 SHA256 
6c8e77f2960742c16e187355bd1bdaf51ff83c377bf91c6cf4db72de026de5b2 SHA512 
d5318bda4079c21820fce5b21d178ed88fd0535a5cdc559dd6ceeb4d06ffb08456ee5aec1e56efd40b6d4f456f7d5c7eda17dc728666e6514dc936898b605b36
 WHIRLPOOL 
646bcbe74eb10f8935010c797d65c65bf5e74bb532ae375cad00953fcdc0cd9ca93a28e5a453db311114aaf296805893877e8a3bc65cd86ece995e9cea6cf934

diff --git a/dev-ml/ocaml-dispatch/ocaml-dispatch-0.4.0.ebuild 
b/dev-ml/ocaml-dispatch/ocaml-dispatch-0.4.0.ebuild
new file mode 100644
index 00000000000..562ef548b9a
--- /dev/null
+++ b/dev-ml/ocaml-dispatch/ocaml-dispatch-0.4.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit findlib
+
+DESCRIPTION="Path-based dispatching for client- and server-side applications"
+HOMEPAGE="https://github.com/inhabitedtype/ocaml-dispatch";
+SRC_URI="https://github.com/inhabitedtype/ocaml-dispatch/archive/${PV}.tar.gz 
-> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="test"
+
+DEPEND="
+       dev-ml/result:=
+       dev-lang/ocaml:=
+"
+RDEPEND="${DEPEND}"
+DEPEND="${DEPEND}
+       dev-ml/jbuilder
+       dev-ml/opam
+       test? ( dev-ml/ounit )
+"
+
+src_compile() {
+       jbuilder build -p dispatch || die
+}
+
+oinstall() {
+       opam-installer -i \
+               --prefix="${ED}/usr" \
+               --libdir="${D}/$(ocamlc -where)" \
+               --docdir="${ED}/usr/share/doc/${PF}" \
+               --mandir="${ED}/usr/share/man" \
+               ${1}.install || die
+}
+
+src_install() {
+       oinstall dispatch
+}

Reply via email to