1 |
commit: f03d3633119870c103f63b484335861f64621ad0 |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 26 11:19:45 2017 +0000 |
4 |
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 26 12:03:10 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f03d3633 |
7 |
|
8 |
dev-ml/opam-file-format: initial import |
9 |
|
10 |
Package-Manager: Portage-2.3.8, Repoman-2.3.3 |
11 |
|
12 |
dev-ml/opam-file-format/Manifest | 1 + |
13 |
dev-ml/opam-file-format/metadata.xml | 11 ++++++++ |
14 |
.../opam-file-format-2.0.0_beta3.ebuild | 29 ++++++++++++++++++++++ |
15 |
3 files changed, 41 insertions(+) |
16 |
|
17 |
diff --git a/dev-ml/opam-file-format/Manifest b/dev-ml/opam-file-format/Manifest |
18 |
new file mode 100644 |
19 |
index 00000000000..137c7f03a64 |
20 |
--- /dev/null |
21 |
+++ b/dev-ml/opam-file-format/Manifest |
22 |
@@ -0,0 +1 @@ |
23 |
+DIST opam-file-format-2.0.0_beta3.tar.gz 7654 SHA256 522773503b30ff755d04c4e11efb4657e21ac59499da270ef8040d88b4371b59 SHA512 7f4989711e4dc183086b6dccc512ecfe78bfbbd98af954560d5a2c945b8b32416f3a01902203ef78932451cd99a5c1b1571edf70581bd14a2a94e32f5d4dd818 WHIRLPOOL fef711e436ca84312a3054694e8bcb0eb75011b750f8ca1cf31fa77e11d232427f4ee03dde0459cdbd9b9ae607542f0c9e35de9eddf9b63a62e858f243ed395a |
24 |
|
25 |
diff --git a/dev-ml/opam-file-format/metadata.xml b/dev-ml/opam-file-format/metadata.xml |
26 |
new file mode 100644 |
27 |
index 00000000000..6c62d17c464 |
28 |
--- /dev/null |
29 |
+++ b/dev-ml/opam-file-format/metadata.xml |
30 |
@@ -0,0 +1,11 @@ |
31 |
+<?xml version="1.0" encoding="UTF-8"?> |
32 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
33 |
+<pkgmetadata> |
34 |
+ <maintainer type="project"> |
35 |
+ <email>ml@g.o</email> |
36 |
+ <name>Gentoo ML Project</name> |
37 |
+ </maintainer> |
38 |
+ <upstream> |
39 |
+ <remote-id type="github">ocaml/opam-file-format</remote-id> |
40 |
+ </upstream> |
41 |
+</pkgmetadata> |
42 |
|
43 |
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 |
44 |
new file mode 100644 |
45 |
index 00000000000..e932f300db7 |
46 |
--- /dev/null |
47 |
+++ b/dev-ml/opam-file-format/opam-file-format-2.0.0_beta3.ebuild |
48 |
@@ -0,0 +1,29 @@ |
49 |
+# Copyright 1999-2017 Gentoo Foundation |
50 |
+# Distributed under the terms of the GNU General Public License v2 |
51 |
+ |
52 |
+EAPI=6 |
53 |
+ |
54 |
+inherit findlib |
55 |
+ |
56 |
+MY_PV="${PV/_beta/-beta}" |
57 |
+S="${WORKDIR}/${PN}-${MY_PV}" |
58 |
+ |
59 |
+DESCRIPTION="Parser and printer for the opam file syntax" |
60 |
+HOMEPAGE="https://github.com/ocaml/opam-file-format" |
61 |
+SRC_URI="https://github.com/ocaml/opam-file-format/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" |
62 |
+ |
63 |
+LICENSE="LGPL-2.1" |
64 |
+SLOT="0" |
65 |
+KEYWORDS="~amd64" |
66 |
+IUSE="+ocamlopt" |
67 |
+ |
68 |
+DEPEND="dev-lang/ocaml:=[ocamlopt?]" |
69 |
+RDEPEND="${DEPEND}" |
70 |
+ |
71 |
+src_compile() { |
72 |
+ emake byte $(usex ocamlopt native "") |
73 |
+} |
74 |
+ |
75 |
+src_install() { |
76 |
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" LIBDIR="$(ocamlc -where)" install |
77 |
+} |