summaryrefslogtreecommitdiff
path: root/dev-ml/opam
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/opam
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-ml/opam')
-rw-r--r--dev-ml/opam/Manifest6
-rw-r--r--dev-ml/opam/files/stublibs.patch13
-rw-r--r--dev-ml/opam/metadata.xml11
-rw-r--r--dev-ml/opam/opam-1.3.1-r1.ebuild55
4 files changed, 85 insertions, 0 deletions
diff --git a/dev-ml/opam/Manifest b/dev-ml/opam/Manifest
new file mode 100644
index 000000000000..ffc5045e2b72
--- /dev/null
+++ b/dev-ml/opam/Manifest
@@ -0,0 +1,6 @@
+AUX stublibs.patch 591 SHA256 ba9d83f1d78272e522f32f1e20c8443e1320e136da5fab7d87457d6a1ed31f9e SHA512 b10fd1ed192d6bba0c893538a6c936d37330f8fc89bfc30f334c5ef1086e4274b989c7ab8e059754d87cbb64897c0657a5ff49add456f83fb035185631bacce4 WHIRLPOOL fe091eac5eaba9741249bde518e1ff94810a1a79e5dbd931afdad11cc16b54db66f401b33844a93e8563ea991cccad645965fba17d3664d1161139354a259bd0
+DIST opam-1.3.1.tar.gz 669485 SHA256 625767c3465219cc8799aad1449c74279b31686db0821300cfdb92fbff17e9fd SHA512 d075c9b2c9670d712f29bd2df34b8020da52041fa2bbef599cb54a81f63554507d78bebece45ecf668d3d1d4ed514e4ab88a1d86b64088d283bca7a8e75ae582 WHIRLPOOL 8fcddf18056503b2010e8377175c5af87b098cec977fbedabcafc4178817b780bd538ae672600f5a7bdca423c99aefab24a7341f17e40465a9f3e1f1c3324623
+EBUILD opam-1.3.1-r1.ebuild 1075 SHA256 504975319bc1dee03846571e53bf2eb60a3e770716752f9351aeaeaff4fe87e7 SHA512 c1576cd46bd94d361eccca0872789b6b29ba066cc4d25f54ef70b3894f7115994c71b8039a9e619dc7ec10f1946446a355cf850f9b63eb06343d6f539f969ac1 WHIRLPOOL f1ecd45ee8e28c45ff0a5e97dfef68183fb02cdcd72b83daf5d7443a7a55e7d4ae3acff192d736050fa26e19aefe5a34fa86af30ebb4bddf965ac5a5ac80c03e
+MISC ChangeLog 3315 SHA256 9afe9b7d36e6e87fdf50d6abc26aed62a5ae0d6278c76ce7369c5ebfcae661d8 SHA512 aae3353fd29856e25f0ebae90473ab7086bbf7157da116690cd8c37e2c710b39d0a14d1a570f08745edd78f29235e7210fe7ece9796bb88b106fa91d83701791 WHIRLPOOL 2ea8f1a66a03db312f5fb4de3f049b9677fd4d3b39c05ec9eee8356052c979373cae16dafba028745b6a87909bb21d6d07c866bb65e242c7dbaff0271836c4fb
+MISC ChangeLog-2015 751 SHA256 5b68452dcb64203f7ef6d92fdcb6e69effb582189fc99805e53e90e1a9de840e SHA512 ab8d9d6b152a693053dcfee55c1c1f3bac6f86a6d3912c1fe8ba3e78a48abad815854b27ff0e87efe5ec920c2a1d0c93a3f7be97dbf1acaf8f8ed234b2db8ec7 WHIRLPOOL 49ca97523ab40fa82b394f8515063bf1bf101e631f8fab56484761c472da4f8dc5274aa23685dd805081a0226107126fcc7d430f80655aea4b677bbf420f74f0
+MISC metadata.xml 332 SHA256 105596bb94c22ed6b02d42fe5b0839514c30c699ac447908c73bf81afd992fbd SHA512 56e886c385af81781aa4ab1c9ead244b35352f521635236d211ef753c8d6eb85e68097fa599b6ff2191d3be91194704dacaff2d3882aceccec82cbfc3d9a8265 WHIRLPOOL 992532315729d0c3cc85b6264416391718c64cf34fc0c5f637978d0e0cb07c93979cef33a3817739f7669ad5c2fa353cd0579409a39b5167710fd4b4f20bfe30
diff --git a/dev-ml/opam/files/stublibs.patch b/dev-ml/opam/files/stublibs.patch
new file mode 100644
index 000000000000..3cb61883233a
--- /dev/null
+++ b/dev-ml/opam/files/stublibs.patch
@@ -0,0 +1,13 @@
+Index: opam-1.3.1/src/tools/opam_installer.ml
+===================================================================
+--- opam-1.3.1.orig/src/tools/opam_installer.ml
++++ opam-1.3.1/src/tools/opam_installer.ml
+@@ -312,7 +312,7 @@ let options =
+ let mandir = mk_dir mandir in
+ let libdir = mk_dir libdir in
+ let stubsdir = match mk_dir stubsdir, libdir with
+- | None, Some d -> Some OpamFilename.Op.(d / "stubslibs")
++ | None, Some d -> Some OpamFilename.Op.(d / "stublibs")
+ | d, None | (Some _ as d), _ -> d
+ in
+ let topdir = match mk_dir topdir, libdir with
diff --git a/dev-ml/opam/metadata.xml b/dev-ml/opam/metadata.xml
new file mode 100644
index 000000000000..417bf2d4b393
--- /dev/null
+++ b/dev-ml/opam/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">ocaml/opam</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-ml/opam/opam-1.3.1-r1.ebuild b/dev-ml/opam/opam-1.3.1-r1.ebuild
new file mode 100644
index 000000000000..57dd504dc707
--- /dev/null
+++ b/dev-ml/opam/opam-1.3.1-r1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="A source-based package manager for OCaml"
+HOMEPAGE="http://opam.ocaml.org/"
+LICENSE="LGPL-3-with-linking-exception"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
+IUSE="test"
+
+if [[ ${PV} != 9999 ]]; then
+ SRC_URI="https://github.com/ocaml/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+else
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/ocaml/opam.git"
+fi
+
+RDEPEND="dev-lang/ocaml:=
+ || ( net-misc/wget net-misc/curl )
+ dev-ml/extlib:=
+ dev-ml/ocaml-re:=
+ dev-ml/ocamlgraph:=
+ dev-ml/cmdliner:=
+ dev-ml/cudf:=
+ >=dev-ml/dose3-5:=
+ dev-ml/uutf:=
+ dev-ml/jsonm:=
+"
+DEPEND="${RDEPEND}
+ dev-ml/findlib
+ test? ( dev-vcs/git )
+"
+
+src_prepare() {
+ epatch "${FILESDIR}/stublibs.patch"
+}
+
+src_compile() {
+ emake -j1
+ cd doc
+ emake man
+}
+
+src_test() {
+ EMAIL=foo@bar.com emake -j1 tests
+}
+
+src_install() {
+ default
+ emake DESTDIR="${D}" OPAMINSTALLER_FLAGS="--prefix=\"${ED}/usr\" --libdir=\"${D}/$(ocamlc -where)\"" libinstall
+}