Edit

IABSD.fr/ports/converters/k2pdfopt/patches/patch-k2pdfoptlib_k2pdfopt_h

Branch :

  • Show log

    Commit

  • Author : caspar
    Date : 2024-04-18 16:15:44
    Hash : 500e8078
    Message : converters/k2pdfopt: unbreak and update to 2.55 I borrowed some patches from Debian. Contrary to the earlier non-broken situation, integration with Tesseract is not enabled right now. Take MAINTAINER. Suggestion to replace pre-patch target with FIX_CRLF_FILES from sthen@ OK sthen@

  • converters/k2pdfopt/patches/patch-k2pdfoptlib_k2pdfopt_h
  • Fix HAVE_MUPDF_LIB #define.
    
    Patch from Debian: "dst_ocr_visibility_flags workaround", see
    https://sources.debian.org/patches/k2pdfopt/2.55%2Bds-2/0006-k2pdfopt.h-dst_ocr_visibility_flags-workaround.patch/
    
    Index: k2pdfoptlib/k2pdfopt.h
    --- k2pdfoptlib/k2pdfopt.h.orig
    +++ k2pdfoptlib/k2pdfopt.h
    @@ -107,7 +107,7 @@
     #endif
     */
     
    -#if (defined(HAVE_MUPDF) || defined(HAVE_GOCR_LIB) || defined(HAVE_TESSERACT_LIB) || defined(HAVE_DJVU_LIB))
    +#if (defined(HAVE_MUPDF_LIB) || defined(HAVE_GOCR_LIB) || defined(HAVE_TESSERACT_LIB) || defined(HAVE_DJVU_LIB))
     #if (!defined(HAVE_OCR_LIB))
     #define HAVE_OCR_LIB
     #endif
    @@ -267,7 +267,7 @@ typedef struct
         int text_only; /* Do not send figures to output file */
     
         /* OCR */
    -#ifdef HAVE_OCR_LIB
    +#if 1
         char ocrout[128];
         int dst_ocr;
         int ocrvbb;             /* New in v2.53 -ocrvbb option */