mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-05 12:38:09 -07:00
34 lines
684 B
Bash
34 lines
684 B
Bash
# 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
|
|
}
|