Gentoo Archives: gentoo-commits

From: Alfredo Tupone <tupone@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ml/opam-format/
Date: Sun, 20 Feb 2022 20:53:28
Message-Id: 1645390382.2c0448a2eaaf845e8a35ee2a3e2782525a8bcc0e.tupone@gentoo
1 commit: 2c0448a2eaaf845e8a35ee2a3e2782525a8bcc0e
2 Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 20 20:53:02 2022 +0000
4 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 20 20:53:02 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c0448a2
7
8 dev-ml/opam-format: add dev-ml/mccs to rdep
9
10 Closes: https://bugs.gentoo.org/833615
11 Package-Manager: Portage-3.0.30, Repoman-3.0.3
12 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
13
14 dev-ml/opam-format/opam-format-2.1.2-r1.ebuild | 53 ++++++++++++++++++++++++++
15 1 file changed, 53 insertions(+)
16
17 diff --git a/dev-ml/opam-format/opam-format-2.1.2-r1.ebuild b/dev-ml/opam-format/opam-format-2.1.2-r1.ebuild
18 new file mode 100644
19 index 000000000000..caed3309bce2
20 --- /dev/null
21 +++ b/dev-ml/opam-format/opam-format-2.1.2-r1.ebuild
22 @@ -0,0 +1,53 @@
23 +# Copyright 1999-2022 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=7
27 +
28 +# We are opam
29 +OPAM_INSTALLER_DEP=" "
30 +inherit dune
31 +
32 +DESCRIPTION="Core libraries for opam"
33 +HOMEPAGE="https://opam.ocaml.org/ https://github.com/ocaml/opam"
34 +SRC_URI="https://github.com/ocaml/opam/archive/${PV/_/-}.tar.gz -> opam-${PV}.tar.gz"
35 +SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/dev-ml/opam/opam-2.1.0-dose3-6.patch.xz"
36 +S="${WORKDIR}/opam-${PV}"
37 +OPAM_INSTALLER="${S}/opam-installer"
38 +
39 +LICENSE="LGPL-2.1"
40 +SLOT="0/${PV}"
41 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
42 +IUSE="+ocamlopt test"
43 +RESTRICT="!test? ( test )"
44 +
45 +RDEPEND="
46 + ~dev-ml/opam-core-${PV}:=
47 + dev-ml/re:=
48 + dev-ml/opam-file-format:=
49 + >=dev-ml/dose3-6.0:=
50 + dev-ml/mccs:=
51 +"
52 +DEPEND="${RDEPEND}
53 + dev-ml/cppo"
54 +BDEPEND="test? (
55 + sys-apps/bubblewrap
56 +)"
57 +
58 +PATCHES=( "${WORKDIR}"/opam-2.1.0-dose3-6.patch )
59 +
60 +src_prepare() {
61 + default
62 + cat <<- EOF >> "${S}/dune"
63 + (env
64 + (dev
65 + (flags (:standard -warn-error -3-9-33)))
66 + (release
67 + (flags (:standard -warn-error -3-9-33))))
68 + EOF
69 + sed -i \
70 + -e '/wrap-build-commands/d' \
71 + -e '/wrap-install-commands/d' \
72 + -e '/wrap-remove-commands/d' \
73 + tests/reftests/opamroot-versions.test \
74 + || die
75 +}