From 5a44bef4fdc9a7f7e783a27a5f5fcfaac54ae640 Mon Sep 17 00:00:00 2001 From: Gerben Jan Dijkman Date: Tue, 24 Jan 2023 20:47:34 +0100 Subject: [PATCH] Added libcamera --- media-libs/libcamera/Manifest | 1 + media-libs/libcamera/libcamera-0.0.3.ebuild | 46 +++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 media-libs/libcamera/Manifest create mode 100644 media-libs/libcamera/libcamera-0.0.3.ebuild diff --git a/media-libs/libcamera/Manifest b/media-libs/libcamera/Manifest new file mode 100644 index 0000000..6318526 --- /dev/null +++ b/media-libs/libcamera/Manifest @@ -0,0 +1 @@ +DIST v0.0.3.tar.gz 1297160 BLAKE2B 68ec2905afe4398c8477dc1ed0deaa5e4bbb49e8dc02b90eba3dff6877cc1febe17c939fb707cfb00ad435dedab9d7518140826065453e1cd042b3fbd0ae6327 SHA512 5e93dfccd451faa5a2c70880de0400687e4a997af605cce771cccf16be02fd5347d604abecab51874a9339bdbdda56220ba3d7eb351067df289656ba470b99a9 diff --git a/media-libs/libcamera/libcamera-0.0.3.ebuild b/media-libs/libcamera/libcamera-0.0.3.ebuild new file mode 100644 index 0000000..d87281d --- /dev/null +++ b/media-libs/libcamera/libcamera-0.0.3.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PYTHON_COMPAT=( python3_{7..10} ) + +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" + +S="${WORKDIR}/v${PV}" + +LICENSE="LGPL-2.1+" +SLOT="0" +KEYWORDS="*" +IUSE="debug doc test udev" + +RDEPEND=" + >=net-libs/gnutls-3.3:= + udev? ( virtual/libudev ) +" + +DEPEND=" + ${RDEPEND} + dev-libs/openssl + $(python_gen_any_dep 'dev-python/pyyaml[${PYTHON_USEDEP}]') +" + +src_configure() { + local emesonargs=( + $(meson_feature doc documentation) + $(meson_use test) + --buildtype $(usex debug debug plain) + ) + meson_src_configure +} + +src_compile() { + meson_src_compile +} + +src_install() { + meson_src_install +}