1 |
commit: 9439d75ba33f1d28da77fda458072ca54b5a33fd |
2 |
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat May 9 16:18:49 2020 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 9 16:20:34 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9439d75b |
7 |
|
8 |
media-video/pitivi: support py3.7, ensure working gst-transcoder |
9 |
|
10 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
11 |
Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org> |
12 |
|
13 |
media-video/pitivi/pitivi-0.999-r3.ebuild | 106 ++++++++++++++++++++++++++++++ |
14 |
1 file changed, 106 insertions(+) |
15 |
|
16 |
diff --git a/media-video/pitivi/pitivi-0.999-r3.ebuild b/media-video/pitivi/pitivi-0.999-r3.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..34bfee37a12 |
19 |
--- /dev/null |
20 |
+++ b/media-video/pitivi/pitivi-0.999-r3.ebuild |
21 |
@@ -0,0 +1,106 @@ |
22 |
+# Copyright 1999-2020 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+PYTHON_COMPAT=( python3_{6,7} ) |
27 |
+PYTHON_REQ_USE="sqlite" |
28 |
+ |
29 |
+inherit gnome.org meson python-single-r1 virtualx xdg |
30 |
+ |
31 |
+DESCRIPTION="A non-linear video editor using the GStreamer multimedia framework" |
32 |
+HOMEPAGE="http://www.pitivi.org" |
33 |
+ |
34 |
+LICENSE="LGPL-2.1" |
35 |
+SLOT="0" |
36 |
+KEYWORDS="~amd64 ~x86" |
37 |
+ |
38 |
+IUSE="v4l test" |
39 |
+RESTRICT="!test? ( test )" |
40 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
41 |
+ |
42 |
+# XXX: recommends gst-plugins-libav and frei0r-plugins |
43 |
+ |
44 |
+# Do not forget to check pitivi/check.py for dependencies!!! |
45 |
+# pycanberra, libav, libnotify and liwnck are optional |
46 |
+GST_VER="1.14.2" |
47 |
+ |
48 |
+COMMON_DEPEND=" |
49 |
+ ${PYTHON_DEPS} |
50 |
+ $(python_gen_cond_dep ' |
51 |
+ >=dev-python/pycairo-1.10[${PYTHON_MULTI_USEDEP}] |
52 |
+ ') |
53 |
+ >=x11-libs/cairo-1.10 |
54 |
+ |
55 |
+ >=media-libs/gstreamer-${GST_VER}:1.0[introspection] |
56 |
+ >=media-plugins/gst-transcoder-1.14.1 |
57 |
+" |
58 |
+RDEPEND="${COMMON_DEPEND} |
59 |
+ >=dev-libs/glib-2.30.0:2 |
60 |
+ |
61 |
+ >=dev-libs/gobject-introspection-1.34:= |
62 |
+ $(python_gen_cond_dep ' |
63 |
+ dev-python/dbus-python[${PYTHON_MULTI_USEDEP}] |
64 |
+ >=dev-python/gst-python-1.4:1.0[${PYTHON_MULTI_USEDEP}] |
65 |
+ dev-python/matplotlib[${PYTHON_MULTI_USEDEP}] |
66 |
+ dev-python/numpy[${PYTHON_MULTI_USEDEP}] |
67 |
+ >=dev-python/pygobject-3.8:3[${PYTHON_MULTI_USEDEP}] |
68 |
+ ') |
69 |
+ |
70 |
+ gnome-base/librsvg:= |
71 |
+ >=media-libs/gsound-1.0 |
72 |
+ |
73 |
+ >=media-libs/gstreamer-editing-services-${GST_VER}:1.0[introspection] |
74 |
+ >=media-libs/gst-plugins-base-${GST_VER}:1.0[introspection] |
75 |
+ >=media-libs/gst-plugins-bad-${GST_VER}:1.0 |
76 |
+ >=media-plugins/gst-plugins-gtk-${GST_VER}:1.0 |
77 |
+ >=media-libs/gst-plugins-good-${GST_VER}:1.0 |
78 |
+ >=media-plugins/gst-plugins-libav-${GST_VER}:1.0 |
79 |
+ >=media-plugins/gst-plugins-gdkpixbuf-${GST_VER}:1.0 |
80 |
+ |
81 |
+ >=x11-libs/libnotify-0.7[introspection] |
82 |
+ x11-libs/libwnck:3[introspection] |
83 |
+ >=x11-libs/gtk+-3.20.0:3[introspection] |
84 |
+ |
85 |
+ v4l? ( >=media-plugins/gst-plugins-v4l2-${GST_VER}:1.0 ) |
86 |
+" |
87 |
+DEPEND="${RDEPEND}" |
88 |
+BDEPEND=" |
89 |
+ app-text/yelp-tools |
90 |
+ dev-python/setuptools |
91 |
+ >=dev-util/intltool-0.35.5 |
92 |
+ dev-util/itstool |
93 |
+ sys-devel/gettext |
94 |
+ virtual/pkgconfig |
95 |
+ test? ( |
96 |
+ $(python_gen_cond_dep ' |
97 |
+ dev-python/nose2[${PYTHON_MULTI_USEDEP}] |
98 |
+ ') |
99 |
+ ) |
100 |
+" |
101 |
+ |
102 |
+PATCHES=( |
103 |
+ # Make tests optional, bug #594096 |
104 |
+ # https://gitlab.gnome.org/GNOME/pitivi/issues/2303 |
105 |
+ "${FILESDIR}"/${P}-optional-tests.patch |
106 |
+) |
107 |
+ |
108 |
+src_configure() { |
109 |
+ local emesonargs=( |
110 |
+ -Denable-tests=$(usex test true false) |
111 |
+ ) |
112 |
+ meson_src_configure |
113 |
+} |
114 |
+ |
115 |
+src_compile() { |
116 |
+ meson_src_compile |
117 |
+} |
118 |
+ |
119 |
+src_test() { |
120 |
+ export PITIVI_TOP_LEVEL_DIR="${S}" |
121 |
+ virtx meson_src_test |
122 |
+} |
123 |
+ |
124 |
+src_install() { |
125 |
+ meson_src_install |
126 |
+ python_fix_shebang "${D}" |
127 |
+} |