mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
dev-ml/cmdliner: add 2.0.0
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
@@ -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
|
||||
|
||||
41
dev-ml/cmdliner/cmdliner-2.0.0.ebuild
Normal file
41
dev-ml/cmdliner/cmdliner-2.0.0.ebuild
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user