2024-05-24 16:01:57 +02:00
|
|
|
# Copyright 1999-2022 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=8
|
2024-05-27 13:29:14 +02:00
|
|
|
PYTHON_COMPAT=( python3_{7..13} )
|
2024-05-24 16:01:57 +02:00
|
|
|
|
|
|
|
inherit meson python-any-r1
|
|
|
|
|
|
|
|
DESCRIPTION="Camera support library for Linux"
|
|
|
|
HOMEPAGE="http://libcamera.org"
|
|
|
|
SRC_URI="https://github.com/libcamera-org/libcamera/archive/refs/tags/v${PV}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="LGPL-2.1+"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~x86 ~amd64 ~arm64 ~arm"
|
|
|
|
IUSE="debug doc test udev"
|
|
|
|
|
|
|
|
RDEPEND="
|
|
|
|
>=net-libs/gnutls-3.3:=
|
|
|
|
udev? ( virtual/libudev )
|
2024-05-27 13:54:26 +02:00
|
|
|
test? ( dev-cpp/gtest )
|
|
|
|
dev-util/lttng-ust
|
2024-05-24 16:01:57 +02:00
|
|
|
"
|
|
|
|
|
|
|
|
DEPEND="
|
|
|
|
${RDEPEND}
|
|
|
|
dev-libs/openssl
|
|
|
|
$(python_gen_any_dep 'dev-python/pyyaml[${PYTHON_USEDEP}]')
|
|
|
|
$(python_gen_any_dep 'dev-python/ply[${PYTHON_USEDEP}]')
|
|
|
|
$(python_gen_any_dep 'dev-python/jinja[${PYTHON_USEDEP}]')
|
2024-05-27 13:54:26 +02:00
|
|
|
$(python_gen_any_dep 'dev-python/pybind11[${PYTHON_USEDEP}]')
|
2024-05-24 16:01:57 +02:00
|
|
|
"
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
local emesonargs=(
|
|
|
|
$(meson_feature doc documentation)
|
|
|
|
$(meson_use test)
|
2024-05-27 13:46:19 +02:00
|
|
|
$(meson_use debug)
|
2024-05-27 13:48:37 +02:00
|
|
|
$(meson_feature udev)
|
2024-05-24 16:01:57 +02:00
|
|
|
)
|
|
|
|
meson_src_configure
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
meson_src_compile
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
meson_src_install
|
|
|
|
}
|