dev-ml/stdio: Initial import. Ebuild by me.
authorAlexis Ballier <aballier@gentoo.org>
Sat, 1 Apr 2017 14:25:16 +0000 (16:25 +0200)
committerAlexis Ballier <aballier@gentoo.org>
Sun, 2 Apr 2017 08:37:44 +0000 (10:37 +0200)
Package-Manager: Portage-2.3.5, Repoman-2.3.2

dev-ml/stdio/Manifest [new file with mode: 0644]
dev-ml/stdio/metadata.xml [new file with mode: 0644]
dev-ml/stdio/stdio-0.9.0.ebuild [new file with mode: 0644]

diff --git a/dev-ml/stdio/Manifest b/dev-ml/stdio/Manifest
new file mode 100644 (file)
index 0000000..8ea36c6
--- /dev/null
@@ -0,0 +1 @@
+DIST stdio-0.9.0.tar.gz 9264 SHA256 d0d429f0873bf7a9e37d2791443f4f3d4b74a4b5b7fee78489a567fdc92894d9 SHA512 a3809272c00653872d02b07b6c133215e06a70a7cbebed8c6c22ba5790ee8cbba17821da7875290c8869dfac22bf3cf248028e2aed2570195ca9b5f63b6ab75d WHIRLPOOL 9a9aa0af65091fe976528f0dabcb8a97443f4e403171df41af2c5dd579ce8202e81f98eebb561631821018d9dbdc820aa622349421de1c3f57632cee620598f0
diff --git a/dev-ml/stdio/metadata.xml b/dev-ml/stdio/metadata.xml
new file mode 100644 (file)
index 0000000..ffac4d7
--- /dev/null
@@ -0,0 +1,8 @@
+<?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>
diff --git a/dev-ml/stdio/stdio-0.9.0.ebuild b/dev-ml/stdio/stdio-0.9.0.ebuild
new file mode 100644 (file)
index 0000000..2fae200
--- /dev/null
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Standard IO Library for OCaml"
+HOMEPAGE="https://github.com/janestreet/stdio"
+SRC_URI="https://github.com/janestreet/stdio/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE=""
+
+RDEPEND="dev-lang/ocaml:= dev-ml/base:="
+DEPEND="${RDEPEND} dev-ml/opam dev-ml/jbuilder"
+
+src_test() {
+       jbuilder runtest || die
+}
+
+src_install() {
+       opam-installer -i \
+               --prefix="${ED}/usr" \
+               --libdir="${D}/$(ocamlc -where)" \
+               --docdir="${ED}/usr/share/doc/${PF}" \
+               ${PN}.install || die
+}