From 74bf9f4339f8cb88562edad24c0975bae9c52307 Mon Sep 17 00:00:00 2001 From: newbluemoon Date: Mon, 16 Oct 2017 21:11:08 +0200 Subject: [PATCH] ogmrip: fix subtitle ocr using tesseract-ocr + fix xlint warning --- srcpkgs/ogmrip/patches/tesseract.patch | 20 ++++++++++++++++++++ srcpkgs/ogmrip/template | 4 ++-- 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/ogmrip/patches/tesseract.patch diff --git a/srcpkgs/ogmrip/patches/tesseract.patch b/srcpkgs/ogmrip/patches/tesseract.patch new file mode 100644 index 00000000000..228679bfa0b --- /dev/null +++ b/srcpkgs/ogmrip/patches/tesseract.patch @@ -0,0 +1,20 @@ +--- libogmrip/ogmrip-srt.c.orig 2015-01-10 14:39:43.000000000 +0100 ++++ libogmrip/ogmrip-srt.c 2017-10-16 21:00:19.921665865 +0200 +@@ -228,7 +228,7 @@ + g_return_val_if_fail (input != NULL, NULL); + + argv = g_ptr_array_new (); +- g_ptr_array_add (argv, g_strdup ("tesseract")); ++ g_ptr_array_add (argv, g_strdup ("tesseract-ocr")); + g_ptr_array_add (argv, g_strdup (input)); + g_ptr_array_add (argv, g_strdup (input)); + +@@ -555,7 +555,7 @@ + } + + #ifdef HAVE_TESSERACT_SUPPORT +- fullname = g_find_program_in_path ("tesseract"); ++ fullname = g_find_program_in_path ("tesseract-ocr"); + use_tesseract = fullname != NULL; + g_free (fullname); + diff --git a/srcpkgs/ogmrip/template b/srcpkgs/ogmrip/template index 7844e6f624e..4deab88d3a9 100644 --- a/srcpkgs/ogmrip/template +++ b/srcpkgs/ogmrip/template @@ -1,8 +1,8 @@ # Template file for 'ogmrip' pkgname=ogmrip version=1.0.1 -revision=1 -short_desc="Application and ripping and encoding DVD into AVI, OGM, MP4, or Matroska" +revision=2 +short_desc="Application to rip and encode DVDs into AVI, OGM, MP4, or Matroska" maintainer="Martin Riese " license="LGPL-2.1" homepage="http://ogmrip.sourceforge.net/en/index.html"