commit: 7fb8c4817c275d50197d3cd1b5fb5f0e2e6c1edf Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> AuthorDate: Wed Oct 1 12:30:38 2025 +0000 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> CommitDate: Wed Oct 1 12:31:33 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7fb8c481
dev-ml/cmdliner: add 2.0.0 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> dev-ml/cmdliner/Manifest | 1 + dev-ml/cmdliner/cmdliner-2.0.0.ebuild | 41 +++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/dev-ml/cmdliner/Manifest b/dev-ml/cmdliner/Manifest index f7d990f93440..802929339982 100644 --- a/dev-ml/cmdliner/Manifest +++ b/dev-ml/cmdliner/Manifest @@ -1 +1,2 @@ DIST cmdliner-1.3.0.tbz 58515 BLAKE2B 297b8903e1446a94be5580557b2d94a686833997d9b5f688564f31f6c13bf1e6d1f589143b223a78b7dc6f259c5ca664529b3273e5bf29d5a503d9612ba65ef6 SHA512 4c46bc334444ff772637deae2f5ba03645d7a1b7db523470a1246acfce79b971c764d964cbb02388639b3161b279700d9ade95da550446fb32aa4849c8a8f283 +DIST cmdliner-2.0.0.tbz 93833 BLAKE2B 9e6621c7227d829fee2943667b8b3600cc23ef8509967f28a7f61f6faa18675b847a90f4f324d9c103f903b838186e18a3bf16e6d4efde21d574226f628f5aac SHA512 a7bd4eeb0cef7c08bca73b0077a65f748c19a230544133b39fc3360feb2cf0af08416a8b84031c94a2f4a007d5920a4db1368d87b9eeca561671828e2dad2885 diff --git a/dev-ml/cmdliner/cmdliner-2.0.0.ebuild b/dev-ml/cmdliner/cmdliner-2.0.0.ebuild new file mode 100644 index 000000000000..2b5544debee9 --- /dev/null +++ b/dev-ml/cmdliner/cmdliner-2.0.0.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit findlib + +DESCRIPTION="Declarative definition of command line interfaces for OCaml" +HOMEPAGE="http://erratique.ch/software/cmdliner" +SRC_URI="http://erratique.ch/software/${PN}/releases/${P}.tbz" + +LICENSE="ISC" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86" +IUSE="+ocamlopt" + +RDEPEND=" + dev-ml/result:= + dev-ml/findlib:= +" +DEPEND="${RDEPEND} + dev-ml/topkg + dev-ml/ocamlbuild" + +src_compile() { + emake build-byte + if use ocamlopt ; then + emake build-native-dynlink + emake build-native + fi +} + +src_install() { + # Can't use opam-installer here as it is an opam dep... + findlib_src_preinst + local nativelibs="" + use ocamlopt && nativelibs="$(echo _build/cmdliner.cm{x,xa,xs} _build/cmdliner.a)" + ocamlfind install cmdliner pkg/META \ + _build/cmdliner.mli _build/cmdliner.cm{a,i} ${nativelibs} || die + dodoc README.md CHANGES.md +}
