diff options
author | reagentoo <reagentoo@gmail.com> | 2017-10-20 18:35:21 +0300 |
---|---|---|
committer | Aaron W. Swenson <titanofold@gentoo.org> | 2017-12-30 13:17:10 -0500 |
commit | ae162066f9d3b4497becf89891a0de16b4ea98a5 (patch) | |
tree | 39c4888457d29434a14750d5de60d65afea2d0aa /media-video | |
parent | dev-python/pygresql-5.0.4: add REQUIRED_USE for PostgreSQL (diff) | |
download | gentoo-ae162066f9d3b4497becf89891a0de16b4ea98a5.tar.gz gentoo-ae162066f9d3b4497becf89891a0de16b4ea98a5.tar.bz2 gentoo-ae162066f9d3b4497becf89891a0de16b4ea98a5.zip |
media-video/webcamoid: new ebuild
Closes: https://github.com/gentoo/gentoo/pull/5996
Diffstat (limited to 'media-video')
-rw-r--r-- | media-video/webcamoid/Manifest | 1 | ||||
-rw-r--r-- | media-video/webcamoid/metadata.xml | 22 | ||||
-rw-r--r-- | media-video/webcamoid/webcamoid-8.1.0.ebuild | 101 |
3 files changed, 124 insertions, 0 deletions
diff --git a/media-video/webcamoid/Manifest b/media-video/webcamoid/Manifest new file mode 100644 index 000000000000..a67410077153 --- /dev/null +++ b/media-video/webcamoid/Manifest @@ -0,0 +1 @@ +DIST webcamoid-8.1.0.tar.gz 10062681 BLAKE2B e9501ace9ba42abdae4be4e9e689329b02796198fe2610ef3a404535d389a6aa7a7e540148548dd63ea6ba78c9b650b30f5497396e49b37d7ab06ca8708ad056 SHA512 6db53ed29288889c05955967d961b53fa0e4171aeed12cd1557829c26bb2e2031804319fcead4c5b888a695cfd84f531a27f992be56c38366076ff2945ec2dbb diff --git a/media-video/webcamoid/metadata.xml b/media-video/webcamoid/metadata.xml new file mode 100644 index 000000000000..9140e9d45b53 --- /dev/null +++ b/media-video/webcamoid/metadata.xml @@ -0,0 +1,22 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>reagentoo@gmail.com</email> + <name>Dmitry Baranov</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <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-8.1.0.ebuild b/media-video/webcamoid/webcamoid-8.1.0.ebuild new file mode 100644 index 000000000000..50eb5018b024 --- /dev/null +++ b/media-video/webcamoid/webcamoid-8.1.0.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PLOCALES="ca de el es et fr gl it ja kab ko nl pt ru uk zh_CN zh_TW" + +inherit l10n qmake-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" + +KEYWORDS="~amd64 ~x86" +LICENSE="GPL-3" +SLOT="0" + +IUSE_AVKYS=( alsa coreaudio ffmpeg gstreamer jack libuvc oss pulseaudio qtaudio v4lutils videoeffects ) +IUSE="${IUSE_AVKYS[@]} debug headers libav v4l" + +REQUIRED_USE=" + libav? ( ffmpeg ) + 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/qtquickcontrols:5 + dev-qt/qtsvg:5 + dev-qt/qtwidgets:5 + ffmpeg? ( + libav? ( media-video/libav:= ) + !libav? ( 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} + dev-qt/linguist-tools:5 + >=sys-kernel/linux-headers-3.6 + virtual/pkgconfig +" + +src_prepare() { + local tsdir="${S}/StandAlone/share/ts" + local mylrelease="$(qt5_get_bindir)"/lrelease + + prepare_locale() { + "${mylrelease}" "${tsdir}/${1}.ts" || die "preparing ${1} locale failed" + } + + rm_locale() { + sed -i \ + -e '/.*share\/ts\/'${1}'\.qm.*/d' \ + StandAlone/translations.qrc || die + } + + rm ${tsdir}/*.qm + + l10n_find_plocales_changes "${tsdir}" "" '.ts' + l10n_for_each_locale_do prepare_locale + l10n_for_each_disabled_locale_do rm_locale + + default +} + +src_configure() { + local myqmakeargs=( + "CONFIG+=debug" + "PREFIX=/usr" + "BUILDDOCS=0" + "INSTALLDEVHEADERS=$(usex headers 1 0)" + "LIBDIR=/usr/$(get_libdir)" + "NOAVFOUNDATION=1" + "NODSHOW=1" + "NOVCAMWIN=1" + "NOWASAPI=1" + ) + + use v4l || myqmakeargs+=( "NOV4L2=1" ) + + for x in ${IUSE_AVKYS[@]}; do + use ${x} || myqmakeargs+=( "NO${x^^}=1" ) + done + + eqmake5 ${myqmakeargs[@]} +} + +src_install() { + emake INSTALL_ROOT="${D}" install + einstalldocs +} |