summaryrefslogtreecommitdiff
path: root/dev-ml/topkg
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-ml/topkg
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-ml/topkg')
-rw-r--r--dev-ml/topkg/Manifest4
-rw-r--r--dev-ml/topkg/metadata.xml11
-rw-r--r--dev-ml/topkg/topkg-0.9.0.ebuild33
3 files changed, 48 insertions, 0 deletions
diff --git a/dev-ml/topkg/Manifest b/dev-ml/topkg/Manifest
new file mode 100644
index 000000000000..5f6b554b3dc4
--- /dev/null
+++ b/dev-ml/topkg/Manifest
@@ -0,0 +1,4 @@
+DIST topkg-0.9.0.tar.gz 120352 SHA256 1f9a718d49151ac4e914404e78865cc74e361d7befea2167fb8daa78a68fba11 SHA512 823fe1abb344d7800e09411c952bd276ecea97b5d9c124d986e26b9128d03b3ad023a38560198e476ef8f949ecb456078e332bda94075e9b746e43d3059a8fdb WHIRLPOOL 03be4f92aa654e46ffe46e49f59bac3fabb96982d512811fe1232fa067829ef09ba585bcf26bebba07aef1394497fd2551102dc97ba1f078b9b5e7d685c410be
+EBUILD topkg-0.9.0.ebuild 918 SHA256 f4c3d1e9f8a7834301bddadd633c7535b27bb02ba2915d93bcc98a07e0764031 SHA512 9f2f36e01b23b079866b641e5c5109fee45fb89f40bdbd05c6a4aeb18cc028972416a1ee3d054494b084700a0233968717a6e1abb81f2fd84223833521feb489 WHIRLPOOL 4be8c9fe87f10427a2b2d939650a90964169d9d45623c7ca4487ff0973138a6c826814d3eb49e394f7ee60784f164ac454f619d97a648d1dde3de40b2fe765d1
+MISC ChangeLog 444 SHA256 be31ff5d0e71106adab9f856d3acc8a023f9c4b73c024e37d1ef6111b90ec68a SHA512 f0b5c0125e9627d50cdaad57b826f7a7c8bf0866f3d9289fb721262c16e7a9fdaad9e9070830cfd35bf45852f1e812f2d4371a28d1e31b97a7041fb8b314ad35 WHIRLPOOL 5e760c62e8f539a6924bbd386bd375eb2d8cdc5a1de4083eb6061aca6319d11379a3c41495a379d93fb44697a17a9c9ac8b4ad930c6b7043e0c1f782f3da837c
+MISC metadata.xml 326 SHA256 b7bc06bc93622d95e7016fcd42cdfb4f67b2468733ae06a9b6cc959664e8aded SHA512 73f1d4965ba7b15a7ea5ad4382aeb1a6173c021d7f955080a69e5a77834b4dea4472b763ab598f234cc69a7d4c0b9beee0d5cbf9976cd258517eb316a9a6e92c WHIRLPOOL 440d65fe811a2d86e81da2418087634ed814466950392a21f75107a082d6533c937d7e2ae37b489a5fea3b9eda7e89999a245341f4316a6eaa65bcc853baa73b
diff --git a/dev-ml/topkg/metadata.xml b/dev-ml/topkg/metadata.xml
new file mode 100644
index 000000000000..583ef1b56425
--- /dev/null
+++ b/dev-ml/topkg/metadata.xml
@@ -0,0 +1,11 @@
+<?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>
+ <upstream>
+ <remote-id type="github">dbuenzli/topkg</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-ml/topkg/topkg-0.9.0.ebuild b/dev-ml/topkg/topkg-0.9.0.ebuild
new file mode 100644
index 000000000000..2cfed454c256
--- /dev/null
+++ b/dev-ml/topkg/topkg-0.9.0.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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/${PV}"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND="dev-ml/result:=
+ dev-ml/ocamlbuild:=
+ dev-ml/findlib:=
+ dev-lang/ocaml:="
+DEPEND="${RDEPEND}"
+
+src_compile() {
+ ocaml pkg/pkg.ml build --pkg-name ${PN} || die
+}
+
+src_install() {
+ # Can't use opam-installer here as it is an opam dep...
+ findlib_src_preinst
+ local nativelibs="$(echo _build/src/${PN}*.cm{x,xa,xs,ti} _build/src/${PN}.a)"
+ ocamlfind install ${PN} _build/pkg/META _build/src/${PN}.mli _build/src/${PN}.cm{a,i} ${nativelibs} || die
+ dodoc CHANGES.md DEVEL.md README.md
+}