blob: 2e8609cd299a3ad6e06be9ea62c169d9eeab9233 (
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
34
35
36
|
# Copyright 2019-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DUNE_PKG_NAME=lablgtk3
inherit dune
DESCRIPTION="OCaml bindings to GTK-3"
HOMEPAGE="https://github.com/garrigue/lablgtk"
SRC_URI="https://github.com/garrigue/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="LGPL-2.1-with-linking-exception"
SLOT="3/${PV}"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
IUSE="+ocamlopt sourceview"
BDEPEND="dev-ml/camlp5"
DEPEND="
app-text/gtkspell:3=
x11-libs/gtk+:3=
dev-ml/cairo2:=
x11-libs/gtksourceview:3.0=
"
RDEPEND="${DEPEND}"
PDEPEND="sourceview? ( dev-ml/lablgtk-sourceview:${SLOT} )"
src_prepare() {
default
echo "(version ${PV})" >> "${S}"/dune-project || die
}
src_compile() {
dune build --profile release -p ${DUNE_PKG_NAME} || die
}
|