tesseract: 3.05.00 -> 3.05.02
fix build with leptonica 1.83
This commit is contained in:
parent
3b77f6c31b
commit
c623309976
@ -3,15 +3,23 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "tesseract";
|
||||
version = "3.05.00";
|
||||
version = "3.05.02";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tesseract-ocr";
|
||||
repo = "tesseract";
|
||||
rev = version;
|
||||
hash = "sha256-YHj00gG/3SW0ILTiQwphiCxuP9OCDya27hyFQB27mYc=";
|
||||
hash = "sha256-28osuZnVwkJpNTYkU+5D5PI8xtViFzGCMScHzkS2H20=";
|
||||
};
|
||||
|
||||
# leptonica 1.83 made internal structures private. using internal headers isn't
|
||||
# great, but tesseract3's days are numbered anyway
|
||||
postPatch = ''
|
||||
for f in textord/devanagari_processing.cpp cube/cube_line_object.h cube/cube_line_segmenter.h cube/cube_utils.h ; do
|
||||
sed -i '/allheaders.h/a#include "pix_internal.h"' "$f"
|
||||
done
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
Loading…
Reference in New Issue
Block a user