dev-ml/opam-file-format: initial import
authorAlexis Ballier <aballier@gentoo.org>
Sat, 26 Aug 2017 11:19:45 +0000 (13:19 +0200)
committerAlexis Ballier <aballier@gentoo.org>
Sat, 26 Aug 2017 12:03:10 +0000 (14:03 +0200)
Package-Manager: Portage-2.3.8, Repoman-2.3.3

dev-ml/opam-file-format/Manifest [new file with mode: 0644]
dev-ml/opam-file-format/metadata.xml [new file with mode: 0644]
dev-ml/opam-file-format/opam-file-format-2.0.0_beta3.ebuild [new file with mode: 0644]

diff --git a/dev-ml/opam-file-format/Manifest b/dev-ml/opam-file-format/Manifest
new file mode 100644 (file)
index 0000000..137c7f0
--- /dev/null
@@ -0,0 +1 @@
+DIST opam-file-format-2.0.0_beta3.tar.gz 7654 SHA256 522773503b30ff755d04c4e11efb4657e21ac59499da270ef8040d88b4371b59 SHA512 7f4989711e4dc183086b6dccc512ecfe78bfbbd98af954560d5a2c945b8b32416f3a01902203ef78932451cd99a5c1b1571edf70581bd14a2a94e32f5d4dd818 WHIRLPOOL fef711e436ca84312a3054694e8bcb0eb75011b750f8ca1cf31fa77e11d232427f4ee03dde0459cdbd9b9ae607542f0c9e35de9eddf9b63a62e858f243ed395a
diff --git a/dev-ml/opam-file-format/metadata.xml b/dev-ml/opam-file-format/metadata.xml
new file mode 100644 (file)
index 0000000..6c62d17
--- /dev/null
@@ -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">ocaml/opam-file-format</remote-id>
+  </upstream>
+</pkgmetadata>
diff --git a/dev-ml/opam-file-format/opam-file-format-2.0.0_beta3.ebuild b/dev-ml/opam-file-format/opam-file-format-2.0.0_beta3.ebuild
new file mode 100644 (file)
index 0000000..e932f30
--- /dev/null
@@ -0,0 +1,29 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit findlib
+
+MY_PV="${PV/_beta/-beta}"
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+DESCRIPTION="Parser and printer for the opam file syntax"
+HOMEPAGE="https://github.com/ocaml/opam-file-format"
+SRC_URI="https://github.com/ocaml/opam-file-format/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+ocamlopt"
+
+DEPEND="dev-lang/ocaml:=[ocamlopt?]"
+RDEPEND="${DEPEND}"
+
+src_compile() {
+       emake byte $(usex ocamlopt native "")
+}
+
+src_install() {
+       emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" LIBDIR="$(ocamlc -where)" install
+}