Package-Manager: Portage-2.3.5, Repoman-2.3.2
--- /dev/null
+DIST ocaml-migrate-parsetree-0.7.tar.gz 168579 SHA256 a9048e1a9c004ec9b307452fff25e8f31853942e42d054bd052739eb838026a2 SHA512 d43a80823496670877a01a0d3b9edc0960e80e84562470723b7188922c880262268f518e8fa3dbbcccc0176fba84cc8c1a18baac8ececb13303ed402cf0bff9f WHIRLPOOL 788fc318bcc972a1b62b951ab1e4a2315e3c4922b07c74cb910716f1e41bb61babe0acf86a0fbd15d8e05a2ff7da05a683b8005119f4a65d284ea0a453098e0e
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>ml@gentoo.org</email>
+ <name>Gentoo ML Project</name>
+</maintainer>
+</pkgmetadata>
--- /dev/null
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit findlib
+
+DESCRIPTION="Convert OCaml parsetrees between different major versions"
+HOMEPAGE="https://github.com/let-def/ocaml-migrate-parsetree"
+SRC_URI="https://github.com/let-def/ocaml-migrate-parsetree/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND="
+ dev-lang/ocaml:=
+ dev-ml/result:=
+"
+RDEPEND="${DEPEND}"
+DEPEND="${DEPEND}
+ dev-ml/jbuilder
+ dev-ml/opam"
+
+src_install() {
+ opam-installer -i \
+ --prefix="${ED}/usr" \
+ --libdir="${D}/$(ocamlc -where)" \
+ --docdir="${ED}/usr/share/doc/${PF}" \
+ --mandir="${ED}/usr/share/man" \
+ ${PN}.install || die
+}