mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-16 15:14:38 +00:00
- Add ebuild for app-text/mupdf-1.26.3 - Add use flag brotli, enabling support for brotli compression - Add use flag barcode, enabling support for detecting and generating barcodes using mutool - Remove c23 patch, as it got patched upstream - Add mupdf-1.26.3-jpx.patch fixing code regarding openjpg being included even if -jpeg2k is set - Adjust other patches to be aligned with upstream Makefile changes/cleanup - Tested on amd64 via `pkg-testing-tool --test-feature-scope once` - Remove keywords alpha, hppa, mips, ppc, s390, sparc, because media-libs/zxing-cpp first needs a rekeyword for those (if possible) Signed-off-by: Philipp Rösner <rndxelement@protonmail.com> Part-of: https://github.com/gentoo/gentoo/pull/43124 Signed-off-by: Sam James <sam@gentoo.org>
31 lines
958 B
Diff
31 lines
958 B
Diff
# Without guarding ffi_Pixmap_saveAsJPX by FZ_ENABLE_JPX,
|
|
# it won't compile when using -jpeg2k.
|
|
# https://github.com/ArtifexSoftware/mupdf/pull/75
|
|
--- a/source/tools/murun.c
|
|
+++ b/source/tools/murun.c
|
|
@@ -5221,6 +5221,7 @@ static void ffi_Pixmap_saveAsPKM(js_State *J)
|
|
rethrow(J);
|
|
}
|
|
|
|
+#if FZ_ENABLE_JPX
|
|
static void ffi_Pixmap_saveAsJPX(js_State *J)
|
|
{
|
|
fz_context *ctx = js_getcontext(J);
|
|
@@ -5233,6 +5234,7 @@ static void ffi_Pixmap_saveAsJPX(js_State *J)
|
|
fz_catch(ctx)
|
|
rethrow(J);
|
|
}
|
|
+#endif
|
|
|
|
static void ffi_Pixmap_convertToColorSpace(js_State *J)
|
|
{
|
|
@@ -12138,7 +12140,9 @@ int murun_main(int argc, char **argv)
|
|
jsB_propfun(J, "Pixmap.saveAsPNM", ffi_Pixmap_saveAsPNM, 1);
|
|
jsB_propfun(J, "Pixmap.saveAsPBM", ffi_Pixmap_saveAsPBM, 1);
|
|
jsB_propfun(J, "Pixmap.saveAsPKM", ffi_Pixmap_saveAsPKM, 1);
|
|
+ #if FZ_ENABLE_JPX
|
|
jsB_propfun(J, "Pixmap.saveAsJPX", ffi_Pixmap_saveAsJPX, 2);
|
|
+ #endif
|
|
}
|
|
js_setregistry(J, "fz_pixmap");
|
|
|