Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ml/opam-installer/
Date: Wed, 28 Jul 2021 02:38:39
Message-Id: 1627438865.2ca90f4a11fe6fb3a7d7ad8d012ee3c4fbd8cbba.sam@gentoo
1 commit: 2ca90f4a11fe6fb3a7d7ad8d012ee3c4fbd8cbba
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 28 02:21:05 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 28 02:21:05 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ca90f4a
7
8 dev-ml/opam-installer: add 2.0.9
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 dev-ml/opam-installer/Manifest | 1 +
13 dev-ml/opam-installer/opam-installer-2.0.9.ebuild | 46 +++++++++++++++++++++++
14 2 files changed, 47 insertions(+)
15
16 diff --git a/dev-ml/opam-installer/Manifest b/dev-ml/opam-installer/Manifest
17 index bf62be30f70..d6e4ebdb9a8 100644
18 --- a/dev-ml/opam-installer/Manifest
19 +++ b/dev-ml/opam-installer/Manifest
20 @@ -1 +1,2 @@
21 DIST opam-full-2.0.8.tar.gz 8006252 BLAKE2B 26348bdbb8bdc2fbf9d736286c1f4134ce065e8c15e34d51c8d2c6e5338fd6db089df38a19b07cde70770724fc4cc3dbd9e7d75628e5435ca8a2f8c0d4d3f2f0 SHA512 f08893ad0c1e124368168f28dcb5c3293e443da712d7b12db432c21ff72f7e1440bcc7156f49661d286360a16dcd166d3d02ecdebf8b1cda7c7df2b22e48f80f
22 +DIST opam-full-2.0.9.tar.gz 8029605 BLAKE2B c2ae06bdbbdbe9db270ec0027ec8d13a228f0af2ae5089476fa3a698d27e1f47abf2e3a15ecc9ca610717ba6b979b4ca76cce56c52f6592ae789b88fb5e5b68d SHA512 9f44d878a2599a876f5e5b9b7457b6f446a5e59156ed3d449dcc29e40c44df8b69da619eabdf030e45526fba4bd9a00c65dec2c36552d2e03788596b0aceee85
23
24 diff --git a/dev-ml/opam-installer/opam-installer-2.0.9.ebuild b/dev-ml/opam-installer/opam-installer-2.0.9.ebuild
25 new file mode 100644
26 index 00000000000..a2b88905a29
27 --- /dev/null
28 +++ b/dev-ml/opam-installer/opam-installer-2.0.9.ebuild
29 @@ -0,0 +1,46 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +# We are opam
36 +OPAM_INSTALLER_DEP=" "
37 +OPAM_SKIP_VALIDATION=yes
38 +inherit opam
39 +
40 +DESCRIPTION="Core installer for opam packages"
41 +HOMEPAGE="https://opam.ocaml.org/ https://github.com/ocaml/opam"
42 +SRC_URI="https://github.com/ocaml/opam/releases/download/${PV}/opam-full-${PV}.tar.gz"
43 +S="${WORKDIR}/opam-full-${PV/_/-}"
44 +OPAM_INSTALLER="${S}/opam-installer"
45 +
46 +LICENSE="LGPL-2.1"
47 +SLOT="0/${PV}"
48 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
49 +
50 +# Cherry-picked from https://deb.debian.org/debian/pool/main/o/opam/opam_2.0.8-1.debian.tar.xz
51 +PATCHES=( "${FILESDIR}/debian-Port-to-Dose3-6.0.1.patch" )
52 +
53 +RDEPEND="
54 + >=dev-lang/ocaml-4.02.3
55 + dev-ml/cmdliner:=
56 + ~dev-ml/opam-format-${PV}
57 + >=dev-ml/dose3-6
58 +"
59 +DEPEND="${RDEPEND}
60 + dev-ml/findlib"
61 +
62 +src_configure() {
63 + econf \
64 + --prefix="${EPREFIX}/usr" \
65 + --with-mccs \
66 + --docdir="${EPREFIX}/usr/share/doc/${PF}" \
67 + --mandir="${EPREFIX}/usr/share/man"
68 +}
69 +
70 +src_compile() {
71 + sed -e 's/DUNE = .*$/DUNE = /' -i Makefile.config
72 + #passing -jX to the dune build leads to errors
73 + #see: https://github.com/ocaml/opam/issues/3585
74 + emake DUNE_PROMOTE_ARG="" -j1
75 +}