1 |
commit: 9debdf067fc58ecac4977b619dbd5a28515caf5c |
2 |
Author: Thomas Raschbacher <lordvan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 10 10:04:46 2021 +0000 |
4 |
Commit: Thomas Raschbacher <lordvan <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 10 10:05:34 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9debdf06 |
7 |
|
8 |
media-video/kino: patching .desktop file |
9 |
|
10 |
Closes: https://bugs.gentoo.org/751706 |
11 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
12 |
Signed-off-by: Thomas Raschbacher <lordvan <AT> gentoo.org> |
13 |
|
14 |
media-video/kino/files/kino-1.3.4-desktop.patch | 14 ++++ |
15 |
media-video/kino/kino-1.3.4-r2.ebuild | 104 ++++++++++++++++++++++++ |
16 |
2 files changed, 118 insertions(+) |
17 |
|
18 |
diff --git a/media-video/kino/files/kino-1.3.4-desktop.patch b/media-video/kino/files/kino-1.3.4-desktop.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..03267e35b48 |
21 |
--- /dev/null |
22 |
+++ b/media-video/kino/files/kino-1.3.4-desktop.patch |
23 |
@@ -0,0 +1,14 @@ |
24 |
+--- kino-1.3.4/Kino.desktop_orig 2021-04-10 11:55:07.696950138 +0200 |
25 |
++++ kino-1.3.4/Kino.desktop 2021-04-10 11:55:19.621863615 +0200 |
26 |
+@@ -41,9 +41,9 @@ |
27 |
+ Encoding=UTF-8 |
28 |
+ TryExec=kino |
29 |
+ Exec=kino %F |
30 |
+-Icon=kino.png |
31 |
++Icon=kino |
32 |
+ Terminal=false |
33 |
+ StartupNotify=true |
34 |
+ Type=Application |
35 |
+-Categories=Application;AudioVideo;AudioVideoEditing; |
36 |
++Categories=AudioVideo;AudioVideoEditing; |
37 |
+ MimeType=video/dv;application/smil |
38 |
|
39 |
diff --git a/media-video/kino/kino-1.3.4-r2.ebuild b/media-video/kino/kino-1.3.4-r2.ebuild |
40 |
new file mode 100644 |
41 |
index 00000000000..da4e9f6edd0 |
42 |
--- /dev/null |
43 |
+++ b/media-video/kino/kino-1.3.4-r2.ebuild |
44 |
@@ -0,0 +1,104 @@ |
45 |
+# Copyright 1999-2021 Gentoo Authors |
46 |
+# Distributed under the terms of the GNU General Public License v2 |
47 |
+ |
48 |
+EAPI=6 |
49 |
+inherit autotools ltprune udev xdg |
50 |
+ |
51 |
+DESCRIPTION="Kino is a non-linear DV editor for GNU/Linux" |
52 |
+HOMEPAGE="http://www.kinodv.org/" |
53 |
+SRC_URI="mirror://sourceforge/kino/${P}.tar.gz" |
54 |
+ |
55 |
+LICENSE="GPL-2" |
56 |
+SLOT="0" |
57 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
58 |
+IUSE="alsa dvdr gpac lame quicktime sox vorbis" |
59 |
+ |
60 |
+# Optional dependency on cinelerra-cvs (as a replacement for libquicktime) |
61 |
+# dropped because kino may run with it but won't build anymore. |
62 |
+ |
63 |
+CDEPEND=" |
64 |
+ >=x11-libs/gtk+-2.6.0:2 |
65 |
+ >=gnome-base/libglade-2.5.0 |
66 |
+ >=dev-libs/glib-2:2 |
67 |
+ x11-libs/libXv |
68 |
+ dev-libs/libxml2:2 |
69 |
+ media-libs/audiofile |
70 |
+ >=sys-libs/libraw1394-1.0.0 |
71 |
+ >=sys-libs/libavc1394-0.4.1 |
72 |
+ >=media-libs/libdv-0.103 |
73 |
+ media-libs/libsamplerate |
74 |
+ media-libs/libiec61883 |
75 |
+ media-libs/libv4l:0= |
76 |
+ alsa? ( >=media-libs/alsa-lib-1.0.9 ) |
77 |
+ >=media-video/ffmpeg-3:0= |
78 |
+ quicktime? ( >=media-libs/libquicktime-0.9.5 ) |
79 |
+" |
80 |
+DEPEND="${CDEPEND} |
81 |
+ dev-util/intltool |
82 |
+" |
83 |
+RDEPEND="${CDEPEND} |
84 |
+ media-video/mjpegtools |
85 |
+ media-sound/rawrec |
86 |
+ dvdr? ( media-video/dvdauthor |
87 |
+ app-cdr/dvd+rw-tools ) |
88 |
+ gpac? ( media-video/gpac ) |
89 |
+ lame? ( media-sound/lame ) |
90 |
+ sox? ( media-sound/sox ) |
91 |
+ vorbis? ( media-sound/vorbis-tools ) |
92 |
+" |
93 |
+ |
94 |
+src_prepare() { |
95 |
+ default |
96 |
+ |
97 |
+ # Deactivating automagic alsa configuration, bug #134725 |
98 |
+ if ! use alsa ; then |
99 |
+ sed -i -e "s:HAVE_ALSA 1:HAVE_ALSA 0:" configure || die |
100 |
+ fi |
101 |
+ |
102 |
+ # Fix bug #169590 |
103 |
+ sed -i \ |
104 |
+ -e '/\$(LIBQUICKTIME_LIBS) \\/d' \ |
105 |
+ -e '/^[[:space:]]*\$(SRC_LIBS)/ a\ |
106 |
+ \$(LIBQUICKTIME_LIBS) \\' \ |
107 |
+ src/Makefile.in || die |
108 |
+ |
109 |
+ # Fix test failure discovered in bug #193947 |
110 |
+ sed -i -e '$a\ |
111 |
+\ |
112 |
+ffmpeg/libavcodec/ps2/idct_mmi.c\ |
113 |
+ffmpeg/libavcodec/sparc/dsputil_vis.c\ |
114 |
+ffmpeg/libavcodec/sparc/vis.h\ |
115 |
+ffmpeg/libavutil/bswap.h\ |
116 |
+ffmpeg/libswscale/yuv2rgb_template.c\ |
117 |
+src/export.h\ |
118 |
+src/message.cc\ |
119 |
+src/page_bttv.cc' po/POTFILES.in || die |
120 |
+ |
121 |
+ sed -i -e 's:^#include <quicktime.h>:#include <lqt/quicktime.h>:' src/filehandler.h || die |
122 |
+ eapply "${FILESDIR}/${P}-v4l1.patch" |
123 |
+ eapply "${FILESDIR}/${P}-libav-0.7.patch" |
124 |
+ eapply "${FILESDIR}/${P}-libav-0.8.patch" |
125 |
+ eapply "${FILESDIR}/${P}-libavcodec-pkg-config.patch" |
126 |
+ eapply "${FILESDIR}/${P}-ffmpeg3.patch" |
127 |
+ eapply "${FILESDIR}/${P}-ffmpeg4.patch" |
128 |
+ eapply "${FILESDIR}/${P}-desktop.patch" |
129 |
+ |
130 |
+ mv configure.in configure.ac || die |
131 |
+ eautoreconf |
132 |
+} |
133 |
+ |
134 |
+src_configure() { |
135 |
+ econf \ |
136 |
+ --disable-local-ffmpeg \ |
137 |
+ $(use_enable quicktime) \ |
138 |
+ $(use_with sparc dv1394) \ |
139 |
+ --with-udev-rules-dir="$(get_udevdir)"/rules.d \ |
140 |
+ CPPFLAGS="-I${ROOT}usr/include/libavcodec -I${ROOT}usr/include/libavformat -I${ROOT}usr/include/libswscale" |
141 |
+} |
142 |
+ |
143 |
+src_install() { |
144 |
+ default |
145 |
+ mv "${ED}/$(get_udevdir)"/rules.d/{,99-}kino.rules |
146 |
+ fowners root:root -R /usr/share/kino/help #177378 |
147 |
+ prune_libtool_files --all #385361 |
148 |
+} |