1 |
commit: 95eb103649422aac003018f55f76b8a606f1850e |
2 |
Author: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
3 |
AuthorDate: Sat Feb 19 14:33:00 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 20 01:02:36 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95eb1036 |
7 |
|
8 |
media-plugins/frei0r-plugins: fix CMake flags not being passed |
9 |
|
10 |
Other changes: |
11 |
|
12 |
* update EAPI 7 -> 8 |
13 |
* use docs.eclass |
14 |
* remove pkgconfig build dependency (it's a rdep of cmake) |
15 |
|
16 |
Closes: https://bugs.gentoo.org/833768 |
17 |
Signed-off-by: Anna Vyalkova <cyber+gentoo <AT> sysrq.in> |
18 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
19 |
|
20 |
.../frei0r-plugins/frei0r-plugins-1.7.0-r2.ebuild | 54 ++++++++++++++++++++++ |
21 |
1 file changed, 54 insertions(+) |
22 |
|
23 |
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 |
24 |
new file mode 100644 |
25 |
index 000000000000..1b3d854afda5 |
26 |
--- /dev/null |
27 |
+++ b/media-plugins/frei0r-plugins/frei0r-plugins-1.7.0-r2.ebuild |
28 |
@@ -0,0 +1,54 @@ |
29 |
+# Copyright 1999-2022 Gentoo Authors |
30 |
+# Distributed under the terms of the GNU General Public License v2 |
31 |
+ |
32 |
+EAPI=8 |
33 |
+ |
34 |
+DOCS_BUILDER="doxygen" |
35 |
+DOCS_DIR="doc" |
36 |
+inherit cmake-multilib docs |
37 |
+ |
38 |
+DESCRIPTION="A minimalistic plugin API for video effects" |
39 |
+HOMEPAGE="https://www.dyne.org/software/frei0r/" |
40 |
+SRC_URI="https://files.dyne.org/frei0r/releases/${P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="GPL-2" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~x86" |
45 |
+IUSE="doc +facedetect +scale0tilt" |
46 |
+ |
47 |
+RDEPEND="x11-libs/cairo[${MULTILIB_USEDEP}] |
48 |
+ facedetect? ( >=media-libs/opencv-2.3.0:=[contribdnn,features2d,${MULTILIB_USEDEP}] ) |
49 |
+ scale0tilt? ( >=media-libs/gavl-1.2.0[${MULTILIB_USEDEP}] )" |
50 |
+DEPEND="${RDEPEND}" |
51 |
+ |
52 |
+DOCS=( AUTHORS.txt ChangeLog.txt README.txt TODO.txt ) |
53 |
+PATCHES=( "${FILESDIR}/ocv4.patch" ) |
54 |
+ |
55 |
+src_prepare() { |
56 |
+ cmake_src_prepare |
57 |
+ |
58 |
+ local f=CMakeLists.txt |
59 |
+ |
60 |
+ sed -i \ |
61 |
+ -e '/set(CMAKE_C_FLAGS/d' \ |
62 |
+ -e "/LIBDIR.*frei0r-1/s:lib:$(get_libdir):" \ |
63 |
+ ${f} || die |
64 |
+ |
65 |
+ # https://bugs.gentoo.org/418243 |
66 |
+ sed -i \ |
67 |
+ -e '/set.*CMAKE_C_FLAGS/s:"): ${CMAKE_C_FLAGS}&:' \ |
68 |
+ src/filter/*/${f} || die |
69 |
+} |
70 |
+ |
71 |
+src_configure() { |
72 |
+ local mycmakeargs=( |
73 |
+ -DWITHOUT_OPENCV=$(usex !facedetect) |
74 |
+ -DWITHOUT_GAVL=$(usex !scale0tilt) |
75 |
+ ) |
76 |
+ cmake-multilib_src_configure |
77 |
+} |
78 |
+ |
79 |
+src_compile() { |
80 |
+ cmake-multilib_src_compile |
81 |
+ use doc && docs_compile |
82 |
+} |