From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1188995-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3934313835A for <garchives@archives.gentoo.org>; Sun, 19 Jul 2020 15:57:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 58D40E086C; Sun, 19 Jul 2020 15:57:04 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3B282E086C for <gentoo-commits@lists.gentoo.org>; Sun, 19 Jul 2020 15:57:04 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CDCBA34EF66 for <gentoo-commits@lists.gentoo.org>; Sun, 19 Jul 2020 15:57:02 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5941E2E0 for <gentoo-commits@lists.gentoo.org>; Sun, 19 Jul 2020 15:57:01 +0000 (UTC) From: "Andreas Sturmlechner" <asturm@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" <asturm@gentoo.org> Message-ID: <1595173894.3e7b3f46e3340fc64573f82c773a897d1358b5dc.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/webcamoid/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-video/webcamoid/webcamoid-8.1.0-r1.ebuild X-VCS-Directories: media-video/webcamoid/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 3e7b3f46e3340fc64573f82c773a897d1358b5dc X-VCS-Branch: master Date: Sun, 19 Jul 2020 15:57:01 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 1fd391ef-398c-4748-be67-8949001765bb X-Archives-Hash: a8cf83c1cc7b7e433d0a0f3adab1f1a8 commit: 3e7b3f46e3340fc64573f82c773a897d1358b5dc Author: reagentoo <reagentoo <AT> gmail <DOT> com> AuthorDate: Sun Jul 19 13:19:02 2020 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Sun Jul 19 15:51:34 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e7b3f46 media-video/webcamoid-8.1.0: fix QML modules installation directory Closes: https://bugs.gentoo.org/733220 Signed-off-by: Dmitry Baranov <reagentoo <AT> gmail.com> Closes: https://github.com/gentoo/gentoo/pull/16743 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> media-video/webcamoid/webcamoid-8.1.0-r1.ebuild | 100 ++++++++++++++++++++++++ 1 file changed, 100 insertions(+) diff --git a/media-video/webcamoid/webcamoid-8.1.0-r1.ebuild b/media-video/webcamoid/webcamoid-8.1.0-r1.ebuild new file mode 100644 index 00000000000..42c60a85734 --- /dev/null +++ b/media-video/webcamoid/webcamoid-8.1.0-r1.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2020 Gentoo Authors +# 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 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/qtquickcontrols: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} + dev-qt/linguist-tools:5 + >=sys-kernel/linux-headers-3.6 + virtual/pkgconfig +" + +PATCHES=( "${FILESDIR}/${P}-ffmpeg-4.patch" ) + +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)" + "INSTALLQMLDIR=$(qt5_get_libdir)/qt5/qml" + "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 +}