Skip to content

Commit

Permalink
www/htmldoc: Update to version 1.9.7
Browse files Browse the repository at this point in the history
- 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 `­` 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
  • Loading branch information
micha committed Oct 18, 2019
1 parent bad7833 commit ae42ec4
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 228 deletions.
6 changes: 2 additions & 4 deletions www/htmldoc/Makefile
Original file line number Diff line number Diff line change
@@ -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"
23 changes: 10 additions & 13 deletions www/htmldoc/Makefile.common
Original file line number Diff line number Diff line change
@@ -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
#HOMEPAGE= http://www.htmldoc.org/
HOMEPAGE= https://www.msweet.org/htmldoc/
LICENSE= gnu-gpl-v2

PATCHDIR= ${.CURDIR}/../../www/htmldoc/patches
Expand All @@ -25,14 +26,10 @@ PLIST_SRC= ${.CURDIR}/../../www/htmldoc/PLIST

.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"
17 changes: 6 additions & 11 deletions www/htmldoc/distinfo
Original file line number Diff line number Diff line change
@@ -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
24 changes: 5 additions & 19 deletions www/htmldoc/options.mk
Original file line number Diff line number Diff line change
@@ -1,33 +1,19 @@
# $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"

###
### 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
15 changes: 0 additions & 15 deletions www/htmldoc/patches/patch-ab

This file was deleted.

15 changes: 0 additions & 15 deletions www/htmldoc/patches/patch-ac

This file was deleted.

15 changes: 0 additions & 15 deletions www/htmldoc/patches/patch-ad

This file was deleted.

118 changes: 0 additions & 118 deletions www/htmldoc/patches/patch-ae

This file was deleted.

15 changes: 0 additions & 15 deletions www/htmldoc/patches/patch-htmldoc_htmlsep.cxx

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
$NetBSD: patch-aa,v 1.7 2009/01/08 11:58:31 obache Exp $
$NetBSD: patch-htmldoc_http-addrlist.c,v 1.1 2019/10/18 11:02:13 micha 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.orig 2019-10-08 18:56:34.000000000 +0000
+++ htmldoc/http-addrlist.c
@@ -502,7 +502,7 @@ httpAddrGetList(const char *hostname, /*
@@ -804,7 +804,7 @@ httpAddrGetList(const char *hostname, /*
# ifdef WIN32
temp->addr.ipv6.sin6_addr.u.Byte[15] = 1;
# else
Expand Down

0 comments on commit ae42ec4

Please sign in to comment.