dev-ml/tsdl - 9999 (nest)

Search

Install

Install this version:

emerge -a =dev-ml/tsdl-9999

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

autounmask =dev-ml/tsdl-9999

Or alternatively:

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

Package Information

Description:
Thin bindings to SDL for OCaml
Homepage:
https://github.com/dbuenzli/tsdl
License:
ISC

Ebuild Details

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

EAPI=8

inherit edo git-r3 opam virtualx

DESCRIPTION="Thin bindings to SDL for OCaml"
HOMEPAGE="https://github.com/dbuenzli/tsdl"
EGIT_REPO_URI="https://github.com/dbuenzli/${PN}.git"

LICENSE="ISC"
SLOT="0/${PV}"
IUSE="+ocamlopt test"
RESTRICT="!test? ( test )"

RDEPEND="dev-ml/ocaml-ctypes:0=[ocamlopt?]
	media-libs/libsdl2"
BDEPEND="dev-ml/topkg"

src_compile() {
	edo ocaml pkg/pkg.ml build --tests "$(usex test 'true' 'false')"
}

src_test() {
	virtx ocaml pkg/pkg.ml test
}

USE Flags

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

Global/Standard Flags

ocamlopt
Default: Enabled (+)

Inherited Eclasses

edo

Dependencies

RDEPEND

dev-ml/ocaml-ctypes:0=[ocamlopt?]
	media-libs/libsdl2

BDEPEND

dev-ml/topkg