commit:     3e74e17dbeda1e722618672a95165eb28fffa6d1
Author:     Alfred Wingate <parona <AT> protonmail <DOT> com>
AuthorDate: Fri May  9 19:33:46 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun May 11 00:28:29 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e74e17d

media-plugins/frei0r-plugins: add 2.3.3

Long overdue bump after they moved their releases to GitHub.

Signed-off-by: Alfred Wingate <parona <AT> protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/42011
Closes: https://github.com/gentoo/gentoo/pull/42011
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-plugins/frei0r-plugins/Manifest              |  1 +
 .../files/frei0r-plugins-2.3.3-cmake4.patch        | 21 +++++++++
 .../frei0r-plugins/frei0r-plugins-2.3.3.ebuild     | 55 ++++++++++++++++++++++
 3 files changed, 77 insertions(+)

diff --git a/media-plugins/frei0r-plugins/Manifest 
b/media-plugins/frei0r-plugins/Manifest
index 84b10b02b5a3..1906bb74faa0 100644
--- a/media-plugins/frei0r-plugins/Manifest
+++ b/media-plugins/frei0r-plugins/Manifest
@@ -1 +1,2 @@
 DIST frei0r-plugins-1.8.0.tar.gz 823119 BLAKE2B 
079017e0ff0ef08cf4b35ae18832191bacbdd01922c634adaad3b81f36af60548abe27fc3c2704c23f977dc8ab5554dc874886ddfa1766bbcd6bcadaa3f964da
 SHA512 
b9933b5e46da6e6b4ae242ec48b3ca4e51fb21d7924fd83375bf6628437b194697dd2bff43a42220bd5e6bc4c50b0352480d6986956f110eb966e1005b51dc35
+DIST frei0r-plugins-2.3.3.tar.gz 921452 BLAKE2B 
dcf1d4eabd767428656802252ee5c7b51d23618dcbe3f7dab6f6268d28781fd994ac69276553910670e9a438557e7d200b16ce16a6df0d44469bbc1e7580823f
 SHA512 
4f1b7b098563b38379821a81b19e2f9722512827e6ef986e5bac836e4406ce23f7cb486fd882646a372044555a897c3532c4fa733f2e5797613c3b65aff4b015

diff --git 
a/media-plugins/frei0r-plugins/files/frei0r-plugins-2.3.3-cmake4.patch 
b/media-plugins/frei0r-plugins/files/frei0r-plugins-2.3.3-cmake4.patch
new file mode 100644
index 000000000000..0334a1c11229
--- /dev/null
+++ b/media-plugins/frei0r-plugins/files/frei0r-plugins-2.3.3-cmake4.patch
@@ -0,0 +1,21 @@
+https://bugs.gentoo.org/951350
+https://github.com/dyne/frei0r/commit/31efba74b26c161125c6c41d381dcf3f6207a728
+https://github.com/dyne/frei0r/pull/205
+
+From 31efba74b26c161125c6c41d381dcf3f6207a728 Mon Sep 17 00:00:00 2001
+From: Dan Dennedy <[email protected]>
+Date: Wed, 2 Apr 2025 14:04:17 -0700
+Subject: [PATCH] Fix configuring with CMake version 4
+
+See https://cmake.org/cmake/help/latest/release/4.0.html#deprecated-and-
+removed-features
+
+> Compatibility with versions of CMake older than 3.5 has been removed.
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required (VERSION 3.1)
++cmake_minimum_required (VERSION 3.5)
+ 
+ list (APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules)
+ 

diff --git a/media-plugins/frei0r-plugins/frei0r-plugins-2.3.3.ebuild 
b/media-plugins/frei0r-plugins/frei0r-plugins-2.3.3.ebuild
new file mode 100644
index 000000000000..6be5efd186ab
--- /dev/null
+++ b/media-plugins/frei0r-plugins/frei0r-plugins-2.3.3.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2025 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://github.com/dyne/frei0r/archive/refs/tags/v${PV}.tar.gz -> 
${P}.tar.gz"
+S="${WORKDIR}/frei0r-${PV}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~x86"
+IUSE="doc +facedetect +scale0tilt"
+
+RDEPEND="x11-libs/cairo[${MULTILIB_USEDEP}]
+       facedetect? ( 
>=media-libs/opencv-2.3.0:=[contrib,contribdnn,features2d,${MULTILIB_USEDEP}] )
+       scale0tilt? ( >=media-libs/gavl-1.2.0[${MULTILIB_USEDEP}] )"
+DEPEND="${RDEPEND}"
+BDEPEND="
+       virtual/pkgconfig
+       doc? ( app-text/doxygen[dot] )
+"
+
+DOCS=( AUTHORS.md README.md )
+
+PATCHES=(
+       "${FILESDIR}"/frei0r-plugins-2.3.3-cmake4.patch
+)
+
+src_prepare() {
+       cmake_src_prepare
+
+       # https://bugs.gentoo.org/418243
+       sed -i \
+               -e '/set.*CMAKE_C_FLAGS/s:"): ${CMAKE_C_FLAGS}&:' \
+               src/filter/*/CMakeLists.txt || 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
+}

Reply via email to