dev-ml/opam: bump to 1.3.0
authorAlexis Ballier <aballier@gentoo.org>
Mon, 26 Dec 2016 17:49:38 +0000 (18:49 +0100)
committerAlexis Ballier <aballier@gentoo.org>
Tue, 27 Dec 2016 12:40:38 +0000 (13:40 +0100)
Package-Manager: Portage-2.3.3, Repoman-2.3.1

dev-ml/opam/Manifest
dev-ml/opam/opam-1.3.0.ebuild [new file with mode: 0644]

index 144449c711f5b9a65ed43959b5c249c7b050ce29..e8ec3ff4c5b4f57220f0d65f04cc3169744ecfff 100644 (file)
@@ -1 +1,2 @@
 DIST opam-1.2.2.tar.gz 648951 SHA256 3e4a05df6ff8deecba019d885ebe902eb933acb6e2fc7784ffee1ee14871e36a SHA512 12105b5219a14d4c4cb29c387dd5af858d2b4a2a1bad7dcd70e4c284fc52848df82933396571b85251d904b3c14cdf02db55060c1ba29dc34b8bab3721d05f54 WHIRLPOOL 97d6ab75620a4ed18b45d80e88e77564af457606cbb8dd4591030574bfdbff5c16d508e81438b78198b87511151b1b030e6a51c2370e3110ae21216846f37836
+DIST opam-1.3.0.tar.gz 669389 SHA256 9d50122940f44401c2dcee39b12a4e4afea851b2f2ab47d90b522f7395f10f7a SHA512 290535a1bb2e7eff6ab44126c5070d2bed94e68cee3bd5e47054f91ad81ed92e9a21f7888bd1dafcb397e3ac61589d4eaf7267305ac63d1aee08761701bdf647 WHIRLPOOL 64b8fc334b8dd193af1d4ae0d0bb445554f6afeb3007fefd4048816d1bd90363c7b18c4d44521da8162bc3ae49668d26b75ef811a4de4d5287597024d0b74ddd
diff --git a/dev-ml/opam/opam-1.3.0.ebuild b/dev-ml/opam/opam-1.3.0.ebuild
new file mode 100644 (file)
index 0000000..6d7f7d3
--- /dev/null
@@ -0,0 +1,51 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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"
+KEYWORDS="~amd64"
+IUSE=""
+
+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
+
+DEPEND="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:=
+"
+RDEPEND="${DEPEND}
+       dev-ml/findlib
+"
+
+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
+}