summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2016-11-28 16:33:03 +0100
committerAlexis Ballier <aballier@gentoo.org>2016-11-28 21:27:32 +0100
commitf453a8302540a729850e664e53dece8f242c85e9 (patch)
tree94bc323b61d169811a54fc280ffb5e70043d3cef
parentapp-text/goldendict: fix locale install location (diff)
downloadgentoo-f453a8302540a729850e664e53dece8f242c85e9.tar.gz
gentoo-f453a8302540a729850e664e53dece8f242c85e9.tar.bz2
gentoo-f453a8302540a729850e664e53dece8f242c85e9.zip
dev-ml/topkg: initial import; ebuild by me
Package-Manager: portage-2.3.2
-rw-r--r--dev-ml/topkg/Manifest1
-rw-r--r--dev-ml/topkg/metadata.xml8
-rw-r--r--dev-ml/topkg/topkg-0.8.1.ebuild34
3 files changed, 43 insertions, 0 deletions
diff --git a/dev-ml/topkg/Manifest b/dev-ml/topkg/Manifest
new file mode 100644
index 000000000000..e6d16748860d
--- /dev/null
+++ b/dev-ml/topkg/Manifest
@@ -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
index 000000000000..ffac4d7ebc01
--- /dev/null
+++ b/dev-ml/topkg/metadata.xml
@@ -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
index 000000000000..aa42f0080f47
--- /dev/null
+++ b/dev-ml/topkg/topkg-0.8.1.ebuild
@@ -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
+}