Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/pitivi/, media-video/pitivi/files/
Date: Tue, 31 May 2022 04:46:18
Message-Id: 1653971452.21dfed0cc6d952b5bd1103c3377d354b895c4c3d.sam@gentoo
1 commit: 21dfed0cc6d952b5bd1103c3377d354b895c4c3d
2 Author: Daniel Brandt <poncho <AT> spahan <DOT> ch>
3 AuthorDate: Tue Mar 1 08:45:59 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue May 31 04:30:52 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21dfed0c
7
8 media-video/pitivi: version bump
9
10 Closes: https://bugs.gentoo.org/749032
11 Package-Manager: Portage-3.0.28, Repoman-3.0.3
12 Signed-off-by: Daniel Brandt <poncho <AT> spahan.ch>
13 Closes: https://github.com/gentoo/gentoo/pull/23101
14 Signed-off-by: Sam James <sam <AT> gentoo.org>
15
16 media-video/pitivi/Manifest | 1 +
17 .../files/pitivi-2021.05-meson-compatibility.patch | 45 ++++++++++++
18 media-video/pitivi/pitivi-2021.05.ebuild | 85 ++++++++++++++++++++++
19 3 files changed, 131 insertions(+)
20
21 diff --git a/media-video/pitivi/Manifest b/media-video/pitivi/Manifest
22 index 4c40a41dfd05..6d5daf2867a2 100644
23 --- a/media-video/pitivi/Manifest
24 +++ b/media-video/pitivi/Manifest
25 @@ -1 +1,2 @@
26 DIST pitivi-0.999.tar.xz 12296928 BLAKE2B 16736fef4f2d16c02b64f8eba56f8c9ddb26f49742ee577da4e4c47077f8d5d71ce653dba366a041ba523153532728c5eb37cb2b76e11e9c51827efb990bd99d SHA512 663db84a00634f0e83f0c1dd80a4f3a6603a50826905adb24fdd567c6e8bb58e20de04c7753fa04a36692cdcf5bbbcc9a87327fd3b56ebb70caffcff13835fc8
27 +DIST pitivi-2021.05.tar.xz 11303884 BLAKE2B f87f16cc1ab7ea0f97bc92cdd9f1d5993051ed67b26473748aeb327a4cb51bb32510c845e1665ec3eb3b67c3f0f113c05a514076bad4e13d0fadbd725bcb6bb6 SHA512 3ecb571d501b634ca3a369d4020954cc0b2bc101ceb12bee74d6b38c9ca8f2bf15fe94030421c43503870128d8218548feca7d32cf25b4afcf610365784ca9bb
28
29 diff --git a/media-video/pitivi/files/pitivi-2021.05-meson-compatibility.patch b/media-video/pitivi/files/pitivi-2021.05-meson-compatibility.patch
30 new file mode 100644
31 index 000000000000..990f84b06795
32 --- /dev/null
33 +++ b/media-video/pitivi/files/pitivi-2021.05-meson-compatibility.patch
34 @@ -0,0 +1,45 @@
35 +From ddf2369d1fc6fddd63f676cc905a8b8e96291a4c Mon Sep 17 00:00:00 2001
36 +From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian@×××××××××××.com>
37 +Date: Tue, 25 Jan 2022 15:37:34 +0200
38 +Subject: [PATCH] Fix compatibility with meson 0.61
39 +
40 +Previously positional arguments to i18n.merge_files() were just ignored
41 +but this became an error.
42 +---
43 + data/meson.build | 6 +++---
44 + 1 file changed, 3 insertions(+), 3 deletions(-)
45 +
46 +diff --git a/data/meson.build b/data/meson.build
47 +index 2ea82cf12..60d23169b 100644
48 +--- a/data/meson.build
49 ++++ b/data/meson.build
50 +@@ -6,7 +6,7 @@ install_subdir('audiopresets', install_dir: pkgdatadir)
51 + install_subdir('videopresets', install_dir: pkgdatadir)
52 + install_subdir('gstpresets', install_dir: pkgdatadir)
53 +
54 +-desktop_file = i18n.merge_file('org.pitivi.Pitivi.desktop',
55 ++desktop_file = i18n.merge_file(
56 + type: 'desktop',
57 + output : 'org.pitivi.Pitivi.desktop',
58 + input : 'org.pitivi.Pitivi.desktop.in',
59 +@@ -25,7 +25,7 @@ if desktop_file_validate.found()
60 + )
61 + endif
62 +
63 +-appdata_file = i18n.merge_file('org.pitivi.Pitivi.appdata.xml',
64 ++appdata_file = i18n.merge_file(
65 + type: 'xml',
66 + output : 'org.pitivi.Pitivi.appdata.xml',
67 + input : 'org.pitivi.Pitivi.appdata.xml.in',
68 +@@ -43,7 +43,7 @@ if appstream_util.found()
69 + )
70 + endif
71 +
72 +-i18n.merge_file('org.pitivi.Pitivi-mime.xml',
73 ++i18n.merge_file(
74 + output : 'org.pitivi.Pitivi-mime.xml',
75 + input : 'org.pitivi.Pitivi-mime.xml.in',
76 + po_dir: podir,
77 +--
78 +GitLab
79 +
80
81 diff --git a/media-video/pitivi/pitivi-2021.05.ebuild b/media-video/pitivi/pitivi-2021.05.ebuild
82 new file mode 100644
83 index 000000000000..e5a66ed35143
84 --- /dev/null
85 +++ b/media-video/pitivi/pitivi-2021.05.ebuild
86 @@ -0,0 +1,85 @@
87 +# Copyright 1999-2022 Gentoo Authors
88 +# Distributed under the terms of the GNU General Public License v2
89 +
90 +EAPI=8
91 +PYTHON_COMPAT=( python3_{8..10} )
92 +PYTHON_REQ_USE="sqlite"
93 +
94 +inherit gnome.org meson python-single-r1 xdg
95 +
96 +DESCRIPTION="A non-linear video editor using the GStreamer multimedia framework"
97 +HOMEPAGE="http://www.pitivi.org"
98 +
99 +LICENSE="LGPL-2.1"
100 +SLOT="0"
101 +KEYWORDS="~amd64 ~x86"
102 +
103 +IUSE=""
104 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
105 +
106 +# Do not forget to check pitivi/check.py for dependencies!!!
107 +# gsound, libav, libnotify and v4l are optional
108 +GST_VER="1.18.4"
109 +
110 +COMMON_DEPEND="
111 + ${PYTHON_DEPS}
112 + $(python_gen_cond_dep '
113 + >=dev-python/pycairo-1.10[${PYTHON_USEDEP}]
114 + ')
115 + >=x11-libs/cairo-1.10
116 +
117 + >=media-libs/gstreamer-${GST_VER}:1.0[introspection]
118 +"
119 +RDEPEND="${COMMON_DEPEND}
120 + >=dev-libs/glib-2.30.0:2
121 +
122 + >=dev-libs/gobject-introspection-1.34:=
123 + $(python_gen_cond_dep '
124 + dev-python/dbus-python[${PYTHON_USEDEP}]
125 + >=dev-python/gst-python-1.4:1.0[${PYTHON_USEDEP}]
126 + dev-python/matplotlib[${PYTHON_USEDEP}]
127 + dev-python/numpy[${PYTHON_USEDEP}]
128 + >=dev-python/pygobject-3.8:3[${PYTHON_USEDEP}]
129 + ')
130 +
131 + gnome-base/librsvg:=
132 +
133 + >=media-libs/gstreamer-editing-services-${GST_VER}:1.0[introspection]
134 + >=media-libs/gst-plugins-base-${GST_VER}:1.0[introspection,theora]
135 + >=media-libs/gst-plugins-bad-${GST_VER}:1.0
136 + >=media-plugins/gst-plugins-gtk-${GST_VER}:1.0
137 + >=media-libs/gst-plugins-good-${GST_VER}:1.0
138 + >=media-plugins/gst-plugins-libav-${GST_VER}:1.0
139 + >=media-plugins/gst-plugins-gdkpixbuf-${GST_VER}:1.0
140 +
141 + >=x11-libs/libnotify-0.7[introspection]
142 + x11-libs/libwnck:3[introspection]
143 + >=x11-libs/gtk+-3.20.0:3[introspection]
144 +"
145 +DEPEND="${RDEPEND}"
146 +BDEPEND="
147 + app-text/yelp-tools
148 + dev-python/setuptools
149 + >=dev-util/intltool-0.35.5
150 + dev-util/itstool
151 + sys-devel/gettext
152 + virtual/pkgconfig
153 +"
154 +
155 +PATCHES=(
156 + # https://gitlab.gnome.org/GNOME/pitivi/-/commit/ddf2369d1fc6fddd63f676cc905a8b8e96291a4c
157 + "${FILESDIR}"/${P}-meson-compatibility.patch
158 +)
159 +
160 +src_configure() {
161 + meson_src_configure
162 +}
163 +
164 +src_compile() {
165 + meson_src_compile
166 +}
167 +
168 +src_install() {
169 + meson_src_install
170 + python_fix_shebang "${D}"
171 +}