1 |
commit: 277a6184e0be9aeb291c3359ce4fdb78ef1bb6c6 |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 19 12:30:50 2021 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 19 12:31:04 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=277a6184 |
7 |
|
8 |
media-video/subtitleeditor: Apply Debian patchset |
9 |
|
10 |
This fixes some bugs like metainfo location and porting to enchant-2 |
11 |
|
12 |
Closes: https://bugs.gentoo.org/782103 |
13 |
Package-Manager: Portage-3.0.22, Repoman-3.0.3 |
14 |
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org> |
15 |
|
16 |
media-video/subtitleeditor/Manifest | 1 + |
17 |
.../subtitleeditor/subtitleeditor-0.54.0_p5.ebuild | 73 ++++++++++++++++++++++ |
18 |
2 files changed, 74 insertions(+) |
19 |
|
20 |
diff --git a/media-video/subtitleeditor/Manifest b/media-video/subtitleeditor/Manifest |
21 |
index d46ccd4e8c4..e7cb37193d2 100644 |
22 |
--- a/media-video/subtitleeditor/Manifest |
23 |
+++ b/media-video/subtitleeditor/Manifest |
24 |
@@ -1 +1,2 @@ |
25 |
DIST subtitleeditor-0.54.0.tar.gz 1783077 BLAKE2B a802124c9b81ad5fecc4914b6231e7efaf3326f231115f334fd53b79d8a851bf2f09fdccdee85c53b0cc828fe67c72e9924f47f0881d0438e563b18b1f77f00b SHA512 4458d579775a504b22f955c41d0e95ed722c1cb6bcf715ef493988a85397d5e0d4c3327e129f49b160d398dc73257026a92bbe5104c30d2004c16b7e12dd113c |
26 |
+DIST subtitleeditor_0.54.0-5.debian.tar.xz 9100 BLAKE2B 249048228aab601524bb1f6e222863d1d3f96e3be4a05e08196a164d0e4ed3ff4b662fbac5a468a546f871e314a99f68ed9132692a5be8997d8338810ab91808 SHA512 9e15c0f6d4ddc88650f6f7962b09175fddbae1c1ac295a83c33e29e1212f09a1d88711a4e1250c5f125d72ea02f4b77c3ca9f62594ee0010f0cf8d383fbe0832 |
27 |
|
28 |
diff --git a/media-video/subtitleeditor/subtitleeditor-0.54.0_p5.ebuild b/media-video/subtitleeditor/subtitleeditor-0.54.0_p5.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..5929fb7bc8c |
31 |
--- /dev/null |
32 |
+++ b/media-video/subtitleeditor/subtitleeditor-0.54.0_p5.ebuild |
33 |
@@ -0,0 +1,73 @@ |
34 |
+# Copyright 1999-2021 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+GNOME2_EAUTORECONF="yes" |
39 |
+GNOME2_LA_PUNT="yes" |
40 |
+ |
41 |
+inherit flag-o-matic gnome2 |
42 |
+ |
43 |
+DESCRIPTION="GTK+3 subtitle editing tool" |
44 |
+HOMEPAGE="https://kitone.github.io/subtitleeditor" |
45 |
+SRC_URI="https://github.com/kitone/${PN}/releases/download/${PV}/${P/_p*}.tar.gz |
46 |
+ mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV/_p*}-${PV/*_p}.debian.tar.xz" |
47 |
+ |
48 |
+LICENSE="GPL-3+" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~amd64 ~x86" |
51 |
+IUSE="debug nls" |
52 |
+# opengl would mix gtk+:2 and :3 which is not possible |
53 |
+ |
54 |
+RDEPEND=" |
55 |
+ >=app-text/enchant-2.2.0:2 |
56 |
+ app-text/iso-codes |
57 |
+ >=dev-cpp/cairomm-1.12:0 |
58 |
+ >=dev-cpp/glibmm-2.46:2 |
59 |
+ >=dev-cpp/gtkmm-3.18:3.0 |
60 |
+ >=dev-cpp/gstreamermm-1.0:1.0= |
61 |
+ >=dev-cpp/libxmlpp-2.40:2.6 |
62 |
+ dev-libs/glib:2 |
63 |
+ >=dev-libs/libsigc++-2.6:2 |
64 |
+ media-libs/gst-plugins-base:1.0[X,pango] |
65 |
+ media-libs/gst-plugins-good:1.0 |
66 |
+ media-libs/gstreamer:1.0 |
67 |
+ media-plugins/gst-plugins-meta:1.0 |
68 |
+ x11-libs/gtk+:3 |
69 |
+ nls? ( virtual/libintl ) |
70 |
+" |
71 |
+# opengl? ( |
72 |
+# >=dev-cpp/gtkglextmm-1.2.0-r2:1.0 |
73 |
+# virtual/opengl ) |
74 |
+# X needed for video output and pango needed for text overlay |
75 |
+DEPEND="${RDEPEND}" |
76 |
+BDEPEND=" |
77 |
+ >=dev-util/intltool-0.40 |
78 |
+ virtual/pkgconfig |
79 |
+" |
80 |
+ |
81 |
+S="${WORKDIR}/${P/_p*}" |
82 |
+ |
83 |
+PATCHES=( |
84 |
+ # https://github.com/kitone/subtitleeditor/issues/49 |
85 |
+ "${FILESDIR}"/${PN}-0.52.1-disable-nls-fix.patch |
86 |
+) |
87 |
+ |
88 |
+src_prepare() { |
89 |
+ # Debian patches |
90 |
+ for p in $(<"${WORKDIR}"/debian/patches/series) ; do |
91 |
+ eapply -p1 "${WORKDIR}/debian/patches/${p}" |
92 |
+ done |
93 |
+ |
94 |
+ gnome2_src_prepare |
95 |
+} |
96 |
+ |
97 |
+src_configure() { |
98 |
+ # Avoid using --enable-debug as it mocks with CXXFLAGS and LDFLAGS |
99 |
+ use debug && append-cxxflags -DDEBUG |
100 |
+ |
101 |
+ gnome2_src_configure \ |
102 |
+ --disable-debug \ |
103 |
+ --disable-gl \ |
104 |
+ $(use_enable nls) |
105 |
+# $(use_enable opengl gl) |
106 |
+} |