dev-ml/ocaml-process - 0.2.1 (gentoo)

Search

Install

Install this version:

emerge -a =dev-ml/ocaml-process-0.2.1

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

autounmask =dev-ml/ocaml-process-0.2.1

Or alternatively:

emerge --autounmask-write -a =dev-ml/ocaml-process-0.2.1

Package Information

Description:
Easy process control for OCaml
Homepage:
https://github.com/dsheets/ocaml-process
License:
ISC

Ebuild Details

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

EAPI=8

inherit findlib

DESCRIPTION="Easy process control for OCaml"
HOMEPAGE="https://github.com/dsheets/ocaml-process"
SRC_URI="https://github.com/dsheets/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"

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

BDEPEND="
	dev-ml/ocamlbuild
	test? ( dev-ml/alcotest )
"

src_compile() {
	exts=.cma
	use ocamlopt && exts+=' .cmx .cmxa'
	export pkgs
	emake TARGETS="${exts}"
}

src_test() {
	emake -j1 TARGETS="${exts}" test
}

src_install() {
	local archives=''
	use ocamlopt && archives='_build/lib/process.a'
	findlib_src_install TARGETS="${exts}" ARCHIVES="${archives}"
}

USE Flags

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

Global/Standard Flags

ocamlopt
Default: Enabled (+)

Inherited Eclasses

Dependencies

BDEPEND

	dev-ml/ocamlbuild
	test? ( dev-ml/alcotest )

Manifest for 0.2.1

Type File Size Source URLs
DIST ocaml-process-0.2.1.tar.gz 5904 bytes https://github.com/dsheets/ocaml-process/archive/0.2.1.tar.gz