diff options
author | Pierre Cazenave <pwcazenave at gmail {dot} com> | 2010-07-30 02:46:02 -0500 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2010-07-31 22:31:51 -0500 |
commit | e502945912c3ccc6d55a6819bc921cf5f47cc4fd (patch) | |
tree | 5c008c3bf671002bdedefa3f8a7fde59d88bb113 /graphics/ocropus/ocrodata-env.diff | |
parent | 43cc5518b42cbafb28111cfa607ce8a50e64bb6a (diff) | |
download | slackbuilds-e502945912c3ccc6d55a6819bc921cf5f47cc4fd.tar.gz |
graphics/ocropus: Added (document analysis and OCR system)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'graphics/ocropus/ocrodata-env.diff')
-rw-r--r-- | graphics/ocropus/ocrodata-env.diff | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/graphics/ocropus/ocrodata-env.diff b/graphics/ocropus/ocrodata-env.diff new file mode 100644 index 0000000000..04cfd5d9af --- /dev/null +++ b/graphics/ocropus/ocrodata-env.diff @@ -0,0 +1,15 @@ +Description: Respect the OCRODATA environment variable for all lua scripts. +Author: Jakub Wilk <jwilk@debian.org> + +Index: ocropus-0.3.1/ocroscript/ocrotoplevel.cc +=================================================================== +--- ocropus-0.3.1.orig/ocroscript/ocrotoplevel.cc 2009-11-26 18:47:54.000000000 +0100 ++++ ocropus-0.3.1/ocroscript/ocrotoplevel.cc 2009-11-26 18:47:54.000000000 +0100 +@@ -471,6 +471,7 @@ + lua_call(L, 0, 0); + + // handle OCRODATA environment variable as a directory ++ if(getenv("OCRODATA")) ocroscripts = getenv("OCRODATA"); + lua_pushstring(L, ocrodata); + lua_setglobal(L, "ocrodata"); + |