dev-ml/mosaic - 0.1.0 (nest)

Search

Install

Install this version:

emerge -a =dev-ml/mosaic-0.1.0

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

autounmask =dev-ml/mosaic-0.1.0

Or alternatively:

emerge --autounmask-write -a =dev-ml/mosaic-0.1.0

Package Information

Description:
Terminal user interfaces for OCaml
Homepage:
https://github.com/invariant-hq/mosaic
License:
ISC

Ebuild Details

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

EAPI=8

DUNE_PKG_NAME="matrix matrix-eio mosaic toffee tree-sitter"

inherit dune

DESCRIPTION="Terminal user interfaces for OCaml"
HOMEPAGE="https://github.com/invariant-hq/mosaic"
SRC_URI="https://github.com/invariant-hq/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="ISC"
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE="+ocamlopt test"
RESTRICT="test" # needs windtrap, which needs ppxlib-0.37

RDEPEND="!dev-ml/tree-sitter
	>=dev-lang/ocaml-5.1:0=[ocamlopt?]
	dev-ml/cmarkit:0=[ocamlopt?]
	dev-ml/eio:0=[ocamlopt?]"

src_prepare() {
	default

	# doesn't exist before ocaml 5.4
	sed -i 's/Sys\.sigwinch/28/g' matrix/lib/matrix.ml \
		matrix-eio/lib/matrix_eio.ml \
		|| die "sed failed"
}

src_compile() {
	dune-compile ${DUNE_PKG_NAME}
}

src_test() {
	dune-test ${DUNE_PKG_NAME}
}

USE Flags

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

Global/Standard Flags

ocamlopt
Default: Enabled (+)

Inherited Eclasses

Dependencies

RDEPEND

!dev-ml/tree-sitter
	>=dev-lang/ocaml-5.1:0=[ocamlopt?]
	dev-ml/cmarkit:0=[ocamlopt?]
	dev-ml/eio:0=[ocamlopt?]

Manifest for 0.1.0

Type File Size Source URLs
DIST mosaic-0.1.0.tar.gz 3182049 bytes https://github.com/invariant-hq/mosaic/archive/0.1.0.tar.gz