From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4793915808B for ; Sun, 20 Feb 2022 01:07:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 704AEE07D4; Sun, 20 Feb 2022 01:07:34 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 55BB8E07D4 for ; Sun, 20 Feb 2022 01:07:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5CCC6343756 for ; Sun, 20 Feb 2022 01:07:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DE49E2CB for ; Sun, 20 Feb 2022 01:07:31 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1645318956.95eb103649422aac003018f55f76b8a606f1850e.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-plugins/frei0r-plugins/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-plugins/frei0r-plugins/frei0r-plugins-1.7.0-r2.ebuild X-VCS-Directories: media-plugins/frei0r-plugins/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 95eb103649422aac003018f55f76b8a606f1850e X-VCS-Branch: master Date: Sun, 20 Feb 2022 01:07:31 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f8145e42-b8c6-4598-a51e-85f1b137151d X-Archives-Hash: eb229e4e65dd728dadf5defe4bc704fe commit: 95eb103649422aac003018f55f76b8a606f1850e Author: Anna Vyalkova sysrq in> AuthorDate: Sat Feb 19 14:33:00 2022 +0000 Commit: Sam James gentoo org> CommitDate: Sun Feb 20 01:02:36 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95eb1036 media-plugins/frei0r-plugins: fix CMake flags not being passed Other changes: * update EAPI 7 -> 8 * use docs.eclass * remove pkgconfig build dependency (it's a rdep of cmake) Closes: https://bugs.gentoo.org/833768 Signed-off-by: Anna Vyalkova sysrq.in> Signed-off-by: Sam James gentoo.org> .../frei0r-plugins/frei0r-plugins-1.7.0-r2.ebuild | 54 ++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/media-plugins/frei0r-plugins/frei0r-plugins-1.7.0-r2.ebuild b/media-plugins/frei0r-plugins/frei0r-plugins-1.7.0-r2.ebuild new file mode 100644 index 000000000000..1b3d854afda5 --- /dev/null +++ b/media-plugins/frei0r-plugins/frei0r-plugins-1.7.0-r2.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DOCS_BUILDER="doxygen" +DOCS_DIR="doc" +inherit cmake-multilib docs + +DESCRIPTION="A minimalistic plugin API for video effects" +HOMEPAGE="https://www.dyne.org/software/frei0r/" +SRC_URI="https://files.dyne.org/frei0r/releases/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~x86" +IUSE="doc +facedetect +scale0tilt" + +RDEPEND="x11-libs/cairo[${MULTILIB_USEDEP}] + facedetect? ( >=media-libs/opencv-2.3.0:=[contribdnn,features2d,${MULTILIB_USEDEP}] ) + scale0tilt? ( >=media-libs/gavl-1.2.0[${MULTILIB_USEDEP}] )" +DEPEND="${RDEPEND}" + +DOCS=( AUTHORS.txt ChangeLog.txt README.txt TODO.txt ) +PATCHES=( "${FILESDIR}/ocv4.patch" ) + +src_prepare() { + cmake_src_prepare + + local f=CMakeLists.txt + + sed -i \ + -e '/set(CMAKE_C_FLAGS/d' \ + -e "/LIBDIR.*frei0r-1/s:lib:$(get_libdir):" \ + ${f} || die + + # https://bugs.gentoo.org/418243 + sed -i \ + -e '/set.*CMAKE_C_FLAGS/s:"): ${CMAKE_C_FLAGS}&:' \ + src/filter/*/${f} || die +} + +src_configure() { + local mycmakeargs=( + -DWITHOUT_OPENCV=$(usex !facedetect) + -DWITHOUT_GAVL=$(usex !scale0tilt) + ) + cmake-multilib_src_configure +} + +src_compile() { + cmake-multilib_src_compile + use doc && docs_compile +}