dev-ml/cmarkit - 0.4.0 (nest)

Search

Install

Install this version:

emerge -a =dev-ml/cmarkit-0.4.0

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

autounmask =dev-ml/cmarkit-0.4.0

Or alternatively:

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

Package Information

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

Ebuild Details

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

EAPI=8

inherit edo opam

DESCRIPTION="CommonMark parser and renderer for OCaml"
HOMEPAGE="https://github.com/dbuenzli/cmarkit"
SRC_URI="https://github.com/dbuenzli/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="ISC"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~x86"
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?]

Manifest for 0.4.0

Type File Size Source URLs
DIST cmarkit-0.4.0.tar.gz 219376 bytes https://github.com/dbuenzli/cmarkit/archive/v0.4.0.tar.gz