aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Bernardo <samuelbernardo.mail@gmail.com>2019-03-10 15:44:33 +0000
committerSamuel Bernardo <samuelbernardo.mail@gmail.com>2019-03-10 15:44:33 +0000
commitd2f58b5f3f89054be8d7d479eb726e6a52d3067c (patch)
treeab247053fb23a1fb5ede1024c9cdf289f10628ad /media-video
parentupdate zoom (diff)
downloadssnb-d2f58b5f3f89054be8d7d479eb726e6a52d3067c.tar.gz
ssnb-d2f58b5f3f89054be8d7d479eb726e6a52d3067c.tar.bz2
ssnb-d2f58b5f3f89054be8d7d479eb726e6a52d3067c.zip
add pitivi package patched as instructed in bug report https://bugs.gentoo.org/659332
Signed-off-by: Samuel Bernardo <samuelbernardo.mail@gmail.com>
Diffstat (limited to 'media-video')
-rw-r--r--media-video/pitivi/Manifest5
-rw-r--r--media-video/pitivi/files/pitivi-0.98.1-fix-pycairo.patch12
-rw-r--r--media-video/pitivi/files/pitivi-0.98.1-optional-tests.patch23
-rw-r--r--media-video/pitivi/metadata.xml12
-rw-r--r--media-video/pitivi/pitivi-0.98.1-r1.ebuild96
5 files changed, 148 insertions, 0 deletions
diff --git a/media-video/pitivi/Manifest b/media-video/pitivi/Manifest
new file mode 100644
index 0000000..f6a211a
--- /dev/null
+++ b/media-video/pitivi/Manifest
@@ -0,0 +1,5 @@
+AUX pitivi-0.98.1-fix-pycairo.patch 335 BLAKE2B f8ff9d8dbe38cb0678d364084726eadcb56261e80b32e4d200655bb7550fa0a274acdb4e34c5534035535392c08b9f6f6d0833be8ee5499b199698cffbc116e2 SHA512 052076bfd47171567c79ad309e9ad44f9672834d00823b905c1ae0a03c24921fd33669bb33f77b7351e57f9501ce07508f4ea5ca79fba97a2f236c7b63da6048
+AUX pitivi-0.98.1-optional-tests.patch 742 BLAKE2B c85f9002504f9314ae4a251d3ecbb8c2e4e70cb217e9328465015f2c3e06436d50a327c91cd5b686a2a765ceb46ec7fc0dfab998bfa96d985cf4855a4cd14919 SHA512 fce5ae7ac4fdd4c340b233529564e20da1dd965261cc2c79d3368ef83ac23931cdee6b492e59a628beaaa25362b81a604ec5bd7bb6270bdb72c15dabb83feac2
+DIST pitivi-0.98.1.tar.xz 5112280 BLAKE2B 9269163a5c964a6a2b3fd094262594a38bfff4dd052ea0f3673f2ac195f197eb9b888de673e62f884137d056fba2b853d11cf7300e2f81d71c6e49402350cc40 SHA512 b6530b1b5429c4379699d7492c31ec60ddc514c94a003fe240f7e390b6349093d2f4f72abb1edb4253bd938620c73dfb361abf21915d36ff3b75332e8612bcb3
+EBUILD pitivi-0.98.1-r1.ebuild 2669 BLAKE2B b3f854034541893628a5a8040c6a1c0c430ae1f8dc37f6a042392499421ca2cce29ae3abd883d511ffb8700ec9fe3829b3c6d04965b0ca44dcbe15cd2cba5f08 SHA512 525ef33f64a0bc06efc5857c4d1bd5695ac873a090da95cb1a3ee5532acc3aa8f5781d75c687b33df02f4f1e0ef8c1ca2a2dae349ae92b36152f6a18a70d57f6
+MISC metadata.xml 379 BLAKE2B a4f21a8cd6e5f4b09d1a89e426610108ab92ba52ef432d1780d100e76e43dda198cee09f105aec83994d4d1fa701be6c33a5981253b6c38b8ec888da08b5975a SHA512 30023299fba3c7c3743e24223d36366e7b59b01540a874ff432b8431ab29b240fdcd4ac4066b228af5421b009cfe4f67fdb69f7d1030c0fa409a4d545ffd43d1
diff --git a/media-video/pitivi/files/pitivi-0.98.1-fix-pycairo.patch b/media-video/pitivi/files/pitivi-0.98.1-fix-pycairo.patch
new file mode 100644
index 0000000..ff14f15
--- /dev/null
+++ b/media-video/pitivi/files/pitivi-0.98.1-fix-pycairo.patch
@@ -0,0 +1,12 @@
+Fix compilation with pycairo 1.17.x
+
+--- a/pitivi/coptimizations/renderer.c 2017-04-29 11:33:23.000000000 +0200
++++ b/pitivi/coptimizations/renderer.c 2019-03-09 14:34:05.868654440 +0100
+@@ -4,7 +4,6 @@
+ #include <py3cairo.h>
+ #include <gst/gst.h>
+
+-static Pycairo_CAPI_t *Pycairo_CAPI;
+ static GObjectClass * gobject_class;
+
+ /*
diff --git a/media-video/pitivi/files/pitivi-0.98.1-optional-tests.patch b/media-video/pitivi/files/pitivi-0.98.1-optional-tests.patch
new file mode 100644
index 0000000..e5f55ff
--- /dev/null
+++ b/media-video/pitivi/files/pitivi-0.98.1-optional-tests.patch
@@ -0,0 +1,23 @@
+Make tests optional
+
+--- a/meson_options.txt 2016-09-19 23:35:54.944511834 +0200
++++ b/meson_options.txt 2016-09-19 23:36:10.693485976 +0200
+@@ -1,2 +1,3 @@
+ option('enable-xunit', type : 'boolean', value : false)
+ option('disable-help', type : 'boolean', value : false)
++option('enable-tests', type : 'boolean', value : false)
+--- a/meson.build 2017-09-03 22:52:39.681974053 +0200
++++ b/meson.build 2017-09-03 22:53:29.934556188 +0200
+@@ -71,8 +71,10 @@
+ if not get_option('disable-help')
+ subdir('help')
+ endif
+-subdir('tests')
+-subdir('tests/validate-tests')
++if get_option('enable-tests')
++ subdir('tests')
++ subdir('tests/validate-tests')
++endif
+
+ archiver = find_program('git-archive-all', required : false)
+ if archiver.found()
diff --git a/media-video/pitivi/metadata.xml b/media-video/pitivi/metadata.xml
new file mode 100644
index 0000000..61fafb0
--- /dev/null
+++ b/media-video/pitivi/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+ </maintainer>
+<maintainer type="project">
+ <email>gstreamer@gentoo.org</email>
+ <name>GStreamer package maintainers</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/media-video/pitivi/pitivi-0.98.1-r1.ebuild b/media-video/pitivi/pitivi-0.98.1-r1.ebuild
new file mode 100644
index 0000000..9850fd1
--- /dev/null
+++ b/media-video/pitivi/pitivi-0.98.1-r1.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python{3_4,3_5,3_6} )
+PYTHON_REQ_USE="sqlite"
+
+inherit gnome.org meson python-single-r1 virtualx
+
+DESCRIPTION="A non-linear video editor using the GStreamer multimedia framework"
+HOMEPAGE="http://www.pitivi.org"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="v4l test"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+# XXX: recommends gst-plugins-libav and frei0r-plugins
+
+# Do not forget to check pitivi/check.py for dependencies!!!
+# pycanberra, libav, libnotify and liwnck are optional
+GST_VER="1.10.2"
+
+COMMON_DEPEND="
+ ${PYTHON_DEPS}
+ >=dev-python/pycairo-1.10[${PYTHON_USEDEP}]
+ >=x11-libs/cairo-1.10
+
+ >=media-libs/gstreamer-${GST_VER}:1.0[introspection]
+ >=media-plugins/gst-transcoder-1.8.2-r1
+"
+RDEPEND="${COMMON_DEPEND}
+ >=dev-libs/glib-2.30.0:2
+
+ >=dev-libs/gobject-introspection-1.34:=
+ dev-python/dbus-python[${PYTHON_USEDEP}]
+ >=dev-python/gst-python-1.4:1.0[${PYTHON_USEDEP}]
+ dev-python/matplotlib[${PYTHON_USEDEP}]
+ dev-python/numpy[${PYTHON_USEDEP}]
+ dev-python/pycanberra[${PYTHON_USEDEP}]
+ >=dev-python/pygobject-3.8:3[${PYTHON_USEDEP}]
+
+ gnome-base/librsvg:=
+
+ >=media-libs/gstreamer-editing-services-${GST_VER}:1.0[introspection]
+ >=media-libs/gst-plugins-base-${GST_VER}:1.0[introspection]
+ >=media-libs/gst-plugins-bad-${GST_VER}:1.0[gtk]
+ >=media-libs/gst-plugins-good-${GST_VER}:1.0
+ >=media-plugins/gst-plugins-libav-${GST_VER}:1.0
+ >=media-plugins/gst-plugins-gdkpixbuf-${GST_VER}:1.0
+
+ x11-libs/libnotify[introspection]
+ x11-libs/libwnck:3[introspection]
+ >=x11-libs/gtk+-3.20.0:3[introspection]
+
+ v4l? ( >=media-plugins/gst-plugins-v4l2-${GST_VER}:1.0 )
+"
+DEPEND="${RDEPEND}
+ app-text/yelp-tools
+ dev-python/setuptools
+ >=dev-util/intltool-0.35.5
+ dev-util/itstool
+ sys-devel/gettext
+ virtual/pkgconfig
+ test? ( dev-python/nose2[${PYTHON_USEDEP}] )
+"
+
+PATCHES=(
+ # Make tests optional, bug #594096
+ "${FILESDIR}"/${P}-optional-tests.patch
+ # Fix PyCairo, bug #659332
+ "${FILESDIR}"/${P}-fix-pycairo.patch
+)
+
+src_configure() {
+ local emesonargs=(
+ -Denable-tests=$(usex test true false)
+ )
+ meson_src_configure
+}
+
+src_compile() {
+ meson_src_compile
+}
+
+src_test() {
+ export PITIVI_TOP_LEVEL_DIR="${S}"
+ virtx meson_src_test
+}
+
+src_install() {
+ meson_src_install
+ python_fix_shebang "${D}"
+} \ No newline at end of file