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