aboutsummaryrefslogtreecommitdiff
path: root/graphics/ocropus/no_display.patch
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2012-09-24 16:47:40 +0200
committerRobby Workman <rworkman@slackbuilds.org>2012-09-24 22:53:33 -0500
commit082f2a17ce2dc138293231d5fa5c8e8ad7781460 (patch)
tree0ed71e2c84103355c3d56344d147c290a61e0892 /graphics/ocropus/no_display.patch
parentf1b19d905d62bcb5c02dc1d501b4ab10d5e1032d (diff)
graphics/ocropus: Updated for version 0.6_20120920.
Now a python only application Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'graphics/ocropus/no_display.patch')
-rw-r--r--graphics/ocropus/no_display.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/graphics/ocropus/no_display.patch b/graphics/ocropus/no_display.patch
new file mode 100644
index 000000000000..2fdae89fce85
--- /dev/null
+++ b/graphics/ocropus/no_display.patch
@@ -0,0 +1,15 @@
+See https://code.google.com/p/ocropus/issues/detail?id=365
+
+diff -Naur ocropus-20120920.orig/ocropy/setup.py ocropus-20120920/ocropy/setup.py
+--- ocropus-20120920.orig/ocropy/setup.py 2012-09-20 06:48:34.000000000 +0200
++++ ocropus-20120920/ocropy/setup.py 2012-09-20 11:16:24.784307573 +0200
+@@ -4,6 +4,9 @@
+ from distutils.core import setup, Extension, Command
+ from distutils.command.install_data import install_data
+
++import matplotlib
++matplotlib.use('Agg')
++
+ from ocrolib import default
+ modeldir = "models/"
+ modelfiles = default.installable