diff options
author | 2022-05-10 12:57:38 +0200 | |
---|---|---|
committer | 2022-05-10 12:57:38 +0200 | |
commit | 406b56bc9c3ed7140fe5d35dec1cbcb80a227423 (patch) | |
tree | ef2d18d25f8b5177c98eb47efacca24f4c77a9a8 /media-video | |
parent | net-im/teams-insiders: Bump to 1.5.00.10453 (diff) | |
download | seden-406b56bc9c3ed7140fe5d35dec1cbcb80a227423.tar.gz seden-406b56bc9c3ed7140fe5d35dec1cbcb80a227423.tar.bz2 seden-406b56bc9c3ed7140fe5d35dec1cbcb80a227423.zip |
media-video/webcamoid: Bump to 9.0.0
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Sven Eden <sven.eden@prydeworx.com>
Diffstat (limited to 'media-video')
-rw-r--r-- | media-video/webcamoid/Manifest | 1 | ||||
-rw-r--r-- | media-video/webcamoid/files/webcamoid-9.0.0-no-git-hash-retrieval.patch | 22 | ||||
-rw-r--r-- | media-video/webcamoid/metadata.xml | 15 | ||||
-rw-r--r-- | media-video/webcamoid/webcamoid-9.0.0.ebuild | 84 |
4 files changed, 122 insertions, 0 deletions
diff --git a/media-video/webcamoid/Manifest b/media-video/webcamoid/Manifest new file mode 100644 index 0000000..d53eab7 --- /dev/null +++ b/media-video/webcamoid/Manifest @@ -0,0 +1 @@ +DIST webcamoid-9.0.0.tar.gz 9257331 SHA256 83c4a2e0fc96da5a3aa8ea06e3e97bbabfe87721bd78fb72e0e54220f7d306bd SHA512 0de39dc6a5bc3fb8d6477728d971bca933c57e354a6d041389b33c3e48ec7c7912007f6f87bc9be5db303f58ddc5143bb28dc1b475c9ca361f579e1532b515a4 WHIRLPOOL a9edc5c0b48b194fb7a54552b98db16b46c6887d483ccb1047d1f487bd25f1db69bee0f681108f5f8da74a7ab8a818cae1afd69dd975a4ae390752a9019981a1 diff --git a/media-video/webcamoid/files/webcamoid-9.0.0-no-git-hash-retrieval.patch b/media-video/webcamoid/files/webcamoid-9.0.0-no-git-hash-retrieval.patch new file mode 100644 index 0000000..557bbb4 --- /dev/null +++ b/media-video/webcamoid/files/webcamoid-9.0.0-no-git-hash-retrieval.patch @@ -0,0 +1,22 @@ +--- a/libAvKys/cmake/ProjectCommons.cmake 2022-05-10 11:52:20.051345515 +0200 ++++ b/libAvKys/cmake/ProjectCommons.cmake 2022-05-10 11:52:31.734345614 +0200 +@@ -106,19 +106,6 @@ + + # Retrieve useful variables related to Qt installation. + +-find_program(GIT_BIN git) +- +-if (GIT_BIN) +- execute_process(COMMAND ${GIT_BIN} rev-parse HEAD +- WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}" +- OUTPUT_VARIABLE GIT_COMMIT_HASH +- OUTPUT_STRIP_TRAILING_WHITESPACE) +- +- if (GIT_COMMIT_HASH) +- add_definitions(-DGIT_COMMIT_HASH="${GIT_COMMIT_HASH}") +- endif () +-endif () +- + set(ANDROID_JAVA_VERSION 1.6 CACHE STRING "Mimimum Java version to use in Android") + set(ANDROID_JAR_DIRECTORY ${ANDROID_SDK}/platforms/android-${ANDROID_NATIVE_API_LEVEL} CACHE INTERNAL "") + diff --git a/media-video/webcamoid/metadata.xml b/media-video/webcamoid/metadata.xml new file mode 100644 index 0000000..2d85ce4 --- /dev/null +++ b/media-video/webcamoid/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <upstream> + <remote-id type="github">webcamoid/webcamoid</remote-id> + </upstream> + <use> + <flag name="headers">Install development headers</flag> + <flag name="libuvc">Build with libuvc support</flag> + <flag name="qtaudio">Enable audio capture/play via <pkg>dev-qt/qtmultimedia</pkg></flag> + <flag name="v4lutils">Build with V4L-utils support</flag> + <flag name="videoeffects">Build video effects</flag> + </use> +</pkgmetadata> diff --git a/media-video/webcamoid/webcamoid-9.0.0.ebuild b/media-video/webcamoid/webcamoid-9.0.0.ebuild new file mode 100644 index 0000000..36046c1 --- /dev/null +++ b/media-video/webcamoid/webcamoid-9.0.0.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake xdg-utils + +DESCRIPTION="A full featured webcam capture application" +HOMEPAGE="https://webcamoid.github.io" +SRC_URI="https://github.com/webcamoid/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +IUSE_AVKYS=( alsa coreaudio ffmpeg gstreamer jack libuvc pulseaudio v4lutils videoeffects ) +IUSE="${IUSE_AVKYS[@]} debug headers qtaudio v4l" + +REQUIRED_USE="v4lutils? ( v4l )" + +RDEPEND=" + dev-qt/qtconcurrent:5 + dev-qt/qtcore:5 + dev-qt/qtdeclarative:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5 + dev-qt/qtopengl:5 + dev-qt/qtquickcontrols2:5 + dev-qt/qtsvg:5 + dev-qt/qtwidgets:5 + ffmpeg? ( media-video/ffmpeg:= ) + gstreamer? ( >=media-libs/gstreamer-1.6.0 ) + jack? ( virtual/jack ) + libuvc? ( media-libs/libuvc ) + pulseaudio? ( media-sound/pulseaudio ) + qtaudio? ( dev-qt/qtmultimedia:5 ) + v4l? ( media-libs/libv4l ) +" +DEPEND="${RDEPEND} + >=sys-kernel/linux-headers-3.6 +" +BDEPEND=" + dev-qt/linguist-tools:5 + virtual/pkgconfig +" + +PATCHES=( + "${FILESDIR}"/${PN}-9.0.0-no-git-hash-retrieval.patch +) + +src_configure() { + local mycmakeargs=( + -DCMAKE_SKIP_RPATH=ON + -DNOAVFOUNDATION=ON + -DNODSHOW=ON + -DNOWASAPI=ON + -DDAILY_BUILD=OFF + -DNONDKAUDIO=OFF + -DNONDKCAMERA=OFF + -DNONDKMEDIA=OFF + ) + + use v4l || mycmakeargs+=( "-DNOV4L2=ON" ) + + local x + for x in ${IUSE_AVKYS[@]}; do + use ${x} || myqmakeargs+=( "-DNO${x^^}=ON" ) + done + + cmake_src_configure +} + +src_install() { + cmake_src_install + einstalldocs +} + +pkg_postinst() { + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_icon_cache_update +} |