summaryrefslogtreecommitdiff
path: root/dev-ml/libvirt-ocaml/libvirt-ocaml-0.6.1.7.ebuild
blob: 61502da5c9aa18053e1077de5ac895a1218fd057 (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
26
27
28
29
30
31
32
33
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit dot-a

DESCRIPTION="OCaml language binding for libvirt native C API"
HOMEPAGE="https://ocaml.libvirt.org/"
SRC_URI="https://download.libvirt.org/ocaml/ocaml-libvirt-${PV}.tar.gz"

S="${WORKDIR}/ocaml-libvirt-${PV}"

LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64"

DEPEND="app-emulation/libvirt
	dev-lang/ocaml:=[ocamlopt]"
BDEPEND="dev-lang/perl
	 dev-ml/findlib[ocamlopt]
	 virtual/pkgconfig"

src_configure() {
	lto-guarantee-fat
	default
}

src_install() {
	# ocaml always installs a static lib even without USE=static-libs
	strip-lto-bytecode "${ED}"
	default
}