unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: 55424@debbugs.gnu.org
Cc: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Subject: [bug#55424] [PATCH 061/602] gnu: Remove ocrodjvu.
Date: Sun, 15 May 2022 00:37:28 -0400	[thread overview]
Message-ID: <20220515044629.6843-61-maxim.cournoyer@gmail.com> (raw)
In-Reply-To: <20220515044629.6843-1-maxim.cournoyer@gmail.com>

This package still depends on Python 2, and upstream considers this issue as
"wontfix".

* gnu/packages/djvu.scm (ocrodjvu): Delete variable.
---
 gnu/packages/djvu.scm | 84 -------------------------------------------
 1 file changed, 84 deletions(-)

diff --git a/gnu/packages/djvu.scm b/gnu/packages/djvu.scm
index 07c77f318e..38e6278ce5 100644
--- a/gnu/packages/djvu.scm
+++ b/gnu/packages/djvu.scm
@@ -396,87 +396,3 @@ (define-public didjvu
 and background layers of images, which can then be encoded into a DjVu file.")
     (home-page "https://jwilk.net/software/didjvu")
     (license license:gpl2)))
-
-(define-public ocrodjvu
-  (package
-    (name "ocrodjvu")
-    (version "0.12")
-    (source
-     (origin
-       (method url-fetch)
-       (uri (string-append
-             "https://github.com/jwilk/ocrodjvu/releases/download/" version
-             "/ocrodjvu-" version ".tar.xz"))
-       (sha256
-        (base32 "09w9rqr7z2jd5kwp178zz2yrsc82mxs7gksipg92znxzgzhmw2ng"))))
-    (build-system gnu-build-system)
-    (native-inputs
-     (list libxml2 python2-nose python2-pillow))
-    (inputs
-     `(("djvulibre" ,djvulibre)
-       ("ocrad" ,ocrad)
-       ("python" ,python-2)
-       ("python2-djvulibre" ,python2-djvulibre)
-       ("python2-html5lib" ,python2-html5lib)
-       ("python2-lxml" ,python2-lxml)
-       ("python2-pyicu" ,python2-pyicu)
-       ("python2-subprocess32" ,python2-subprocess32)
-       ("tesseract-ocr" ,tesseract-ocr)))
-    (arguments
-     `(#:modules ((guix build gnu-build-system)
-                  ((guix build python-build-system) #:prefix python:)
-                  (guix build utils))
-       #:imported-modules (,@%gnu-build-system-modules
-                           (guix build python-build-system))
-       #:test-target "test"
-       #:phases
-       (modify-phases %standard-phases
-         (delete 'configure)
-         (add-before 'check 'disable-failing-test
-           (lambda _
-             (substitute* "tests/test_ipc.py"
-               ;; test_wait_signal gets stuck forever
-               (("yield self\\._test_signal, name")
-                "return True")
-               ;; test_path fails to find a file it should have created
-               (("path = os\\.getenv\\('PATH'\\)\\.split\\(':'\\)")
-                "return True"))
-             ;; Disable tests with tesseract. They can't work without
-             ;; the language files that must downloaded by the final user
-             ;; as they are not packaged in Guix.
-             (substitute* "tests/ocrodjvu/test.py"
-               (("engines = stdout\\.getvalue\\(\\)\\.splitlines\\(\\)")
-                "engines = ['ocrad']"))
-             (substitute* "tests/ocrodjvu/test_integration.py"
-               (("engines = 'tesseract', 'cuneiform', 'gocr', 'ocrad'")
-                "engines = 'ocrad'"))))
-         (replace 'install
-           (lambda* (#:key outputs #:allow-other-keys)
-             (let ((out (assoc-ref outputs "out")))
-               (invoke "make"
-                       "DESTDIR="
-                       (string-append "PREFIX=" out)
-                       "install"))))
-         (add-after 'install 'wrap-python
-           (assoc-ref python:%standard-phases 'wrap))
-         (add-after 'wrap-python 'wrap-path
-           (lambda* (#:key inputs outputs #:allow-other-keys)
-             (let ((out (assoc-ref outputs "out"))
-                   (djvulibre (assoc-ref inputs "djvulibre"))
-                   (ocrad (assoc-ref inputs "ocrad"))
-                   (tesseract (assoc-ref inputs "tesseract-ocr")))
-               (for-each (lambda (file)
-                           (wrap-program (string-append out "/bin/" file)
-                             `("PATH" ":" prefix
-                               (,(string-append djvulibre "/bin:"
-                                                ocrad "/bin:"
-                                                tesseract "/bin")))))
-                         '("djvu2hocr"
-                           "hocr2djvused"
-                           "ocrodjvu"))))))))
-    (synopsis "Program to perform OCR on DjVu files")
-    (description
-     "@code{ocrodjvu} is a wrapper for OCR systems, that allows you to perform
-OCR on DjVu files.")
-    (home-page "https://jwilk.net/software/ocrodjvu")
-    (license license:gpl2)))
-- 
2.36.0





  parent reply	other threads:[~2022-05-15  5:01 UTC|newest]

Thread overview: 133+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-15  4:44 [bug#55424] [PATCH 000/602] Purge Python 2 packages Maxim Cournoyer
2022-05-15  4:36 ` [bug#55424] [PATCH 001/602] packages: Fix typo in package-superseded doc Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 002/602] etc/committer: Prefix (sxml xpath) symbols to avoid name conflict Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 003/602] etc/committer: Teach it how to commit package removal Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 004/602] utils: Add a 'delete-expression' procedure Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 005/602] utils: Add a %guix-source-root-directory procedure Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 006/602] diagnostics: Fix typo about 0-indexed COL in location Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 007/602] gnu: Remove python-pytest-runner-2 Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 008/602] gnu: Remove python2-langkit Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 009/602] gnu: Remove graphios Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 010/602] gnu: Remove python2-pyalsaaudio Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 011/602] gnu: Remove ingen Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 012/602] gnu: Remove raul Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 013/602] gnu: Remove raul-devel Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 014/602] gnu: Remove python2-pyaudio Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 015/602] gnu: Remove python2-fastalite Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 016/602] gnu: Remove grit Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 017/602] gnu: Remove ribodiff Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 018/602] gnu: Remove python2-pybigwig Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 019/602] gnu: tetoolkit: Update to 2.2.1b Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 020/602] gnu: Remove pepr Maxim Cournoyer
2022-05-15  8:17     ` Maxime Devos
2022-05-16  3:11       ` Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 021/602] gnu: Remove python2-htseq Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 022/602] gnu: Remove python2-pybedtools Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 023/602] gnu: Remove bamm Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 024/602] gnu: Remove python2-dendropy Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 025/602] gnu: Remove poretools Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 026/602] gnu: Remove python2-warpedlmm Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 027/602] gnu: Remove miso Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 028/602] gnu: Remove python2-screed Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 029/602] gnu: Remove python2-pyfaidx Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 030/602] gnu: Remove python2-pbcore Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 031/602] gnu: Remove pyicoteo Maxim Cournoyer
2022-05-15  4:36   ` [bug#55424] [PATCH 032/602] gnu: Remove transmission-remote-cli Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 033/602] gnu: Remove python2-nose-timer Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 034/602] gnu: Remove python2-pytest-catchlog Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 035/602] gnu: Remove python2-testlib Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 036/602] gnu: Remove python2-nose2 Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 037/602] gnu: Remove python2-pytest-capturelog Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 038/602] gnu: Remove python2-python-paramunittest Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 039/602] gnu: Remove python2-rednose Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 040/602] gnu: Remove python2-minimock Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 041/602] gnu: Remove python2-flexmock Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 042/602] gnu: Remove python2-discover Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 043/602] gnu: Remove python2-cov-core Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 044/602] gnu: Remove python2-pytest-flakes Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 045/602] gnu: Remove python2-pytest-subtesthack Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 046/602] gnu: Remove python2-nose-randomly Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 047/602] gnu: Remove domainfinder Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 048/602] gnu: Remove nmoldyn Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 049/602] gnu: Remove python2-neo4j-driver Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 050/602] gnu: Remove python2-redis Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 051/602] gnu: Remove python2-trollius-redis Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 052/602] gnu: Remove python2-peewee Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 053/602] gnu: Remove python2-ccm Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 054/602] gnu: Remove python2-apsw Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 055/602] gnu: Remove python2-py2neo Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 056/602] gnu: Remove python2-pyodbc-c Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 057/602] gnu: Remove python2-pymysql Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 058/602] gnu: Remove python2-hiredis Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 059/602] gnu: Remove python2-pytest-pep8 Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 060/602] gnu: Remove python2-scikit-learn Maxim Cournoyer
2022-05-15  4:37   ` Maxim Cournoyer [this message]
2022-05-15  8:25     ` [bug#55424] [PATCH 061/602] gnu: Remove ocrodjvu Maxime Devos
2022-05-16  3:17       ` Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 062/602] gnu: Remove python2-pandas Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 063/602] gnu: Remove python2-html5lib Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 064/602] gnu: Remove python2-statsmodels Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 065/602] gnu: Remove python2-pytest-cache Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 066/602] gnu: Remove python2-fastlmm Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 067/602] gnu: Remove python2-parameterized Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 068/602] gnu: Remove python2-pytest-warnings Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 069/602] gnu: Remove python2-pyodbc Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 070/602] gnu: Remove python2-pickleshare Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 071/602] gnu: Remove djvusmooth Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 072/602] gnu: Remove omnitux Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 073/602] gnu: Remove childsplay Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 074/602] gnu: Remove python2-capstone Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 075/602] gnu: Remove lekha Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 076/602] gnu: Remove python2-stdnum Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 077/602] gnu: Remove python2-ledgerblue Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 078/602] gnu: Remove python2-keepkey Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 079/602] gnu: nototools: Update to 0.2.16 Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 080/602] gnu: Remove python2-tmx Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 081/602] gnu: renpy: Build with Python 3 Maxim Cournoyer
2022-06-16 13:18     ` Liliana Marie Prikler
2022-06-16 17:11       ` Maxim Cournoyer
2022-06-16 18:51         ` Liliana Marie Prikler
2022-06-16 21:29           ` Maxim Cournoyer
2022-06-16 23:39             ` Liliana Marie Prikler
2022-06-17  5:09               ` Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 082/602] gnu: Remove slingshot Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 083/602] gnu: Remove python2-gpg Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 084/602] gnu: Remove python2-pygpgme Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 085/602] gnu: pius: Update to 3.0.0 Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 086/602] gnu: Remove python2-pydot Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 087/602] gnu: dot2tex: Update to 2.11.3 Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 088/602] gnu: Remove h-client Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 089/602] gnu: Remove python2-iso3166 Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 090/602] gnu: Remove python2-iso639 Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 091/602] gnu: Remove key-mon Maxim Cournoyer
2022-05-15  4:37   ` [bug#55424] [PATCH 092/602] gnu: Remove python2-tegaki-recognize Maxim Cournoyer
2022-05-15  4:38   ` [bug#55424] [PATCH 093/602] gnu: Remove python2-pyusb Maxim Cournoyer
2022-05-15  4:38   ` [bug#55424] [PATCH 094/602] gnu: Remove python2-autograd Maxim Cournoyer
2022-05-15  4:38   ` [bug#55424] [PATCH 095/602] gnu: getmail: Deprecate with getmail6 Maxim Cournoyer
2022-05-15  4:38   ` [bug#55424] [PATCH 096/602] gnu: Remove python2-mailmanclient Maxim Cournoyer
2022-05-15  4:38   ` [bug#55424] [PATCH 097/602] gnu: Remove python2-musicbrainzngs Maxim Cournoyer
2022-05-15  4:38   ` [bug#55424] [PATCH 098/602] gnu: Remove python2-pyechonest Maxim Cournoyer
2022-05-15  4:38   ` [bug#55424] [PATCH 099/602] gnu: Remove mloop Maxim Cournoyer
2022-05-15  4:38   ` [bug#55424] [PATCH 100/602] gnu: Remove gtklick Maxim Cournoyer
2022-05-15  4:38   ` [bug#55424] [PATCH 101/602] gnu: Remove non-timeline Maxim Cournoyer
2022-05-15  4:38   ` [bug#55424] [PATCH 102/602] gnu: Remove non-mixer Maxim Cournoyer
2022-05-15  4:38   ` [bug#55424] [PATCH 103/602] gnu: Remove python2-ipy Maxim Cournoyer
2022-05-15  4:38   ` [bug#55424] [PATCH 104/602] gnu: Remove sala Maxim Cournoyer
2022-05-15  7:56 ` [bug#55424] [PATCH 000/602] Purge Python 2 packages Guillaume Le Vaillant
2022-05-16  3:12   ` Maxim Cournoyer
2022-05-31 19:17     ` bug#55424: " Maxim Cournoyer
2022-06-17  6:49 ` [bug#55424] [PATCH 1/4] gnu: Add back the distinction between python-renpy and renpy Liliana Marie Prikler
2022-06-17 13:14   ` Maxim Cournoyer
2022-06-17 13:35     ` Liliana Marie Prikler
2022-06-17  6:49 ` [bug#55424] [PATCH v2 1/6] " Liliana Marie Prikler
2022-06-17  8:25 ` [bug#55424] [PATCH v2 2/6] gnu: Add python-pefile Liliana Marie Prikler
2022-06-17  8:25 ` [bug#55424] [PATCH 2/4] " Liliana Marie Prikler
2022-06-17  8:26 ` [bug#55424] [PATCH v2 3/6] gnu: python-pygame-sdl2: Update to 2.1.0-0-1705c6e Liliana Marie Prikler
2022-06-17  8:26 ` [bug#55424] [PATCH 3/4] " Liliana Marie Prikler
2022-06-17 13:36   ` Maxim Cournoyer
2022-06-17  8:27 ` [bug#55424] [PATCH v2 4/6] gnu: renpy: Update to 7.99.99-0-3e854bc Liliana Marie Prikler
2022-06-17  8:27 ` [bug#55424] [PATCH 4/4] " Liliana Marie Prikler
2022-06-17 13:43   ` Maxim Cournoyer
2022-06-17 14:01 ` [bug#55424] [PATCH v2 5/6] gnu: renpy: Use new style Liliana Marie Prikler
2022-06-17 16:11   ` Maxim Cournoyer
2022-06-17 14:45 ` [bug#55424] [PATCH v2 6/6] guix: Modernize renpy-build-system Liliana Marie Prikler

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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220515044629.6843-61-maxim.cournoyer@gmail.com \
    --to=maxim.cournoyer@gmail.com \
    --cc=55424@debbugs.gnu.org \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).