pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/print/pdf2djvu pdf2djvu: Update to 0.9.17.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/61e49a6bfebb
branches:  trunk
changeset: 443270:61e49a6bfebb
user:      ryoon <ryoon%pkgsrc.org@localhost>
date:      Wed Dec 09 15:05:08 2020 +0000

description:
pdf2djvu: Update to 0.9.17.1

Changelog:
pdf2djvu (0.9.17.1) unstable; urgency=low

  * Fix build failure with Poppler >= 20.08.

 -- Jakub Wilk <jwilk%jwilk.net@localhost>  Fri, 07 Aug 2020 19:13:22 +0200

pdf2djvu (0.9.17) unstable; urgency=low

  * Fix build failure with Poppler >= 0.86.
    Thanks to David B. Evans for the bug report.
    https://github.com/jwilk/pdf2djvu/issues/142
  * Drop support for Poppler < 0.35.
  * Upgrade libraries bundled with the Windows package:
    - Poppler to 0.86.1;
    - Expat to 2.2.9;
    - FreeType to 2.10.1.

 -- Jakub Wilk <jwilk%jwilk.net@localhost>  Mon, 02 Mar 2020 17:46:38 +0100

pdf2djvu (0.9.16) unstable; urgency=low

  * Fix build failure with Poppler >= 0.85.

 -- Jakub Wilk <jwilk%jwilk.net@localhost>  Thu, 20 Feb 2020 11:38:58 +0100

pdf2djvu (0.9.15) unstable; urgency=low

  * Fix build failure with Poppler >= 0.83.

 -- Jakub Wilk <jwilk%jwilk.net@localhost>  Fri, 20 Dec 2019 15:30:18 +0100

pdf2djvu (0.9.14) unstable; urgency=low

  * Fix build failure with Poppler >= 0.82.

 -- Jakub Wilk <jwilk%jwilk.net@localhost>  Mon, 28 Oct 2019 17:07:29 +0100

diffstat:

 print/pdf2djvu/Makefile                     |   5 +-
 print/pdf2djvu/distinfo                     |  15 ++-----
 print/pdf2djvu/patches/patch-pdf-backend.cc |  35 ------------------
 print/pdf2djvu/patches/patch-pdf-dpi.cc     |  13 ------
 print/pdf2djvu/patches/patch-pdf-unicode.cc |  22 -----------
 print/pdf2djvu/patches/patch-pdf-unicode.hh |  22 -----------
 print/pdf2djvu/patches/patch-pdf2djvu.cc    |  55 -----------------------------
 7 files changed, 7 insertions(+), 160 deletions(-)

diffs (200 lines):

diff -r 169aff702190 -r 61e49a6bfebb print/pdf2djvu/Makefile
--- a/print/pdf2djvu/Makefile   Wed Dec 09 13:55:08 2020 +0000
+++ b/print/pdf2djvu/Makefile   Wed Dec 09 15:05:08 2020 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.91 2020/12/04 04:56:11 riastradh Exp $
+# $NetBSD: Makefile,v 1.92 2020/12/09 15:05:08 ryoon Exp $
 
-DISTNAME=      pdf2djvu-0.9.13
-PKGREVISION=   11
+DISTNAME=      pdf2djvu-0.9.17.1
 CATEGORIES=    print
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=jwilk/}
 GITHUB_RELEASE=        ${PKGVERSION_NOREV}
diff -r 169aff702190 -r 61e49a6bfebb print/pdf2djvu/distinfo
--- a/print/pdf2djvu/distinfo   Wed Dec 09 13:55:08 2020 +0000
+++ b/print/pdf2djvu/distinfo   Wed Dec 09 15:05:08 2020 +0000
@@ -1,11 +1,6 @@
-$NetBSD: distinfo,v 1.16 2020/05/22 01:15:34 joerg Exp $
+$NetBSD: distinfo,v 1.17 2020/12/09 15:05:08 ryoon Exp $
 
-SHA1 (pdf2djvu-0.9.13.tar.xz) = 100614ae77cfc200740d62a9f0afa841f6782663
-RMD160 (pdf2djvu-0.9.13.tar.xz) = 2a8b473ca93eafc3b7f35daf4824410e91af6edf
-SHA512 (pdf2djvu-0.9.13.tar.xz) = 067c721d4f587fd38121ea104e1c08930df58108a2270d7142e539715c031b5bb6b302921dfd68ace09fddfb5c881f081d6a6d866f6038255e89754fc34bc006
-Size (pdf2djvu-0.9.13.tar.xz) = 296420 bytes
-SHA1 (patch-pdf-backend.cc) = 0822f8920b0065ea89e8fd8db38e8e1109d93804
-SHA1 (patch-pdf-dpi.cc) = 931c94844bf8d3428004f8d4d906266be911ac4f
-SHA1 (patch-pdf-unicode.cc) = 8edc6248c891554685181e0506e13117d74b6322
-SHA1 (patch-pdf-unicode.hh) = bab72cfba2977755613abd20aedb9763ea1a81ef
-SHA1 (patch-pdf2djvu.cc) = 8251a763a350d7ffef91e0477633b6c054a95b17
+SHA1 (pdf2djvu-0.9.17.1.tar.xz) = 75a5c4b8e346519c38f17d2b4e6d182282b37c15
+RMD160 (pdf2djvu-0.9.17.1.tar.xz) = a152a321ea6e3d652b91142a1fdd2e3e46854cf9
+SHA512 (pdf2djvu-0.9.17.1.tar.xz) = 59f4ea9a396907b3084a69fbec418d057d8625d18486185bafafb5e3273ee18e9441925a294a4829260cc3d14e7e64d69b47637d530e23360b854daeed0ed8bc
+Size (pdf2djvu-0.9.17.1.tar.xz) = 295540 bytes
diff -r 169aff702190 -r 61e49a6bfebb print/pdf2djvu/patches/patch-pdf-backend.cc
--- a/print/pdf2djvu/patches/patch-pdf-backend.cc       Wed Dec 09 13:55:08 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,35 +0,0 @@
-$NetBSD: patch-pdf-backend.cc,v 1.4 2020/05/22 01:15:34 joerg Exp $
-
---- pdf-backend.cc.orig        2020-05-16 19:37:30.700296649 +0000
-+++ pdf-backend.cc
-@@ -48,7 +48,7 @@
-  * ======================
-  */
- 
--static void poppler_error_handler(void *data, ErrorCategory category, pdf::Offset pos, const char *message)
-+static void poppler_error_handler(ErrorCategory category, pdf::Offset pos, const char *message)
- {
-   std::string format;
-   const char *category_name = _("PDF error");
-@@ -103,8 +103,8 @@ static void poppler_error_handler(void *
- 
- pdf::Environment::Environment()
- {
--  globalParams = new GlobalParams();
--  setErrorCallback(poppler_error_handler, nullptr);
-+  globalParams.reset(new GlobalParams());
-+  setErrorCallback(poppler_error_handler);
- }
- 
- void pdf::Environment::set_antialias(bool value)
-@@ -499,8 +499,8 @@ bool pdf::get_glyph(splash::Splash *spla
- void pdf::Renderer::convert_path(pdf::gfx::State *state, splash::Path &splash_path)
- {
-   /* Source was copied from <poppler/SplashOutputDev.c>. */
--  pdf::gfx::Subpath *subpath;
--  pdf::gfx::Path *path = state->getPath();
-+  const pdf::gfx::Subpath *subpath;
-+  const pdf::gfx::Path *path = state->getPath();
-   int n_subpaths = path->getNumSubpaths();
-   for (int i = 0; i < n_subpaths; i++)
-   {
diff -r 169aff702190 -r 61e49a6bfebb print/pdf2djvu/patches/patch-pdf-dpi.cc
--- a/print/pdf2djvu/patches/patch-pdf-dpi.cc   Wed Dec 09 13:55:08 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-$NetBSD: patch-pdf-dpi.cc,v 1.1 2020/05/22 01:15:34 joerg Exp $
-
---- pdf-dpi.cc.orig    2020-05-16 19:34:23.424498851 +0000
-+++ pdf-dpi.cc
-@@ -34,7 +34,7 @@ protected:
-   }
- 
-   virtual void drawImage(pdf::gfx::State *state, pdf::Object *object, pdf::Stream *stream, int width, int height,
--    pdf::gfx::ImageColorMap *color_map, bool interpolate, int *mask_colors, bool inline_image)
-+    pdf::gfx::ImageColorMap *color_map, bool interpolate, const int *mask_colors, bool inline_image)
-   {
-     this->process_image(state, width, height);
-   }
diff -r 169aff702190 -r 61e49a6bfebb print/pdf2djvu/patches/patch-pdf-unicode.cc
--- a/print/pdf2djvu/patches/patch-pdf-unicode.cc       Wed Dec 09 13:55:08 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,22 +0,0 @@
-$NetBSD: patch-pdf-unicode.cc,v 1.1 2020/05/22 01:15:34 joerg Exp $
-
---- pdf-unicode.cc.orig        2020-05-16 19:53:42.159712563 +0000
-+++ pdf-unicode.cc
-@@ -124,7 +124,7 @@ std::string pdf::string_as_utf8(pdf::Obj
-  * ===================
-  */
- 
--pdf::FullNFKC::FullNFKC(Unicode *unistr, int length)
-+pdf::FullNFKC::FullNFKC(const Unicode *unistr, int length)
- : data(nullptr), length_(0)
- {
-     assert(length >= 0);
-@@ -140,7 +140,7 @@ pdf::FullNFKC::~FullNFKC()
-  * ======================
-  */
- 
--pdf::MinimalNFKC::MinimalNFKC(Unicode *unistr, int length)
-+pdf::MinimalNFKC::MinimalNFKC(const Unicode *unistr, int length)
- {
-     this->string.append(unistr, length);
- }
diff -r 169aff702190 -r 61e49a6bfebb print/pdf2djvu/patches/patch-pdf-unicode.hh
--- a/print/pdf2djvu/patches/patch-pdf-unicode.hh       Wed Dec 09 13:55:08 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,22 +0,0 @@
-$NetBSD: patch-pdf-unicode.hh,v 1.1 2020/05/22 01:15:34 joerg Exp $
-
---- pdf-unicode.hh.orig        2020-05-16 19:53:15.675224456 +0000
-+++ pdf-unicode.hh
-@@ -58,7 +58,7 @@ namespace pdf
-         Unicode* data;
-         int length_;
-     public:
--        explicit FullNFKC(Unicode *, int length);
-+        explicit FullNFKC(const Unicode *, int length);
-         ~FullNFKC();
-         int length() const
-         {
-@@ -79,7 +79,7 @@ namespace pdf
-     protected:
-         std::basic_string<Unicode> string;
-     public:
--        explicit MinimalNFKC(Unicode *, int length);
-+        explicit MinimalNFKC(const Unicode *, int length);
-         int length() const;
-         operator const Unicode*() const;
-     };
diff -r 169aff702190 -r 61e49a6bfebb print/pdf2djvu/patches/patch-pdf2djvu.cc
--- a/print/pdf2djvu/patches/patch-pdf2djvu.cc  Wed Dec 09 13:55:08 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,55 +0,0 @@
-$NetBSD: patch-pdf2djvu.cc,v 1.4 2020/05/22 01:15:34 joerg Exp $
-
---- pdf2djvu.cc.orig   2019-06-10 17:06:44.000000000 +0000
-+++ pdf2djvu.cc
-@@ -81,7 +81,7 @@ static int get_page_for_goto_link(pdf::l
- #endif
-   pdf::link::Destination *orig_dest = goto_link->getDest();
-   if (orig_dest == nullptr)
--    dest.reset(catalog->findDest(goto_link->getNamedDest()));
-+    dest = catalog->findDest(goto_link->getNamedDest());
-   else
-     dest.reset(orig_dest->copy());
-   if (dest.get() != nullptr)
-@@ -336,7 +336,7 @@ public:
-   }
- 
-   void drawImage(pdf::gfx::State *state, pdf::Object *object, pdf::Stream *stream, int width, int height,
--    pdf::gfx::ImageColorMap *color_map, bool interpolate, int *mask_colors, bool inline_image)
-+    pdf::gfx::ImageColorMap *color_map, bool interpolate, const int *mask_colors, bool inline_image)
-   {
-     if (is_foreground_color_map(color_map) || config.no_render)
-     {
-@@ -379,7 +379,7 @@ public:
-   bool interpretType3Chars() { return false; }
- 
-   void drawChar(pdf::gfx::State *state, double x, double y, double dx, double dy, double origin_x, double origin_y,
--    CharCode code, int n_bytes, Unicode *unistr, int length)
-+    CharCode code, int n_bytes, const Unicode *unistr, int length)
-   {
-     double pox, poy, pdx, pdy, px, py, pw, ph;
-     x -= origin_x; y -= origin_y;
-@@ -459,8 +459,10 @@ public:
-     switch (link_action->getKind())
-     {
-     case actionURI:
--      uri += pdf::get_c_string(dynamic_cast<pdf::link::URI*>(link_action)->getURI());
-+    {
-+      uri += dynamic_cast<pdf::link::URI*>(link_action)->getURI();
-       break;
-+    }
-     case actionGoTo:
-     {
-       int page;
-@@ -698,9 +700,9 @@ static void pdf_outline_to_djvu_outline(
-         pdf::OwnedObject destination;
-         std::unique_ptr<pdf::link::Action> link_action;
-         if (!pdf::dict_lookup(current, "Dest", &destination)->isNull())
--          link_action.reset(pdf::link::Action::parseDest(&destination));
-+          link_action = pdf::link::Action::parseDest(&destination);
-         else if (!pdf::dict_lookup(current, "A", &destination)->isNull())
--          link_action.reset(pdf::link::Action::parseAction(&destination));
-+          link_action = pdf::link::Action::parseAction(&destination);
-         else
-           throw NoPageForBookmark();
-         if (link_action.get() == nullptr || link_action->getKind() != actionGoTo)



Home | Main Index | Thread Index | Old Index