You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.1 KiB

# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit multilib
MY_PV="${PV/_/-}"
DESCRIPTION="Library to exploit multicore architectures for OCaml programs"
HOMEPAGE="http://www.dicosmo.org/code/parmap/"
SRC_URI="https://github.com/rdicosmo/parmap/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
LICENSE="LGPL-2-with-linking-exception"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
IUSE="+ocamlopt"
RDEPEND=">=dev-lang/ocaml-4.03:=[ocamlopt?]"
DEPEND="${RDEPEND}
dev-ml/findlib
dev-ml/ocamlbuild
dev-ml/ocaml-autoconf"
S="${WORKDIR}/${PN}-${MY_PV/+/-}"
src_test() {
mkdir "${WORKDIR}/tmpinstall" || die
emake \
OCAMLLIBDIR="ocaml" \
DESTDIR="${WORKDIR}/tmpinstall" \
install
export OCAMLPATH="${WORKDIR}/tmpinstall/ocaml"
emake tests
cd _build/tests || die
for i in $(find . -type f -executable) ; do
${i} || die
done
}
src_install() {
emake \
OCAMLLIBDIR="$(get_libdir)/ocaml" \
MANDIR="${ED}/usr/share/man/man3o" \
DESTDIR="${ED}/usr" \
install
dodoc AUTHORS Changelog README
}