summary refs log tree commit diff
path: root/pkgs/applications/graphics/tesseract
diff options
context:
space:
mode:
authorFlorian Friesdorf <flo@chaoflow.net>2012-06-11 10:28:28 +0000
committerFlorian Friesdorf <flo@chaoflow.net>2012-06-11 10:28:28 +0000
commit892947cd93b985531fca01e076b799592b6440de (patch)
treed2a1d5c39fbd88638ca0092c0736d8ea6b42aba4 /pkgs/applications/graphics/tesseract
parent3133b579402f23a347e4c9aa39e6d31a9b1f1418 (diff)
downloadnixpkgs-892947cd93b985531fca01e076b799592b6440de.tar
nixpkgs-892947cd93b985531fca01e076b799592b6440de.tar.gz
nixpkgs-892947cd93b985531fca01e076b799592b6440de.tar.bz2
nixpkgs-892947cd93b985531fca01e076b799592b6440de.tar.lz
nixpkgs-892947cd93b985531fca01e076b799592b6440de.tar.xz
nixpkgs-892947cd93b985531fca01e076b799592b6440de.tar.zst
nixpkgs-892947cd93b985531fca01e076b799592b6440de.zip
tesseract-3.0.1
svn path=/nixpkgs/trunk/; revision=34453
Diffstat (limited to 'pkgs/applications/graphics/tesseract')
-rw-r--r--pkgs/applications/graphics/tesseract/default.nix17
1 files changed, 12 insertions, 5 deletions
diff --git a/pkgs/applications/graphics/tesseract/default.nix b/pkgs/applications/graphics/tesseract/default.nix
index 07a160a2e48..da38cce1442 100644
--- a/pkgs/applications/graphics/tesseract/default.nix
+++ b/pkgs/applications/graphics/tesseract/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, libtiff }:
+{ stdenv, fetchurl, autoconf, automake, libtool, leptonica, libpng, libtiff }:
 
 let
   f = lang : sha256 : let
@@ -18,14 +18,21 @@ let
 in
 
 stdenv.mkDerivation {
-  name = "tesseract-3.0.0";
+  name = "tesseract-3.0.1";
 
   src = fetchurl {
-    url = http://tesseract-ocr.googlecode.com/files/tesseract-3.00.tar.gz;
-    sha256 = "111r9hy1rcs2ch4kdi9dkzwch3xg38vv379sf3cjpkswkigx8clw";
+    url = http://tesseract-ocr.googlecode.com/files/tesseract-3.01.tar.gz;
+    sha256 = "c24b0bd278291bc93ab242f93841c1d8743689c943bd804afbc5b898dc0a1c9b";
   };
 
-  buildInputs = [ libtiff ];
+  buildInputs = [ autoconf automake libtool leptonica libpng libtiff ];
+
+  preConfigure = ''
+      ./autogen.sh
+      substituteInPlace "configure" \
+        --replace 'LIBLEPT_HEADERSDIR="/usr/local/include /usr/include"' \
+                  'LIBLEPT_HEADERSDIR=${leptonica}/include'
+  '';
 
   postInstall = extraLanguages;