summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorpinoaffe <pinoaffe@gmail.com>2025-08-28 15:24:58 +0200
committerLiliana Marie Prikler <liliana.prikler@gmail.com>2026-01-12 22:42:10 +0100
commit91c4db1eead6d87b02c8e1641d2bc3db0bb247ae (patch)
tree65a55fdcd7bf7051330018aa589aae4938c5e6a3 /gnu
parent75223ca4b6fee77f175fbb6c7700b752acdf81bb (diff)
gnu: mupdf: Install shared python libraries.
* gnu/packages/pdf.scm (mupdf)[inputs]: Add leptonica and tesseract-ocr. [native-inputs]: Add python-3, python-clang-13, and swig-next. [#:phases]: Add ‘install-python’. Change-Id: Ia40183cfa2b2a97210d996485f9a2d3a992b4309 Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/pdf.scm27
1 files changed, 25 insertions, 2 deletions
diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index 306a04976b1..eccdcb13840 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -93,6 +93,7 @@
93 #:use-module (gnu packages kde-frameworks) 93 #:use-module (gnu packages kde-frameworks)
94 #:use-module (gnu packages lesstif) 94 #:use-module (gnu packages lesstif)
95 #:use-module (gnu packages libffi) 95 #:use-module (gnu packages libffi)
96 #:use-module (gnu packages llvm)
96 #:use-module (gnu packages linux) 97 #:use-module (gnu packages linux)
97 #:use-module (gnu packages lua) 98 #:use-module (gnu packages lua)
98 #:use-module (gnu packages man) 99 #:use-module (gnu packages man)
@@ -115,6 +116,7 @@
115 #:use-module (gnu packages sdl) 116 #:use-module (gnu packages sdl)
116 #:use-module (gnu packages sphinx) 117 #:use-module (gnu packages sphinx)
117 #:use-module (gnu packages sqlite) 118 #:use-module (gnu packages sqlite)
119 #:use-module (gnu packages swig)
118 #:use-module (gnu packages tex) 120 #:use-module (gnu packages tex)
119 #:use-module (gnu packages time) 121 #:use-module (gnu packages time)
120 #:use-module (gnu packages tcl) 122 #:use-module (gnu packages tcl)
@@ -950,15 +952,20 @@ and based on PDF specification 1.7.")
950 gumbo-parser 952 gumbo-parser
951 harfbuzz 953 harfbuzz
952 jbig2dec 954 jbig2dec
955 leptonica
953 libjpeg-turbo 956 libjpeg-turbo
954 libx11 957 libx11
955 libxext 958 libxext
956 mujs 959 mujs
957 openjpeg 960 openjpeg
958 openssl 961 openssl
962 tesseract-ocr
959 zlib)) 963 zlib))
960 (native-inputs 964 (native-inputs
961 (list pkg-config)) 965 (list pkg-config
966 python-3
967 python-clang-13
968 swig-next))
962 (arguments 969 (arguments
963 (list 970 (list
964 #:tests? #f ;no check target 971 #:tests? #f ;no check target
@@ -986,7 +993,23 @@ and based on PDF specification 1.7.")
986 (string-append "prefix=" #$output)) 993 (string-append "prefix=" #$output))
987 #:phases 994 #:phases
988 #~(modify-phases %standard-phases 995 #~(modify-phases %standard-phases
989 (delete 'configure)))) ;no configure script 996 (delete 'configure) ;no configure script
997 (add-after 'install 'install-python
998 (lambda* (#:key make-flags #:allow-other-keys)
999 (substitute* "Makefile"
1000 (("\\(pydir\\)")
1001 (format #f "(prefix)/lib/python~s/site-packages"
1002 #$(version-major+minor
1003 (package-version
1004 (this-package-native-input "python"))))))
1005 (apply invoke
1006 "make"
1007 "install-shared-python"
1008 "USE_SYSTEM_LIBS=yes"
1009 "HAVE_LEPTONICA=yes"
1010 "HAVE_TESSERACT=yes"
1011 "VENV_FLAG="
1012 make-flags))))))
990 (home-page "https://mupdf.com") 1013 (home-page "https://mupdf.com")
991 (synopsis "Lightweight PDF viewer and toolkit") 1014 (synopsis "Lightweight PDF viewer and toolkit")
992 (description 1015 (description