dev-ml/cmarkit - 0.3.0 (guru)

Search

Install

Install this version:

emerge -a =dev-ml/cmarkit-0.3.0

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

autounmask =dev-ml/cmarkit-0.3.0

Or alternatively:

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

Package Information

Description:
Cmarkit parses the CommonMark specification
Homepage:
https://erratique.ch/software/cmarkit
License:
ISC

Ebuild Details

Version EAPI Keywords Slot
0.3.0 8 ~amd64 0/0.3.0
View Raw Ebuild
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit findlib

DESCRIPTION="Cmarkit parses the CommonMark specification"
HOMEPAGE="https://erratique.ch/software/cmarkit"
SRC_URI="https://github.com/dbuenzli/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"

LICENSE="ISC"
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE="+ocamlopt"

RDEPEND="
	>=dev-lang/ocaml-4.14.0:=
"
DEPEND="${RDEPEND}
	dev-ml/findlib
	dev-ml/ocamlbuild
	dev-ml/topkg
	>=dev-ml/result-1.5:=[ocamlopt?]
"

DOCS=( README.md CHANGES.md )

src_compile() {
	ocaml pkg/pkg.ml build --with-cmdliner false || die
}

src_install() {
	findlib_src_preinst

	local nativelibs=""
	use ocamlopt && nativelibs="$(echo _build/src/${PN}*.cm{x,xa,xs,ti} _build/src/${PN}*.a)"

	ocamlfind install ${PN} _build/pkg/META _build/src/${PN}*.mli _build/src/${PN}*.cm{a,i} ${nativelibs} || die

}

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

Dependencies

DEPEND

	>=dev-lang/ocaml-4.14.0:=

	dev-ml/findlib
	dev-ml/ocamlbuild
	dev-ml/topkg
	>=dev-ml/result-1.5:=[ocamlopt?]

RDEPEND

	>=dev-lang/ocaml-4.14.0:=

Manifest for 0.3.0

Type File Size Source URLs
DIST cmarkit-0.3.0.gh.tar.gz 194019 bytes https://github.com/dbuenzli/cmarkit/archive/v0.3.0.tar.gz