dev-ml/topkg: initial import; ebuild by me
authorAlexis Ballier <aballier@gentoo.org>
Mon, 28 Nov 2016 15:33:03 +0000 (16:33 +0100)
committerAlexis Ballier <aballier@gentoo.org>
Mon, 28 Nov 2016 20:27:32 +0000 (21:27 +0100)
Package-Manager: portage-2.3.2

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

diff --git a/dev-ml/topkg/Manifest b/dev-ml/topkg/Manifest
new file mode 100644 (file)
index 0000000..e6d1674
--- /dev/null
@@ -0,0 +1 @@
+DIST topkg-0.8.1.tar.gz 118529 SHA256 368bf199fe0e92d248057bcb635a1aec081607cc2c64699fa21885e4ea00325c SHA512 d427b9c9e05541b3574a9818efe435c2fade22b0789a4aee3032068b5cdf606634e218e848ef220ab2174272e71a3490e8d7a4acc564f4cc987ed703194b2609 WHIRLPOOL e227990bc32eca743bd3cc74ea6f2af8ded8a10286f5e24579d84c2d3745c7d001b0a72316e317b2f65fa88cafa3c1110fd5ea39c8979f22f7a54560545696a7
diff --git a/dev-ml/topkg/metadata.xml b/dev-ml/topkg/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/topkg/topkg-0.8.1.ebuild b/dev-ml/topkg/topkg-0.8.1.ebuild
new file mode 100644 (file)
index 0000000..aa42f00
--- /dev/null
@@ -0,0 +1,34 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit findlib
+
+DESCRIPTION="The transitory OCaml software packager"
+HOMEPAGE="http://erratique.ch/software/topkg https://github.com/dbuenzli/topkg"
+SRC_URI="https://github.com/dbuenzli/topkg/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+RDEPEND="dev-ml/result:=
+       dev-lang/ocaml:="
+DEPEND="${RDEPEND}
+       dev-ml/opam"
+
+src_compile() {
+       ocaml pkg/pkg.ml build --pkg-name ${PN} || die
+}
+
+src_install() {
+       opam-installer -i \
+               --prefix="${ED}/usr" \
+               --libdir="${D}/$(ocamlc -where)" \
+               --docdir="${ED}/usr/share/doc/${PF}" \
+               ${PN}.install || die
+       dodoc CHANGES.md DEVEL.md README.md
+}