dev-ml/cmarkit - 9999 (nest)

Search

Install

Install this version:

emerge -a =dev-ml/cmarkit-9999

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-ml/cmarkit-9999

Or alternatively:

emerge --autounmask-write -a =dev-ml/cmarkit-9999

Package Information

Description:
CommonMark parser and renderer for OCaml
Homepage:
https://github.com/dbuenzli/cmarkit
License:
ISC

Ebuild Details

Version EAPI Keywords Slot
9999 8 0/9999
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit edo git-r3 opam

DESCRIPTION="CommonMark parser and renderer for OCaml"
HOMEPAGE="https://github.com/dbuenzli/cmarkit"
EGIT_REPO_URI="https://github.com/dbuenzli/${PN}.git"

LICENSE="ISC"
SLOT="0/${PV}"
IUSE="+ocamlopt test"
RESTRICT="test" # needs b0

RDEPEND="dev-ml/cmdliner:0=[ocamlopt?]"
DEPEND="${RDEPEND}
	dev-ml/findlib
	dev-ml/ocamlbuild
	dev-ml/topkg"

src_prepare() {
	default

	# compatibility with cmdliner-1.3
	sed -i 's/Cmd\.make/Cmd.v/g' src/tool/cmd_{commonmark,html,latex,locs}.ml \
		|| die "sed failed"
}

src_compile() {
	edo ocaml pkg/pkg.ml build
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-ml/cmarkit | euse -E <flag> -p dev-ml/cmarkit | euse -D <flag> -p dev-ml/cmarkit

Global/Standard Flags

ocamlopt
Default: Enabled (+)

Inherited Eclasses

edo

Dependencies

DEPEND

dev-ml/cmdliner:0=[ocamlopt?]
	dev-ml/findlib
	dev-ml/ocamlbuild
	dev-ml/topkg

RDEPEND

dev-ml/cmdliner:0=[ocamlopt?]