gnu: tesseract-ocr: Update to 3.04.01.
* gnu/packages/ocr.scm (tesseract-ocr): Update to 3.04.01. [source]: Download from Github, add 'file-name' field, remove snippet. [native-inputs]: Remove autoconf, automake, libtool. [propagated-inputs]: Move leptonica ... [inputs]: ... to here. [arguments]: Remove 'autogen phase. [home-page]: Move program's home-page to Github.
This commit is contained in:
parent
a9c64810cd
commit
427dda54f2
|
@ -1,5 +1,6 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2013 Ludovic Courtès <ludo@gnu.org>
|
;;; Copyright © 2013 Ludovic Courtès <ludo@gnu.org>
|
||||||
|
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -21,10 +22,8 @@ (define-module (gnu packages ocr)
|
||||||
#:use-module (guix packages)
|
#:use-module (guix packages)
|
||||||
#:use-module (guix download)
|
#:use-module (guix download)
|
||||||
#:use-module (guix build-system gnu)
|
#:use-module (guix build-system gnu)
|
||||||
#:use-module (gnu packages autotools)
|
|
||||||
#:use-module (gnu packages compression)
|
#:use-module (gnu packages compression)
|
||||||
#:use-module (gnu packages image)
|
#:use-module (gnu packages image))
|
||||||
#:use-module (gnu packages pkg-config))
|
|
||||||
|
|
||||||
(define-public ocrad
|
(define-public ocrad
|
||||||
(package
|
(package
|
||||||
|
@ -50,39 +49,24 @@ (define-public ocrad
|
||||||
(define-public tesseract-ocr
|
(define-public tesseract-ocr
|
||||||
(package
|
(package
|
||||||
(name "tesseract-ocr")
|
(name "tesseract-ocr")
|
||||||
(version "3.02.02")
|
(version "3.04.01")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append
|
(uri (string-append
|
||||||
"https://tesseract-ocr.googlecode.com/files/tesseract-ocr-"
|
"https://github.com/tesseract-ocr/tesseract/archive/"
|
||||||
version ".tar.gz"))
|
version ".tar.gz"))
|
||||||
|
(file-name (string-append name "-" version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "0g81m9y4iydp7kgr56mlkvjdwpp3mb01q385yhdnyvra7z5kkk96"))
|
(base32 "0snwd8as5i8vx7zkimpd2yg898jl96zf90r65a9w615f2hdkxxjp"))))
|
||||||
(modules '((guix build utils)))
|
|
||||||
;; Leptonica added a pkg-config file in the meanwhile.
|
|
||||||
(snippet
|
|
||||||
'(substitute* "tesseract.pc.in"
|
|
||||||
(("^# Requires: lept ## .*")
|
|
||||||
"Requires: lept\n")))))
|
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(native-inputs
|
(inputs
|
||||||
`(("autoconf" ,autoconf)
|
|
||||||
("automake" ,automake)
|
|
||||||
("libtool" ,libtool)))
|
|
||||||
(propagated-inputs
|
|
||||||
`(("leptonica" ,leptonica)))
|
`(("leptonica" ,leptonica)))
|
||||||
(arguments
|
(arguments
|
||||||
'(#:phases
|
'(#:configure-flags
|
||||||
(modify-phases %standard-phases
|
|
||||||
(add-after
|
|
||||||
'unpack 'autogen
|
|
||||||
(lambda _
|
|
||||||
(zero? (system* "sh" "autogen.sh")))))
|
|
||||||
#:configure-flags
|
|
||||||
(let ((leptonica (assoc-ref %build-inputs "leptonica")))
|
(let ((leptonica (assoc-ref %build-inputs "leptonica")))
|
||||||
(list (string-append "LIBLEPT_HEADERSDIR=" leptonica "/include")))))
|
(list (string-append "LIBLEPT_HEADERSDIR=" leptonica "/include")))))
|
||||||
(home-page "https://code.google.com/p/tesseract-ocr/")
|
(home-page "https://github.com/tesseract-ocr")
|
||||||
(synopsis "Optical character recognition engine")
|
(synopsis "Optical character recognition engine")
|
||||||
(description
|
(description
|
||||||
"Tesseract is an optical character recognition (OCR) engine with very
|
"Tesseract is an optical character recognition (OCR) engine with very
|
||||||
|
|
Loading…
Reference in a new issue