From: Andy Tai <atai@atai.org>
To: Leo Famulari <leo@famulari.name>
Cc: 46393@debbugs.gnu.org
Subject: [bug#46393] [PATCH] gnu: Add ocrfeeder
Date: Tue, 23 Feb 2021 18:09:59 -0800 [thread overview]
Message-ID: <CAJsg1E_AiXG9H-6ucf6J-KJ_fAk=ufQhQUzO6o2U31XXb47eVA@mail.gmail.com> (raw)
In-Reply-To: <CAJsg1E_B8kXCXsw0Z7tpx+heTyYtCEgGaCufrB-q1cXnTGbzTQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 443 bytes --]
sent the wrong one; here is the correct one
On Tue, Feb 23, 2021 at 5:59 PM Andy Tai <atai@atai.org> wrote:
>
> as attached
>
> > On Tue, Feb 23, 2021 at 12:06 PM Leo Famulari <leo@famulari.name> wrote:
> > > Can you send a revised patch?
--
Andy Tai, atai@atai.org, Skype: licheng.tai, Line: andy_tai, WeChat: andytai1010
Year 2021 民國110年
自動的精神力是信仰與覺悟
自動的行為力是勞動與技能
[-- Attachment #2: 0001-gnu-Add-ocrfeeder.patch --]
[-- Type: text/x-patch, Size: 3987 bytes --]
From 2db7eaf5dc51df1f2546357a3a87f73bce089148 Mon Sep 17 00:00:00 2001
From: Andy Tai <atai@atai.org>
Date: Sat, 20 Feb 2021 22:58:07 -0800
Subject: [PATCH] gnu: Add ocrfeeder
* gnu/packages/gnome.scm (ocrfeeder): New variable
---
gnu/packages/gnome.scm | 67 +++++++++++++++++++++++++++++++++++++++++-
1 file changed, 66 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index b8634d712a..32cecb75b5 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -56,7 +56,7 @@
;;; Copyright © 2020 Arun Isaac <arunisaac@systemreboot.net>
;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
;;; Copyright © 2020 Tim Gesthuizen <tim.gesthuizen@yahoo.de>
-;;; Copyright © 2020 Andy Tai <atai@atai.org>
+;;; Copyright © 2020, 2021 Andy Tai <atai@atai.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -149,6 +149,7 @@
#:use-module (gnu packages ninja)
#:use-module (gnu packages node)
#:use-module (gnu packages nss)
+ #:use-module (gnu packages ocr)
#:use-module (gnu packages openldap)
#:use-module (gnu packages package-management)
#:use-module (gnu packages password-utils)
@@ -12097,3 +12098,67 @@ for the GNOME 3.x platform with many features. It aims to be a very complete
editing environment for translation issues within the GNU gettext/GNOME desktop
world.")
(license license:gpl3+)))
+
+
+(define-public ocrfeeder
+ (package
+ (name "ocrfeeder")
+ (version "0.8.3")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "mirror://gnome/sources/ocrfeeder/"
+ (version-major+minor version) "/"
+ "ocrfeeder-" version ".tar.xz"))
+ (sha256
+ (base32
+ "12f5gnq92ffnd5zaj04df7jrnsdz1zn4zcgpbf5p9qnd21i2y529"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after
+ 'install 'wrap-program
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((prog (string-append (assoc-ref outputs "out")
+ "/bin/" "ocrfeeder"))
+ (pylib (string-append (assoc-ref outputs "out")
+ "/lib/python"
+ ,(version-major+minor
+ (package-version python))
+ "/site-packages")))
+ (wrap-program prog
+ `("PYTHONPATH" = (,(getenv "PYTHONPATH") ,pylib))
+ `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH"))))
+ #t))))))
+ (native-inputs
+ `(("glib:bin" ,glib "bin") ; for glib-compile-resources
+ ("gobject-introspection" ,gobject-introspection)
+ ("gtk+:bin" ,gtk+ "bin") ; for gtk-update-icon-cache
+ ("intltool" ,intltool)
+ ("itstool" ,itstool)
+ ("pkg-config" ,pkg-config)
+ ("xmllint" ,libxml2)))
+ (inputs
+ `(("enchant" ,enchant)
+ ("glib" ,glib)
+ ("goocanvas" ,goocanvas)
+ ("gtk" ,gtk+)
+ ("gtkspell3" ,gtkspell3)
+ ("libjpeg" ,libjpeg-turbo)
+ ("libtiff" ,libtiff)
+ ("libraw" ,libraw)
+ ("ocrad" ,ocrad)
+ ("python" ,python-wrapper)
+ ("python-pygobject" ,python-pygobject)
+ ("python-odfpy" ,python-odfpy)
+ ("python-pillow" ,python-pillow)
+ ("python-pyenchant" ,python-pyenchant)
+ ("python-reportlab" ,python-reportlab)
+ ("python-sane" ,python-sane)
+ ("sane-backends" ,sane-backends)
+ ("tesseract-ocr" ,tesseract-ocr)))
+ (home-page "https://wiki.gnome.org/Apps/OCRFeeder")
+ (synopsis "Complete OCR Suite")
+ (description "OCRFeeder is a complete Optical Character Recognition and
+Document Analysis and Recognition program.")
+ (license license:gpl3+)))
--
2.30.1
next prev parent reply other threads:[~2021-02-24 2:11 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-09 3:54 [bug#46393] [PATCH] gnu: Add ocrfeeder Andy Tai
[not found] ` <handler.46393.B.161284293412235.ack@debbugs.gnu.org>
2021-02-14 2:40 ` Andy Tai
2021-02-21 0:33 ` Leo Famulari
2021-02-21 6:37 ` Andy Tai
2021-02-22 18:27 ` Leo Famulari
2021-02-22 18:29 ` Andy Tai
2021-02-21 7:09 ` Andy Tai
2021-02-23 20:00 ` Leo Famulari
2021-02-23 20:05 ` Leo Famulari
2021-02-23 20:22 ` Andy Tai
2021-02-24 1:59 ` Andy Tai
2021-02-24 2:09 ` Andy Tai [this message]
2021-02-24 16:08 ` bug#46393: " Leo Famulari
2021-02-24 19:04 ` [bug#46393] " Andy Tai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAJsg1E_AiXG9H-6ucf6J-KJ_fAk=ufQhQUzO6o2U31XXb47eVA@mail.gmail.com' \
--to=atai@atai.org \
--cc=46393@debbugs.gnu.org \
--cc=leo@famulari.name \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.