pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/htmldoc www/htmldoc: Update to version 1.9.7



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b78c57fc30cc
branches:  trunk
changeset: 416009:b78c57fc30cc
user:      micha <micha%pkgsrc.org@localhost>
date:      Fri Oct 18 11:02:13 2019 +0000

description:
www/htmldoc: Update to version 1.9.7

- patch-ab/patch-ac/patch-ad/patch-ae/patch-htmldoc_htmlsep.cxx removed
  Already merged upstream
- INSTALL_MAKE_FLAGS removed from Makefile
  No longer required (autotools do the right things)
- OpenSSL option removed
  OpenSSL support was dropped in version 1.8.29
  Always use GnuTLS for "ssl" option

======================

# Changes in HTMLDOC v1.9.7

- Refactored the PRE rendering code to work around compiler optimization bugs
  (Issue #349)
- Added support for links with targets (Issue #351)
- Fixed a table rowspan + valign bug (Issue #360)


# Changes in HTMLDOC v1.9.6

- Added support for data URIs (Issue #340)
- HTMLDOC no longer includes a PDF table of contents when converting a single
  web page (Issue #344)
- Updated the markdown support with external links, additional inline markup,
  and hard line breaks.
- Links in markdown text no longer render with a leading space as part of the
  link (Issue #346)
- Fixed a buffer underflow bug discovered by AddressSanitizer.
- Fixed a bug in UTF-8 support (Issue #348)
- PDF output now includes the base language of the input document(s)
  (Issue #350)
- Optimized the loading of font widths (Issue #354)
- Optimized PDF page resources (Issue #356)
- Optimized the base memory used for font widths (Issue #357)
- Added proper `&shy;` support (Issue #361)
- Title files can now be markdown.


# Changes in HTMLDOC v1.9.5

- The GUI did not support EPUB output.
- Empty markdown table cells were not rendered in PDF or PostScript output.
- The automatically-generated title page now supports both "docnumber" and
  "version" metadata.
- Added support for dc:subject and dc:language metadata in EPUB output from the
  HTML keywords and lang values.
- Added support for the subject and language metadata in markdown input.
- Fixed a buffer underflow bug (Issue #338)
- `htmldoc --help` now reports whether HTTPS URLs are supported (Issue #339)
- Fixed an issue with HTML title pages and EPUB output.


# Changes in HTMLDOC v1.9.4

- Inline fixed-width text is no longer reduced in size automatically
  (Issue #309)
- Optimized initialization of font width data (Issue #334)


# Changes in HTMLDOC v1.9.3

- Fixed formatting bugs with aligned images (Issue #322, Issue #324)
- Fixed support for three digit "#RGB" color values (Issue #323)
- Fixed character set support for markdown metadata.
- Updated libpng to v1.6.34 (Issue #326)
- The makefiles did not use the CPPFLAGS value (Issue #328)


# Changes in HTMLDOC v1.9.2

- Added Markdown table support.
- Fixed parsing of TBODY, TFOOT, and THEAD elements in HTML files.


# Changes in HTMLDOC v1.9.1

- Fixed monospace font size issue (Issue #309)
- Added support for reproducible builds (Issue #310)
- Added limited support for the HTML 4.0 SPAN element (Issue #311)
- Added (extremely limited) UTF-8 support for input files (Issue #314)
- Fixed buffer underflow for (invalid) short HTML comments (Issue #316)
- Now indent PRE text, by popular request.
- EPUB output now makes sure that `<element property>` is written as
  `<element property="property">`.
- Now support both NAME and ID for table-of-contents targets.


# Changes in HTMLDOC v1.9

- Added support for repeating a single header row for tables that span multiple
  pages (Issue #16)
- Added support for embedding the current filename/URL in the header or footer
  (Issue #50)
- Added EPUB support (Issue #301)
- Added Markdown support (Issue #302)
- Fixed a regression in header/footer image scaling (Issue #303)
- Documentation updates (Issue #305)
- Compiler fixes (Issue #304, Issue #306)
- Fixed a bug when running HTMLDOC as a macOS application.
- Updated the bundled libpng to v1.6.29.


# Changes in HTMLDOC v1.8.30

- Updated documentation to reflect new project page on Github.
- Dropped old CDE and IRIX desktop integration files.
- Cleaned up the GUI and adopted new default text editors for Linux and macOS.
- PAGE BREAK comments at the end of a file in web page mode would lose the
  first page (Issue #251)
- Fixed the scaling of header/footer images to limit them to the height of the
  header or footer (Issue #273)
- Fixed an issue with the top-level makefile not exiting with an error as
  needed (Issue #282)
- Fixed a URL referencing bug when the same hostname but a different port was
  used (Issue #290)
- Fixed build issue on macOS (Issue #291)
- Fixed handling of indexed+alpha PNG images (Issue #295)


# Changes in HTMLDOC v1.8.29

- Updated local PNG library to version 1.6.20.
- Updated local JPEG library to version 9b.
- Dropped support for OpenSSL.
- Added configure script support for libjpeg-turbo.
- Updated HTTP code to latest CUPS/ippsample sources.
- Duplex PDF output incorrectly forced an even number of pages
- The table of contents showed the wrong page numbers after headings containing
  the "_HD_OMIT_TOC" attribute.
- Fixed reported build issues
- The configure script's --enable-local* options did not work.


# Changes in HTMLDOC v1.8.28

- Updated local zlib to version 1.2.8.
- Updated local PNG library to version 1.6.8.
- Updated local JPEG library to version 9.
- Updated default PDF version to 1.4.
- SECURITY: Fixed three buffer overflow issues when reading AFM files and
  parsing page sizes.
- Fixed incompatibility with Fortify's version of strcpy, which does not work
  properly with variable-length arrays
- Fixed compilation against PNG library 1.5 or later
- Fixed documentation errors
- Marked Zapf-Dingbats as a standard font
- Fixed GPL license text in GUI
- Fixed a table formatting problem when a column has multiple colspan values
- Fixed parsing of HTML comments
- Fixed potential out-of-bounds read in table-of-contents rendering code
- Fixed handling of image URLs with ampersands in them
- Fixed top/bottom margins for logo and header/footer images
- Fixed image alignment bug
- Fixed X11 build problem

diffstat:

 www/htmldoc/Makefile                              |    6 +-
 www/htmldoc/Makefile.common                       |   23 +--
 www/htmldoc/distinfo                              |   17 +--
 www/htmldoc/options.mk                            |   24 +---
 www/htmldoc/patches/patch-aa                      |   15 --
 www/htmldoc/patches/patch-ab                      |   15 --
 www/htmldoc/patches/patch-ac                      |   15 --
 www/htmldoc/patches/patch-ad                      |   15 --
 www/htmldoc/patches/patch-ae                      |  118 ----------------------
 www/htmldoc/patches/patch-htmldoc_htmlsep.cxx     |   15 --
 www/htmldoc/patches/patch-htmldoc_http-addrlist.c |   15 ++
 11 files changed, 38 insertions(+), 240 deletions(-)

diffs (truncated from 365 to 300 lines):

diff -r f6cf62a27d21 -r b78c57fc30cc www/htmldoc/Makefile
--- a/www/htmldoc/Makefile      Fri Oct 18 10:42:29 2019 +0000
+++ b/www/htmldoc/Makefile      Fri Oct 18 11:02:13 2019 +0000
@@ -1,8 +1,6 @@
-# $NetBSD: Makefile,v 1.45 2019/07/20 22:46:55 wiz Exp $
+# $NetBSD: Makefile,v 1.46 2019/10/18 11:02:13 micha Exp $
 
-PKGREVISION=   17
-
-CONFIGURE_ARGS+=       --without-gui --without-x
+CONFIGURE_ARGS+=       --without-gui
 
 .include "${.CURDIR}/Makefile.common"
 .include "../../mk/bsd.pkg.mk"
diff -r f6cf62a27d21 -r b78c57fc30cc www/htmldoc/Makefile.common
--- a/www/htmldoc/Makefile.common       Fri Oct 18 10:42:29 2019 +0000
+++ b/www/htmldoc/Makefile.common       Fri Oct 18 11:02:13 2019 +0000
@@ -1,22 +1,23 @@
-# $NetBSD: Makefile.common,v 1.14 2016/12/30 12:54:20 wiz Exp $
+# $NetBSD: Makefile.common,v 1.15 2019/10/18 11:02:13 micha Exp $
 #
 # used by www/htmldoc/Makefile
 # used by www/htmldoc-x11/Makefile
 
 # This section contains variables that might be overridden.
-PKGNAME?=      ${PKGNAME_BASE}
+PKGNAME?=      ${PKGNAME_BASE}-${VERSION}
 COMMENT?=      Converts HTML to indexed HTML, PDF and/or PostScript
 
 # Normal package Makefile contents follow.
-VERSION=       1.8.27
-DISTNAME=      htmldoc-${VERSION}-source
-PKGNAME_BASE=  ${DISTNAME:S/-source//}
+VERSION=       1.9.7
+PKGNAME_BASE=  htmldoc
 CATEGORIES=    www
-MASTER_SITES=  ftp://ftp.easysw.com/pub/htmldoc/${PKGVERSION_NOREV}/
-EXTRACT_SUFX=  .tar.bz2
+DIST_SUBDIR=   ${PKGNAME_BASE}
+DISTNAME=      v${VERSION}
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=michaelrsweet/htmldoc/archive/}
+EXTRACT_USING= bsdtar
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
-#HOMEPAGE=     http://www.htmldoc.org/
+HOMEPAGE=      https://www.msweet.org/htmldoc/
 LICENSE=       gnu-gpl-v2
 
 PATCHDIR=              ${.CURDIR}/../../www/htmldoc/patches
@@ -25,14 +26,10 @@
 
 .include "${.CURDIR}/../../www/htmldoc/options.mk"
 
-WRKSRC=                        ${WRKDIR}/${DISTNAME:S/-source//}
+WRKSRC=                        ${WRKDIR}/${PKGNAME_BASE}-${PKGVERSION_NOREV}
 GNU_CONFIGURE=         yes
 USE_LANGUAGES=         c c++
 
-INSTALL_MAKE_FLAGS+=   bindir=${DESTDIR}${PREFIX}/bin
-INSTALL_MAKE_FLAGS+=   datadir=${DESTDIR}${PREFIX}/share
-INSTALL_MAKE_FLAGS+=   mandir=${DESTDIR}${PREFIX}/${PKGMANDIR}
-
 .include "../../devel/zlib/buildlink3.mk"
 .include "../../mk/jpeg.buildlink3.mk"
 .include "../../graphics/png/buildlink3.mk"
diff -r f6cf62a27d21 -r b78c57fc30cc www/htmldoc/distinfo
--- a/www/htmldoc/distinfo      Fri Oct 18 10:42:29 2019 +0000
+++ b/www/htmldoc/distinfo      Fri Oct 18 11:02:13 2019 +0000
@@ -1,12 +1,7 @@
-$NetBSD: distinfo,v 1.13 2016/12/17 14:20:14 joerg Exp $
+$NetBSD: distinfo,v 1.14 2019/10/18 11:02:13 micha Exp $
 
-SHA1 (htmldoc-1.8.27-source.tar.bz2) = 472908e0aafed1cedfbacd8ed3168734aebdec4b
-RMD160 (htmldoc-1.8.27-source.tar.bz2) = 9605a5894675439f5fae405fb060972e19f33c7e
-SHA512 (htmldoc-1.8.27-source.tar.bz2) = f0b2b6fec4925e549e74d6721f15b5de00c8c4889b0c67689945c408ed88074acb1330cae155655a1986adc0ca549cea32e242aa1ecac8e6338a1739f7c85438
-Size (htmldoc-1.8.27-source.tar.bz2) = 3960271 bytes
-SHA1 (patch-aa) = 92de5e1e4761ffe2d117004b2a38ec52edb33d7c
-SHA1 (patch-ab) = 22add1402202fed917a79ce67963cb282ca46f87
-SHA1 (patch-ac) = bf9036087e03095d51ee064e1f193c899848adff
-SHA1 (patch-ad) = 94e5f10387ede380b7579392e41234ff832f1295
-SHA1 (patch-ae) = 1d77dd5120605881e83bf31ee07fa9fd73619cd3
-SHA1 (patch-htmldoc_htmlsep.cxx) = be66659cc83047ced67e2c73af9f4052962cdc50
+SHA1 (htmldoc/v1.9.7.tar.gz) = c2c3c6a73dfc2bd779bb186b0497eb8de28b25b7
+RMD160 (htmldoc/v1.9.7.tar.gz) = 18908dcd30e36eb1fcdf208146ca704f391b382a
+SHA512 (htmldoc/v1.9.7.tar.gz) = e9481d32318902b5179f8d2dbaa382bcb0084bf3cc57958f8f05f52be5019ab54da5c265bbb674ca8808198c35d04bf19ad2149c2add18cfb630e66a2b9dc8f2
+Size (htmldoc/v1.9.7.tar.gz) = 4502752 bytes
+SHA1 (patch-htmldoc_http-addrlist.c) = 7c2db39b43cdbb31da0d884fbbba63e2ab258354
diff -r f6cf62a27d21 -r b78c57fc30cc www/htmldoc/options.mk
--- a/www/htmldoc/options.mk    Fri Oct 18 10:42:29 2019 +0000
+++ b/www/htmldoc/options.mk    Fri Oct 18 11:02:13 2019 +0000
@@ -1,9 +1,7 @@
-# $NetBSD: options.mk,v 1.4 2016/12/30 12:54:20 wiz Exp $
+# $NetBSD: options.mk,v 1.5 2019/10/18 11:02:13 micha Exp $
 
 PKG_OPTIONS_VAR=               PKG_OPTIONS.htmldoc
-PKG_SUPPORTED_OPTIONS=         # empty
-PKG_OPTIONS_OPTIONAL_GROUPS=   ssl
-PKG_OPTIONS_GROUP.ssl=         gnutls ssl
+PKG_SUPPORTED_OPTIONS=         ssl
 PKG_SUGGESTED_OPTIONS=         ssl
 
 .include "../../mk/bsd.options.mk"
@@ -11,23 +9,11 @@
 ###
 ### SSL support
 ###
-.if !empty(PKG_OPTIONS:Mssl) || !empty(PKG_OPTIONS:Mgnutls)
+.if !empty(PKG_OPTIONS:Mssl)
 CONFIGURE_ARGS+=       --enable-ssl
-.  if !empty(PKG_OPTIONS:Mssl)
-.include "../../security/openssl/buildlink3.mk"
-CONFIGURE_ARGS+=       --enable-openssl
-CONFIGURE_ARGS+=       --with-openssl-libs=${SSLBASE:Q}/lib
-CONFIGURE_ARGS+=       --with-openssl-includes=${SSLBASE:Q}/include
-.  else
-CONFIGURE_ARGS+=       --disable-openssl
-.  endif
-.  if !empty(PKG_OPTIONS:Mgnutls)
-.include "../../security/gnutls/buildlink3.mk"
-.include "../../security/gnutls/libgnutls-config.mk"
+.  include "../../security/gnutls/buildlink3.mk"
+.  include "../../security/gnutls/libgnutls-config.mk"
 CONFIGURE_ARGS+=       --enable-gnutls
-.  else
-CONFIGURE_ARGS+=       --disable-gnutls
-.  endif
 .else
 CONFIGURE_ARGS+=       --disable-ssl
 .endif
diff -r f6cf62a27d21 -r b78c57fc30cc www/htmldoc/patches/patch-aa
--- a/www/htmldoc/patches/patch-aa      Fri Oct 18 10:42:29 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-aa,v 1.7 2009/01/08 11:58:31 obache Exp $
-
-Portability fix, s6_addr32 is not a standard.
-
---- htmldoc/http-addrlist.c.orig       2006-06-20 15:23:49.000000000 +0000
-+++ htmldoc/http-addrlist.c
-@@ -502,7 +502,7 @@ httpAddrGetList(const char *hostname,      /*
- #  ifdef WIN32
-       temp->addr.ipv6.sin6_addr.u.Byte[15]   = 1;
- #  else
--      temp->addr.ipv6.sin6_addr.s6_addr32[3] = htonl(1);
-+      temp->addr.ipv6.sin6_addr.s6_addr[15] = 1;
- #  endif /* WIN32 */
- 
-         if (!first)
diff -r f6cf62a27d21 -r b78c57fc30cc www/htmldoc/patches/patch-ab
--- a/www/htmldoc/patches/patch-ab      Fri Oct 18 10:42:29 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-ab,v 1.3 2009/08/27 21:51:37 tez Exp $
-Fix for Secunia Advisory: SA35780
-from http://bugs.gentoo.org/attachment.cgi?id=199846
-
---- htmldoc/htmllib.cxx.orig   2009-08-26 20:34:51.474463400 -0500
-+++ htmldoc/htmllib.cxx
-@@ -2139,7 +2139,7 @@ htmlLoadFontWidths(void)
-         * assigned charset...
-         */
- 
--          if (sscanf(line, "%*s%*s%*s%*s%f%*s%*s%s", &width, glyph) != 2)
-+          if (sscanf(line, "%*s%*s%*s%*s%f%*s%*s%63s", &width, glyph) != 2)
-           continue;
- 
-           for (ch = 0; ch < 256; ch ++)
diff -r f6cf62a27d21 -r b78c57fc30cc www/htmldoc/patches/patch-ac
--- a/www/htmldoc/patches/patch-ac      Fri Oct 18 10:42:29 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-ac,v 1.1 2009/08/27 21:51:37 tez Exp $
-Fix for Secunia Advisory: SA35780
-from http://bugs.gentoo.org/attachment.cgi?id=199846
-
---- htmldoc/ps-pdf.cxx.orig    2009-08-26 20:35:52.397461300 -0500
-+++ htmldoc/ps-pdf.cxx
-@@ -12512,7 +12512,7 @@ write_type1(FILE       *out,           /* I - Fil
-         * assigned charset...
-         */
- 
--        if (sscanf(line, "%*s%*s%*s%*s%d%*s%*s%s", &width, glyph) != 2)
-+        if (sscanf(line, "%*s%*s%*s%*s%d%*s%*s%63s", &width, glyph) != 2)
-           continue;
- 
-         for (ch = 0; ch < 256; ch ++)
diff -r f6cf62a27d21 -r b78c57fc30cc www/htmldoc/patches/patch-ad
--- a/www/htmldoc/patches/patch-ad      Fri Oct 18 10:42:29 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-ad,v 1.1 2009/08/27 21:51:37 tez Exp $
-Fix for Secunia Advisory: SA35780
-from http://bugs.gentoo.org/attachment.cgi?id=199846
-
---- htmldoc/util.cxx.orig      2009-08-26 20:36:33.787563300 -0500
-+++ htmldoc/util.cxx
-@@ -484,7 +484,7 @@ set_page_size(const char *size)    /* I - P
-     PageWidth  = 595;
-     PageLength = 792;
-   }
--  else if (sscanf(size, "%fx%f%s", &width, &length, units) >= 2)
-+  else if (sscanf(size, "%fx%f%254s", &width, &length, units) >= 2)
-   {
-    /*
-     * Custom size...
diff -r f6cf62a27d21 -r b78c57fc30cc www/htmldoc/patches/patch-ae
--- a/www/htmldoc/patches/patch-ae      Fri Oct 18 10:42:29 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,118 +0,0 @@
-$NetBSD: patch-ae,v 1.2 2011/01/24 16:33:19 wiz Exp $
-
-Fix build with png-1.5.
-http://www.htmldoc.org/str.php?L243+P0+S-2+C0+I0+E0+M10+Q
-
---- htmldoc/image.cxx.orig     2006-05-31 19:00:02.000000000 +0000
-+++ htmldoc/image.cxx
-@@ -1472,6 +1472,9 @@ image_load_png(image_t *img,     /* I - Imag
-   png_bytep   *rows;          /* PNG row pointers */
-   uchar               *inptr,         /* Input pixels */
-               *outptr;        /* Output pixels */
-+  png_bytep trans_alpha;
-+  int num_trans;
-+  png_color_16p trans_color;
- 
- 
-  /*
-@@ -1499,7 +1502,7 @@ image_load_png(image_t *img,     /* I - Imag
- 
-   rows = NULL;
- 
--  if (setjmp(pp->jmpbuf)) 
-+  if (setjmp(png_jmpbuf(pp))) 
-   {
-     progress_error(HD_ERROR_BAD_FORMAT, "PNG file contains errors!");
- 
-@@ -1526,7 +1529,7 @@ image_load_png(image_t *img,     /* I - Imag
- 
-   png_read_info(pp, info);
- 
--  if (info->color_type & PNG_COLOR_MASK_PALETTE)
-+  if (png_get_color_type(pp, info) & PNG_COLOR_MASK_PALETTE)
-   {
-     png_set_expand(pp);
- 
-@@ -1535,15 +1538,15 @@ image_load_png(image_t *img,   /* I - Imag
-     if (Encryption)
-       img->use ++;
-   }
--  else if (info->bit_depth < 8)
-+  else if (png_get_bit_depth(pp, info) < 8)
-   {
-     png_set_packing(pp);
-     png_set_expand(pp);
-   }
--  else if (info->bit_depth == 16)
-+  else if (png_get_bit_depth(pp, info) == 16)
-     png_set_strip_16(pp);
- 
--  if (info->color_type & PNG_COLOR_MASK_COLOR)
-+  if (png_get_color_type(pp, info) & PNG_COLOR_MASK_COLOR)
-   {
-     depth      = 3;
-     img->depth = gray ? 1 : 3;
-@@ -1554,10 +1557,11 @@ image_load_png(image_t *img,   /* I - Imag
-     img->depth = 1;
-   }
- 
--  img->width  = info->width;
--  img->height = info->height;
-+  img->width  = png_get_image_width(pp, info);
-+  img->height = png_get_image_height(pp, info);
- 
--  if ((info->color_type & PNG_COLOR_MASK_ALPHA) || info->num_trans)
-+  png_get_tRNS(pp, info, &trans_alpha, &num_trans, &trans_color);
-+  if ((png_get_color_type(pp, info) & PNG_COLOR_MASK_ALPHA) || num_trans)
-   {
-     if ((PSLevel == 0 && PDFVersion >= 14) || PSLevel == 3)
-       image_need_mask(img, 8);
-@@ -1571,14 +1575,14 @@ image_load_png(image_t *img,   /* I - Imag
- 
- #ifdef DEBUG
-   printf("color_type=0x%04x, depth=%d, img->width=%d, img->height=%d, img->depth=%d\n",
--         info->color_type, depth, img->width, img->height, img->depth);
--  if (info->color_type & PNG_COLOR_MASK_COLOR)
-+         png_get_color_type(pp, info), depth, img->width, img->height, img->depth);
-+  if (png_get_color_type(pp, info) & PNG_COLOR_MASK_COLOR)
-     puts("    COLOR");
-   else
-     puts("    GRAYSCALE");
--  if ((info->color_type & PNG_COLOR_MASK_ALPHA) || info->num_trans)
-+  if ((png_get_color_type(pp, info) & PNG_COLOR_MASK_ALPHA) || num_trans)
-     puts("    ALPHA");
--  if (info->color_type & PNG_COLOR_MASK_PALETTE)
-+  if (png_get_color_type(pp, info) & PNG_COLOR_MASK_PALETTE)
-     puts("    PALETTE");
- #endif // DEBUG
- 
-@@ -1594,9 +1598,9 @@ image_load_png(image_t *img,     /* I - Imag
-   * Allocate pointers...
-   */



Home | Main Index | Thread Index | Old Index