summaryrefslogtreecommitdiff
path: root/app-text/calibre/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-11-19 11:02:19 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-11-19 11:02:19 +0000
commit8c58ead574346296889d58006e1bf184da00be3a (patch)
treea7f2072c85179ee02c63febb294a7853dd137de1 /app-text/calibre/files
parentf9a583991092848eb54269744b512063a4d59de0 (diff)
gentoo auto-resync : 19:11:2023 - 11:02:18
Diffstat (limited to 'app-text/calibre/files')
-rw-r--r--app-text/calibre/files/calibre-7.0.0-jxr-test.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/app-text/calibre/files/calibre-7.0.0-jxr-test.patch b/app-text/calibre/files/calibre-7.0.0-jxr-test.patch
new file mode 100644
index 000000000000..c37d0cdfe028
--- /dev/null
+++ b/app-text/calibre/files/calibre-7.0.0-jxr-test.patch
@@ -0,0 +1,27 @@
+diff --git a/src/calibre/utils/img.py b/src/calibre/utils/img.py
+index b61627b63e..ff51c76e75 100644
+--- a/src/calibre/utils/img.py
++++ b/src/calibre/utils/img.py
+@@ -129,8 +129,6 @@ def image_from_data(data):
+ i = QImage()
+ if not i.loadFromData(data):
+ q = what(None, data)
+- if q == 'jxr':
+- return load_jxr_data(data)
+ raise NotImage(f'Not a valid image (detected type: {q})')
+ return i
+
+@@ -693,13 +691,6 @@ def test(): # {{{
+ despeckle_image(img)
+ remove_borders_from_image(img)
+ image_to_data(img, fmt='GIF')
+- p = subprocess.Popen([get_exe_path('JxrDecApp'), '-h'],
+- creationflags=subprocess.DETACHED_PROCESS if iswindows else 0,
+- stdout=subprocess.PIPE)
+- raw, _ = p.communicate()
+- p.wait()
+- if b'JPEG XR Decoder Utility' not in raw:
+- raise SystemExit('Failed to run JxrDecApp')
+ # }}}
+
+