summaryrefslogtreecommitdiff
path: root/media-video/subtitleeditor
diff options
context:
space:
mode:
Diffstat (limited to 'media-video/subtitleeditor')
-rw-r--r--media-video/subtitleeditor/Manifest9
-rw-r--r--media-video/subtitleeditor/files/subtitleeditor-0.52.1-build-fix.patch55
-rw-r--r--media-video/subtitleeditor/files/subtitleeditor-0.52.1-disable-nls-fix.patch34
-rw-r--r--media-video/subtitleeditor/metadata.xml15
-rw-r--r--media-video/subtitleeditor/subtitleeditor-0.53.0.ebuild58
-rw-r--r--media-video/subtitleeditor/subtitleeditor-0.54.0.ebuild58
6 files changed, 229 insertions, 0 deletions
diff --git a/media-video/subtitleeditor/Manifest b/media-video/subtitleeditor/Manifest
new file mode 100644
index 000000000000..95332d209d76
--- /dev/null
+++ b/media-video/subtitleeditor/Manifest
@@ -0,0 +1,9 @@
+AUX subtitleeditor-0.52.1-build-fix.patch 2193 SHA256 dd5ac3b27f1068ea00a666c595bbe1ba4be81730079df600027e8b1949267b9c SHA512 424a5b6ab459d3e5b3363e9f58987b4e11e18258e7019c975967eef3b05f3c9525f34d8a29ad9077e0e16668a253c51487fab152b5951b702f77f6b81b1a0555 WHIRLPOOL fc1221678e44ec2b49f0402416f84e49d36c5ecffd46c9c80fe2aab17f867b8827d5f1f676ad8c3032edf66f866339c9316f5348053b7d98b7fabee37b452306
+AUX subtitleeditor-0.52.1-disable-nls-fix.patch 1080 SHA256 54c8592c328f03deca7e1a60f903f6f4e0d9b8ce10649c84c9489fb1f5a6b71f SHA512 7775e9527a5e1b7f2a469eb3ea5f3d5422797c4ca61f02b486578f60e5a118ab1d6479079cae35ed29324a1579ed3363ed77b18ceda1dad5b10f8def1a11b650 WHIRLPOOL 6103520de7be5f1a423816e61195fb506a21824468ed196dfde46ba210819e0d9bbc07384746c3f10d8c66ffc2629815ca20dd938184448ca451be956cf4e028
+DIST subtitleeditor-0.53.0.tar.gz 1778388 SHA256 8fac7430fb552438d075ef3809d4a0f04a764d4dd0723a3ef18b2b695fecf920 SHA512 8787831947785885befb50221869169eda73489851389e72f34edac7a9c2c59d05ba69e86d4d2d5b3a13b2678377ee2520c110ffa472b718884dd2e711603b8b WHIRLPOOL cfd7bfd2324fe10dadd6e8c7c60487072d15dee3c6f0a57358abee4e5f92c945ba95efb036516ecadc0beebf52380b835cb35ae8af389110597ab5305a979639
+DIST subtitleeditor-0.54.0.tar.gz 1783077 SHA256 aa9c539f3a0984deef257339e2b9f5c8728b8245113695cf6d42459f011aa2ab SHA512 4458d579775a504b22f955c41d0e95ed722c1cb6bcf715ef493988a85397d5e0d4c3327e129f49b160d398dc73257026a92bbe5104c30d2004c16b7e12dd113c WHIRLPOOL e67f2d94ec004e40855b440af3eafc7d78c859326b46a69c11fb633e650fdb3c0f44da9a9e3dadcf0a87ff598984d7cc1eabdf6fecb625b6357f4ec2dae4fb6d
+EBUILD subtitleeditor-0.53.0.ebuild 1387 SHA256 0235613f150a38c1169636a63d9ca8adbac7f2a2b0f8224204bba90b13093135 SHA512 99c258091145a9de25744e763e806f2b00a7a90162d897b1f90eb34dba9048731c9ff0fadd5f4d700e6b8d88121a2b0ce39a5f1a6c2ae8cb4a32d28aa9210269 WHIRLPOOL fa873aaf78e441cba66a3ebd4edd15c8428073fdeb8ad2a04c418513c4ef86b0e4197d7e7043f12dfadfbf1b5f6963c351732178fbb431846015002b48cb3d55
+EBUILD subtitleeditor-0.54.0.ebuild 1372 SHA256 9f5ee6481f9c2943fec3218caeb1d38477adbe84797982b178465959b5140d08 SHA512 9d1c084d5ad657299efb27558a0ebb06b455d7a08edb1fe580fab1db157f73e7b831821bbe3ad7c908d2bc939001cfa28bd534cd8c5492fe2315cfa40760f7eb WHIRLPOOL 82a0e5804854b61de664f423444447b020b7ee1a2f8c6e9f5bfa9a991250b987134706c059d9176c0d09e63d7abb529346fe4d904d3706bde7b7f55197e01069
+MISC ChangeLog 4817 SHA256 083fa542231eac275bf15db012226fa8f2f8dced4d83a7323c727a6173a98be2 SHA512 a5cd18c1de1f79f4ab73bbe256e66991be9ac7ee0022d08dcaa48d0bdec8e94bd6d7e103995d523f0e621e182b69a29004c5643b18976584f86ce2771bc2099d WHIRLPOOL 13ddd35da163c8dcce729a140c83743b05c7e22472e2a0c8e6499e1d9a7062bd2c59e6e753ca99e4200b53fd84146a8c1a311850eb19191fa31efaed6bae43f4
+MISC ChangeLog-2015 6226 SHA256 d946945af3541ab856d3f0ce7d61ef979358c855600ff29cf12f96e7cfcbac4f SHA512 0a7c4bc6a440d083bdc2c4320e1dda79ca1775ab6c81a1d143180c20fe1fcf8c03356f208dd6e22d1388896953ee62fb0f75c0118f01489f9ac2195a8c8ebffe WHIRLPOOL 6b9b73f49dafa1f57cfbd4e6f9e9df1ece2433ed7765394b5213c0ac552e2a5cf7bcb6120982fee213e9c69a4ad019b4a7056427fffc02b9bfc37f12d7647ad3
+MISC metadata.xml 673 SHA256 a4b978e59951227a2503ef0e95e4214f0686c1f98358de03dd512b050cf4d94a SHA512 8f1eedec13ae0cbce853aa0172c214c9f3a3b9515a029297db8a2c68013b375bb9c3a5cbe3dc2bec09c9a4cb40f836b610d1533d7b59a2b31175c57de401d4e9 WHIRLPOOL 38801318e4f6c8a54f823431fc59eccd515cc261c5bab4a0dee298490360cf5b1a0d01880a55cf93e0193c90ca2735031b8e698ec4efdaac35793d7f4703648e
diff --git a/media-video/subtitleeditor/files/subtitleeditor-0.52.1-build-fix.patch b/media-video/subtitleeditor/files/subtitleeditor-0.52.1-build-fix.patch
new file mode 100644
index 000000000000..9cce5d2d98f2
--- /dev/null
+++ b/media-video/subtitleeditor/files/subtitleeditor-0.52.1-build-fix.patch
@@ -0,0 +1,55 @@
+Fix build errors with gcc-4.9.3 -std=c++11 (after disabling -ansi)
+
+https://gna.org/bugs/?23714
+
+https://bugs.gentoo.org/show_bug.cgi?id=550764
+https://bugs.gentoo.org/show_bug.cgi?id=566328
+
+--- a/src/subtitleview.cc 2015-12-24 01:52:29.322622155 +0100
++++ b/src/subtitleview.cc 2015-12-24 01:52:44.210491213 +0100
+@@ -1363,7 +1363,7 @@
+ {
+ int num;
+ std::istringstream ss(event->string);
+- bool is_num = ss >> num != 0;
++ bool is_num = static_cast<bool>(ss >> num) != 0;
+ // Update only if it's different
+ if(is_num != get_enable_search())
+ set_enable_search(is_num);
+--- a/src/utility.h 2015-12-24 01:49:42.205104858 +0100
++++ b/src/utility.h 2015-12-24 01:50:23.387737071 +0100
+@@ -91,7 +91,7 @@
+ std::istringstream s(src);
+ // return s >> dest != 0;
+
+- bool state = s >> dest != 0;
++ bool state = static_cast<bool>(s >> dest) != 0;
+
+ if(!state)
+ se_debug_message(SE_DEBUG_UTILITY, "string:'%s'failed.", src.c_str());
+--- a/plugins/actions/dialoguize/dialoguize.cc 2015-12-24 01:06:24.125428454 +0100
++++ b/plugins/actions/dialoguize/dialoguize.cc 2015-12-24 01:06:42.630277006 +0100
+@@ -23,7 +23,7 @@
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+-#include <auto_ptr.h>
++#include <memory>
+ #include "extension/action.h"
+ #include "i18n.h"
+ #include "debug.h"
+--- a/plugins/actions/documentmanagement/documentmanagement.old 2015-12-24 01:17:13.914730337 +0100
++++ b/plugins/actions/documentmanagement/documentmanagement.cc 2015-12-24 01:17:23.339640430 +0100
+@@ -178,9 +178,9 @@
+
+ ui_id = ui->new_merge_id();
+
+- #define ADD_UI(name) ui->add_ui(ui_id, "/menubar/menu-file/"name, name, name);
+- #define ADD_OPEN_UI(name) ui->add_ui(ui_id, "/menubar/menu-file/menu-open/"name, name, name);
+- #define ADD_SAVE_UI(name) ui->add_ui(ui_id, "/menubar/menu-file/menu-save/"name, name, name);
++ #define ADD_UI(name) ui->add_ui(ui_id, "/menubar/menu-file/" name, name, name);
++ #define ADD_OPEN_UI(name) ui->add_ui(ui_id, "/menubar/menu-file/menu-open/" name, name, name);
++ #define ADD_SAVE_UI(name) ui->add_ui(ui_id, "/menubar/menu-file/menu-save/" name, name, name);
+
+ ADD_UI("new-document");
+ ADD_OPEN_UI("open-document");
diff --git a/media-video/subtitleeditor/files/subtitleeditor-0.52.1-disable-nls-fix.patch b/media-video/subtitleeditor/files/subtitleeditor-0.52.1-disable-nls-fix.patch
new file mode 100644
index 000000000000..08e1558e06b8
--- /dev/null
+++ b/media-video/subtitleeditor/files/subtitleeditor-0.52.1-disable-nls-fix.patch
@@ -0,0 +1,34 @@
+From 0f8700f022c9917336919b35a93883a660144516 Mon Sep 17 00:00:00 2001
+From: Gilles Dartiguelongue <eva@gentoo.org>
+Date: Mon, 17 Oct 2016 00:07:59 +0200
+Subject: [PATCH] Fix compilation with --disable-nls
+
+---
+ src/i18n.h | 11 +++++++++++
+ 1 file changed, 11 insertions(+)
+
+diff --git a/src/i18n.h b/src/i18n.h
+index c8134a7..efce469 100644
+--- a/src/i18n.h
++++ b/src/i18n.h
+@@ -31,6 +31,17 @@
+ #include <libintl.h>
+ #include <glib/gi18n.h>
+ #else /* NLS is disabled */
++ // In certain environments, some standard headers like <iomanip>
++ // and <locale> include libintl.h. If libintl.h is included after
++ // gettext macros below are defined, it causes a syntax error
++ // at the declaration of the gettext function in libintl.h.
++ //
++ // Fix this by including such a header before defining the macro.
++ //
++ // Note that libintl.h cannot be included directly since in the
++ // ENABLE_NLS=0 case it cannot be assumed that gettext is installed.
++ #include <locale>
++
+ #define _(String) (String)
+ #define N_(String) (String)
+ #define textdomain(String) (String)
+--
+2.10.0
+
diff --git a/media-video/subtitleeditor/metadata.xml b/media-video/subtitleeditor/metadata.xml
new file mode 100644
index 000000000000..51a0e86f0f0e
--- /dev/null
+++ b/media-video/subtitleeditor/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>eva@gentoo.org</email>
+ <name>Gilles Dartiguelongue</name>
+</maintainer>
+<maintainer type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+</maintainer>
+<longdescription lang="en">
+Subtitle Editor is a GTK+3 tool to edit subtitles for GNU/Linux/*BSD. It can be used for new subtitles or as a tool to transform, edit, correct and refine existing subtitle. This program also shows sound waves, which makes it easier to synchronise subtitles to voices.
+</longdescription>
+</pkgmetadata>
diff --git a/media-video/subtitleeditor/subtitleeditor-0.53.0.ebuild b/media-video/subtitleeditor/subtitleeditor-0.53.0.ebuild
new file mode 100644
index 000000000000..d0934d7c5c9f
--- /dev/null
+++ b/media-video/subtitleeditor/subtitleeditor-0.53.0.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+GNOME2_LA_PUNT="yes"
+
+inherit flag-o-matic gnome2 versionator
+
+DESCRIPTION="GTK+3 subtitle editing tool"
+HOMEPAGE="http://home.gna.org/subtitleeditor/"
+SRC_URI="http://download.gna.org/${PN}/$(get_version_component_range 1-2)/${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="debug nls"
+# opengl would mix gtk+:2 and :3 which is not possible
+
+RDEPEND="
+ >=app-text/enchant-1.4
+ app-text/iso-codes
+ >=dev-cpp/cairomm-1.12
+ >=dev-cpp/glibmm-2.46:2
+ >=dev-cpp/gtkmm-3.18:3.0
+ >=dev-cpp/gstreamermm-1.0:1.0
+ >=dev-cpp/libxmlpp-2.40:2.6
+ dev-libs/glib:2
+ >=dev-libs/libsigc++-2.6:2
+ media-libs/gst-plugins-base:1.0[X,pango]
+ media-libs/gst-plugins-good:1.0
+ media-libs/gstreamer:1.0
+ media-plugins/gst-plugins-meta:1.0
+ x11-libs/gtk+:3
+ nls? ( virtual/libintl )
+"
+# opengl? (
+# >=dev-cpp/gtkglextmm-1.2.0-r2:1.0
+# virtual/opengl )
+# X needed for video output and pango needed for text overlay
+DEPEND="${RDEPEND}
+ >=dev-util/intltool-0.40
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.52.1-disable-nls-fix.patch
+)
+
+src_configure() {
+ # Avoid using --enable-debug as it mocks with CXXFLAGS and LDFLAGS
+ use debug && append-cxxflags -DDEBUG
+
+ gnome2_src_configure \
+ --disable-debug \
+ --disable-gl \
+ $(use_enable nls)
+# $(use_enable opengl gl)
+}
diff --git a/media-video/subtitleeditor/subtitleeditor-0.54.0.ebuild b/media-video/subtitleeditor/subtitleeditor-0.54.0.ebuild
new file mode 100644
index 000000000000..5c53d4f63b02
--- /dev/null
+++ b/media-video/subtitleeditor/subtitleeditor-0.54.0.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+GNOME2_LA_PUNT="yes"
+
+inherit flag-o-matic gnome2
+
+DESCRIPTION="GTK+3 subtitle editing tool"
+HOMEPAGE="https://kitone.github.io/subtitleeditor"
+SRC_URI="https://github.com/kitone/${PN}/releases/download/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug nls"
+# opengl would mix gtk+:2 and :3 which is not possible
+
+RDEPEND="
+ >=app-text/enchant-1.4
+ app-text/iso-codes
+ >=dev-cpp/cairomm-1.12
+ >=dev-cpp/glibmm-2.46:2
+ >=dev-cpp/gtkmm-3.18:3.0
+ >=dev-cpp/gstreamermm-1.0:1.0
+ >=dev-cpp/libxmlpp-2.40:2.6
+ dev-libs/glib:2
+ >=dev-libs/libsigc++-2.6:2
+ media-libs/gst-plugins-base:1.0[X,pango]
+ media-libs/gst-plugins-good:1.0
+ media-libs/gstreamer:1.0
+ media-plugins/gst-plugins-meta:1.0
+ x11-libs/gtk+:3
+ nls? ( virtual/libintl )
+"
+# opengl? (
+# >=dev-cpp/gtkglextmm-1.2.0-r2:1.0
+# virtual/opengl )
+# X needed for video output and pango needed for text overlay
+DEPEND="${RDEPEND}
+ >=dev-util/intltool-0.40
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.52.1-disable-nls-fix.patch
+)
+
+src_configure() {
+ # Avoid using --enable-debug as it mocks with CXXFLAGS and LDFLAGS
+ use debug && append-cxxflags -DDEBUG
+
+ gnome2_src_configure \
+ --disable-debug \
+ --disable-gl \
+ $(use_enable nls)
+# $(use_enable opengl gl)
+}