Gentoo Archives: gentoo-commits

From: Samuel Bernardo <samuelbernardo.mail@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/user/ssnb:master commit in: media-video/pitivi/, media-video/pitivi/files/
Date: Tue, 05 May 2020 20:49:09
Message-Id: 1588711717.b9b92ed439e8a4ad3662dad433e6fef603acb5ca.samuelbernardo@gentoo
1 commit: b9b92ed439e8a4ad3662dad433e6fef603acb5ca
2 Author: Samuel Bernardo <samuelbernardo.mail <AT> gmail <DOT> com>
3 AuthorDate: Tue May 5 20:48:37 2020 +0000
4 Commit: Samuel Bernardo <samuelbernardo.mail <AT> gmail <DOT> com>
5 CommitDate: Tue May 5 20:48:37 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/user/ssnb.git/commit/?id=b9b92ed4
7
8 Update pitivi
9
10 Signed-off-by: Samuel Bernardo <samuelbernardo.mail <AT> gmail.com>
11
12 media-video/pitivi/Manifest | 3 +
13 .../pitivi/files/pitivi-0.999-optional-tests.patch | 18 ++++
14 media-video/pitivi/pitivi-0.999-r3.ebuild | 111 +++++++++++++++++++++
15 3 files changed, 132 insertions(+)
16
17 diff --git a/media-video/pitivi/Manifest b/media-video/pitivi/Manifest
18 index f6a211a..e0fe1d1 100644
19 --- a/media-video/pitivi/Manifest
20 +++ b/media-video/pitivi/Manifest
21 @@ -1,5 +1,8 @@
22 AUX pitivi-0.98.1-fix-pycairo.patch 335 BLAKE2B f8ff9d8dbe38cb0678d364084726eadcb56261e80b32e4d200655bb7550fa0a274acdb4e34c5534035535392c08b9f6f6d0833be8ee5499b199698cffbc116e2 SHA512 052076bfd47171567c79ad309e9ad44f9672834d00823b905c1ae0a03c24921fd33669bb33f77b7351e57f9501ce07508f4ea5ca79fba97a2f236c7b63da6048
23 AUX pitivi-0.98.1-optional-tests.patch 742 BLAKE2B c85f9002504f9314ae4a251d3ecbb8c2e4e70cb217e9328465015f2c3e06436d50a327c91cd5b686a2a765ceb46ec7fc0dfab998bfa96d985cf4855a4cd14919 SHA512 fce5ae7ac4fdd4c340b233529564e20da1dd965261cc2c79d3368ef83ac23931cdee6b492e59a628beaaa25362b81a604ec5bd7bb6270bdb72c15dabb83feac2
24 +AUX pitivi-0.999-optional-tests.patch 638 BLAKE2B 7d43b76384250b091908369ed274d93d3dde9365df1a6fb31d30bcb35c824cd9dfae8802346ee3019625a83cf4fcf9a249cecae9f670594b1d7f9b73c42f4efd SHA512 d564ab01b702bf30486c3fa947fa62ef9021b00816f3d2759ace16590e3b4ea3d6423ef4f41acc78bf857c2d54a4402fd8da8a4a14762067b26f25396a216e1f
25 DIST pitivi-0.98.1.tar.xz 5112280 BLAKE2B 9269163a5c964a6a2b3fd094262594a38bfff4dd052ea0f3673f2ac195f197eb9b888de673e62f884137d056fba2b853d11cf7300e2f81d71c6e49402350cc40 SHA512 b6530b1b5429c4379699d7492c31ec60ddc514c94a003fe240f7e390b6349093d2f4f72abb1edb4253bd938620c73dfb361abf21915d36ff3b75332e8612bcb3
26 +DIST pitivi-0.999.tar.xz 12296928 BLAKE2B 16736fef4f2d16c02b64f8eba56f8c9ddb26f49742ee577da4e4c47077f8d5d71ce653dba366a041ba523153532728c5eb37cb2b76e11e9c51827efb990bd99d SHA512 663db84a00634f0e83f0c1dd80a4f3a6603a50826905adb24fdd567c6e8bb58e20de04c7753fa04a36692cdcf5bbbcc9a87327fd3b56ebb70caffcff13835fc8
27 EBUILD pitivi-0.98.1-r1.ebuild 2669 BLAKE2B b3f854034541893628a5a8040c6a1c0c430ae1f8dc37f6a042392499421ca2cce29ae3abd883d511ffb8700ec9fe3829b3c6d04965b0ca44dcbe15cd2cba5f08 SHA512 525ef33f64a0bc06efc5857c4d1bd5695ac873a090da95cb1a3ee5532acc3aa8f5781d75c687b33df02f4f1e0ef8c1ca2a2dae349ae92b36152f6a18a70d57f6
28 +EBUILD pitivi-0.999-r3.ebuild 2647 BLAKE2B 410725ba846886bba94e0f5c8e023c17410dff30bb306ae9b870cb3bfa76fb08be2fca6f0a8580a4b17a7546467704b5f831f795f971a950b965a9ebeb283ce6 SHA512 3a6e96f0c0ab3f0374373d0fe77effd90e19d553bd9d08052dd31f9e16cee48abb3fbd29c12420078aa9cbb8b56f158a77ce7161393f793bcf17d531dc977eaa
29 MISC metadata.xml 379 BLAKE2B a4f21a8cd6e5f4b09d1a89e426610108ab92ba52ef432d1780d100e76e43dda198cee09f105aec83994d4d1fa701be6c33a5981253b6c38b8ec888da08b5975a SHA512 30023299fba3c7c3743e24223d36366e7b59b01540a874ff432b8431ab29b240fdcd4ac4066b228af5421b009cfe4f67fdb69f7d1030c0fa409a4d545ffd43d1
30
31 diff --git a/media-video/pitivi/files/pitivi-0.999-optional-tests.patch b/media-video/pitivi/files/pitivi-0.999-optional-tests.patch
32 new file mode 100644
33 index 0000000..50a6218
34 --- /dev/null
35 +++ b/media-video/pitivi/files/pitivi-0.999-optional-tests.patch
36 @@ -0,0 +1,18 @@
37 +--- a/meson_options.txt~ 2018-08-29 15:33:20.000000000 +0200
38 ++++ b/meson_options.txt 2019-03-31 13:14:19.542837289 +0200
39 +@@ -1,2 +1,3 @@
40 + option('disable-help', type : 'boolean', value : false)
41 + option('build-gst', type : 'boolean', value : false)
42 ++option('enable-tests', type : 'boolean', value : false)
43 +--- a/meson.build~ 2018-08-29 15:33:20.000000000 +0200
44 ++++ b/meson.build 2019-03-31 13:14:56.299216758 +0200
45 +@@ -84,5 +84,7 @@
46 + if not get_option('disable-help')
47 + subdir('help')
48 + endif
49 +-subdir('tests')
50 +-subdir('tests/validate-tests')
51 ++if get_option('enable-tests')
52 ++ subdir('tests')
53 ++ subdir('tests/validate-tests')
54 ++endif
55
56 diff --git a/media-video/pitivi/pitivi-0.999-r3.ebuild b/media-video/pitivi/pitivi-0.999-r3.ebuild
57 new file mode 100644
58 index 0000000..9484511
59 --- /dev/null
60 +++ b/media-video/pitivi/pitivi-0.999-r3.ebuild
61 @@ -0,0 +1,111 @@
62 +# Copyright 1999-2020 Gentoo Authors
63 +# Distributed under the terms of the GNU General Public License v2
64 +
65 +EAPI=7
66 +PYTHON_COMPAT=( python3_6 )
67 +PYTHON_REQ_USE="sqlite"
68 +
69 +inherit gnome.org meson python-single-r1 virtualx xdg
70 +
71 +DESCRIPTION="A non-linear video editor using the GStreamer multimedia framework"
72 +HOMEPAGE="http://www.pitivi.org"
73 +
74 +LICENSE="LGPL-2.1"
75 +SLOT="0"
76 +KEYWORDS="amd64 x86"
77 +
78 +IUSE="v4l test"
79 +RESTRICT="!test? ( test )"
80 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
81 +
82 +# XXX: recommends gst-plugins-libav and frei0r-plugins
83 +
84 +# Do not forget to check pitivi/check.py for dependencies!!!
85 +# pycanberra, libav, libnotify and liwnck are optional
86 +GST_VER="1.14.2"
87 +
88 +COMMON_DEPEND="
89 + ${PYTHON_DEPS}
90 + $(python_gen_cond_dep '
91 + >=dev-python/pycairo-1.10[${PYTHON_MULTI_USEDEP}]
92 + ')
93 + >=x11-libs/cairo-1.10
94 +
95 + >=media-libs/gstreamer-${GST_VER}:1.0[introspection]
96 + >=media-plugins/gst-transcoder-1.8.2-r1
97 +"
98 +RDEPEND="${COMMON_DEPEND}
99 + >=dev-libs/glib-2.30.0:2
100 +
101 + >=dev-libs/gobject-introspection-1.34:=
102 + $(python_gen_cond_dep '
103 + dev-python/dbus-python[${PYTHON_MULTI_USEDEP}]
104 + >=dev-python/gst-python-1.4:1.0[${PYTHON_MULTI_USEDEP}]
105 + dev-python/matplotlib[${PYTHON_MULTI_USEDEP}]
106 + dev-python/numpy[${PYTHON_MULTI_USEDEP}]
107 + >=dev-python/pygobject-3.8:3[${PYTHON_MULTI_USEDEP}]
108 + ')
109 +
110 + gnome-base/librsvg:=
111 + >=media-libs/gsound-1.0
112 +
113 + >=media-libs/gstreamer-editing-services-${GST_VER}:1.0[introspection]
114 + >=media-libs/gst-plugins-base-${GST_VER}:1.0[introspection]
115 + >=media-libs/gst-plugins-bad-${GST_VER}:1.0
116 + >=media-plugins/gst-plugins-gtk-${GST_VER}:1.0
117 + >=media-libs/gst-plugins-good-${GST_VER}:1.0
118 + >=media-plugins/gst-plugins-libav-${GST_VER}:1.0
119 + >=media-plugins/gst-plugins-gdkpixbuf-${GST_VER}:1.0
120 +
121 + >=x11-libs/libnotify-0.7[introspection]
122 + x11-libs/libwnck:3[introspection]
123 + >=x11-libs/gtk+-3.20.0:3[introspection]
124 +
125 + v4l? ( >=media-plugins/gst-plugins-v4l2-${GST_VER}:1.0 )
126 +"
127 +DEPEND="${RDEPEND}"
128 +BDEPEND="
129 + app-text/yelp-tools
130 + dev-python/setuptools
131 + >=dev-util/intltool-0.35.5
132 + dev-util/itstool
133 + sys-devel/gettext
134 + virtual/pkgconfig
135 + test? (
136 + $(python_gen_cond_dep '
137 + dev-python/nose2[${PYTHON_MULTI_USEDEP}]
138 + ')
139 + )
140 +"
141 +
142 +PATCHES=(
143 + # Make tests optional, bug #594096
144 + # https://gitlab.gnome.org/GNOME/pitivi/issues/2303
145 + "${FILESDIR}"/${P}-optional-tests.patch
146 +)
147 +
148 +src_prepare() {
149 + default
150 + sed -e "s|dependency('python3'|dependency('python3-embed'|" -i meson.build
151 +}
152 +
153 +src_configure() {
154 + local emesonargs=(
155 + -Denable-tests=$(usex test true false)
156 + )
157 + meson_src_configure
158 +}
159 +
160 +src_compile() {
161 + meson_src_compile
162 +}
163 +
164 +src_test() {
165 + export PITIVI_TOP_LEVEL_DIR="${S}"
166 + virtx meson_src_test
167 +}
168 +
169 +src_install() {
170 + meson_src_install
171 + python_fix_shebang "${D}"
172 +}