summaryrefslogtreecommitdiff
blob: e6001579ae46cbc5a4dcbb01af5f170af65617f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="Compatibility module for OCaml standard library"
HOMEPAGE="https://github.com/thierry-martinez/stdcompat"
SRC_URI="https://github.com/thierry-martinez/stdcompat/releases/download/v${PV}/${P}.tar.gz"

LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
SLOT="0/${PV}"

DEPEND="dev-lang/ocaml:=[ocamlopt]
	dev-ml/result:=[ocamlopt]
	dev-ml/uchar:=[ocamlopt]"
RDEPEND="${DEPEND}"
BDEPEND="
	dev-ml/dune
	dev-ml/findlib[ocamlopt]"

src_configure () {
	econf --libdir="${EPREFIX}"/usr/$(get_libdir)/ocaml
}