summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2015-07-05 17:53:25 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2015-07-05 17:53:25 -0500
commitb34f808022ae31c05f4f45d2e432307c5159b24d (patch)
treeb3ac408cfc78fbf9645fe84dff8e2ae6458584f4
parent6006ac3da10bcff2a9d951cfcef97aa765befad2 (diff)
downloadabslibre-b34f808022ae31c05f4f45d2e432307c5159b24d.tar.gz
abslibre-b34f808022ae31c05f4f45d2e432307c5159b24d.tar.bz2
abslibre-b34f808022ae31c05f4f45d2e432307c5159b24d.zip
htmldoc-1.8.28-1: updating version
-rw-r--r--pcr/htmldoc/Changelog62
-rw-r--r--pcr/htmldoc/PKGBUILD103
-rw-r--r--pcr/htmldoc/cve-2009-3050.patch41
-rw-r--r--pcr/htmldoc/errno.patch11
-rw-r--r--pcr/htmldoc/fortify-fail.patch21
-rw-r--r--pcr/htmldoc/libpng15.patch122
-rw-r--r--pcr/htmldoc/manpage-fixes.patch42
-rw-r--r--pcr/htmldoc/useful-build-info.patch25
8 files changed, 108 insertions, 319 deletions
diff --git a/pcr/htmldoc/Changelog b/pcr/htmldoc/Changelog
index c24017717..7e2a21b87 100644
--- a/pcr/htmldoc/Changelog
+++ b/pcr/htmldoc/Changelog
@@ -1,24 +1,50 @@
-2013-09-17 Mariusz Libera <mariusz.libera@gmail.com>
+2014-08-09 James An <james@jamesan.ca>
- 1.8.27-4:
- * remove htmldoc.ps - it saves us a LOT of space (~150M)
+ * 1.8.28-1 :
+ new maintainer.
+ updated PKGBUILD to new upstream version.
+ added patch to fix missing include directive for errno.h.
+ fixed code to use pkg-config instead of obsolete GnuTLS API.
+ refactored Changelog against its prototype, /usr/share/pacman/ChangeLog.proto.
-2013-08-27 Mariusz Libera <mariusz.libera@gmail.com>
+2013-09-17 Mariusz Libera <mariusz.libera@gmail.com>
- 1.8.27-3:
- * merged htmldoc and htmldoc-patched
- * surrounded paths with variables with quotation marks
+ * 1.8.27-4 :
+ remove htmldoc.ps - it saves us a LOT of space (~150M).
-2013-06-17 Mariusz Libera <mariusz.libera@gmail.com>
+2013-08-27 Mariusz Libera <mariusz.libera@gmail.com>
- 1.8.27-2:
- * new maintainer
- * updated PKGBUILD
- * included patches from Debian and one from Fedora
- * added documentation
- * added mime file
- * fixed dependencies
- * changed the way icons are installed
- * added .install file updateing mime,desktop,icons
- * added Changelog
+ * 1.8.27-3 :
+ merged htmldoc and htmldoc-patched.
+ surrounded paths with variables with quotation marks.
+2013-06-17 Mariusz Libera <mariusz.libera@gmail.com>
+
+ * 1.8.27-2 :
+ new maintainer.
+ updated PKGBUILD.
+ included patches from Debian and one from Fedora.
+ added documentation.
+ added mime file.
+ fixed dependencies.
+ changed the way icons are installed.
+ added .install file updateing mime,desktop,icons.
+ added Changelog.
+
+
+2007-12-01 Your Name <youremail@domain.com>
+
+ * pkgver-pkgrel :
+ new upstream release.
+ Reason we changed stuff.
+ Another reason we changed stuff.
+
+ * gcc-4.1.patch :
+ Removed, no longer needed.
+
+2007-11-01 Your Name <youremail@domain.com>
+
+ * 1.0-5 :
+ added ChangeLog.
+ the last line should end with just one newline.
+ you can cat the file to check it displays fine.
diff --git a/pcr/htmldoc/PKGBUILD b/pcr/htmldoc/PKGBUILD
index 0c84a3f94..ef001b9d2 100644
--- a/pcr/htmldoc/PKGBUILD
+++ b/pcr/htmldoc/PKGBUILD
@@ -1,75 +1,78 @@
-# Contributor: Mariusz Libera <mariusz.libera@gmail.com>
-# Contributor: mortdeus <mortdeus@gocos2d.org>
-# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
-# Contributor: tobias <tobias@archlinux.org>
-# Contributor: Simon Rutishauser <simon.rutishauser@gmx.ch>
-# Maintainer : Parabola Aurélien DESBRIÈRES <aurelien@hackers.camp>
+# Maintainer (Arch): James An <james@jamesan.ca>
+# Contributor (Arch): Mariusz Libera <mariusz.libera@gmail.com>
+# Contributor (Arch): mortdeus <mortdeus@gocos2d.org>
+# Contributor (Arch): Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor (Arch): tobias <tobias@archlinux.org>
+# Contributor (Arch): Simon Rutishauser <simon.rutishauser@gmx.ch>
+# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
pkgname=htmldoc
-pkgver=1.8.27
-pkgrel=4
+pkgver=1.8.28
+pkgrel=1
pkgdesc="Produce PDF or Postscript from HTML documents including TOCs and Indices"
-arch=('i686' 'x86_64' 'mips64el')
+arch=('i686' 'x86_64')
url="http://www.htmldoc.org"
license=('GPL2')
depends=('libxpm' 'fltk' 'libjpeg' 'openssl' 'shared-mime-info')
conflicts=('htmldoc-svn')
changelog=Changelog
install=$pkgname.install
-source=("http://www.msweet.org/files/project1/htmldoc-${pkgver}-source.tar.gz"
- 'cve-2009-3050.patch'
- 'fortify-fail.patch'
- 'libpng15.patch'
- 'manpage-fixes.patch'
- 'useful-build-info.patch')
+source=(
+ "http://www.msweet.org/files/project1/htmldoc-${pkgver}-source.tar.gz"
+ 'errno.patch'
+)
+md5sums=('1c2f379e4535734ececd59d6629b4d2d'
+ '2f48488fd485f2583e02b519d6cef553')
prepare() {
- cd $srcdir/$pkgname-$pkgver
+ cd "$pkgname-$pkgver"
- # apply patches
- for patch in ../*.patch ; do
- patch -Np1 -i $patch
- done
+ # replace obsolete libgnutls-config with pkg-config
+ grep -rIl 'libgnutls-config --libs' | while read file ; do sed -i 's/libgnutls-config --libs/pkg-config --libs gnutls/' $file ; done
- # fix desktop file
- echo "MimeType=application/vnd.htmldoc-book;" >> desktop/htmldoc.desktop
- sed -i 's/X-Red-Hat.*$//' desktop/htmldoc.desktop
- sed -i 's/htmldoc.png/htmldoc/' desktop/htmldoc.desktop
+ # apply patches
+ for patch in ../*.patch ; do
+ patch -Np1 -i $patch
+ done
+
+ # fix desktop file
+ echo "MimeType=application/vnd.htmldoc-book;" >> desktop/htmldoc.desktop
+ sed -i 's/X-Red-Hat.*$//' desktop/htmldoc.desktop
+ sed -i 's/htmldoc.png/htmldoc/' desktop/htmldoc.desktop
}
build() {
- cd "$srcdir/$pkgname-$pkgver"
- ./configure
- make
+ cd "$pkgname-$pkgver"
+
+ ./configure \
+ prefix="$pkgdir/usr" \
+
+ make
}
package() {
- cd "$srcdir/$pkgname-$pkgver"
- make install \
- prefix="$pkgdir/usr" \
- bindir="$pkgdir/usr/bin" \
- mandir="$pkgdir/usr/share/man"
+ cd "$pkgname-$pkgver"
- # documentation
- install -m644 \
- CHANGES.txt \
- README.txt \
- "$pkgdir/usr/share/doc/htmldoc"
+ make install
- # documentation in .ps is way to heavy - this saves ~150M
- rm "$pkgdir/usr/share/doc/htmldoc/htmldoc.ps"
+ # documentation
+ install -d "$pkgdir/usr/share/doc/htmldoc"
+ for f in CHANGES.txt README.txt; do
+ install -Dm644 $f \
+ "$pkgdir/usr/share/doc/htmldoc/$f"
+ done
- # desktop file
- install -Dm644 desktop/htmldoc.desktop \
- "$pkgdir/usr/share/applications/htmldoc.desktop"
+ # desktop file
+ install -Dm644 desktop/htmldoc.desktop \
+ "$pkgdir/usr/share/applications/htmldoc.desktop"
- # icons
- for s in 16 24 32 48 64 96 128; do
- install -Dm644 desktop/htmldoc-${s}.png \
- "$pkgdir/usr/share/icons/hicolor/${s}x${s}/apps/htmldoc.png"
- done
+ # icons
+ for s in 16 24 32 48 64 96 128; do
+ install -Dm644 desktop/htmldoc-${s}.png \
+ "$pkgdir/usr/share/icons/hicolor/${s}x${s}/apps/htmldoc.png"
+ done
- # mime
- install -Dm644 desktop/htmldoc.xml \
- "$pkgdir/usr/share/mime/packages/htmldoc.xml"
+ # mime
+ install -Dm644 desktop/htmldoc.xml \
+ "$pkgdir/usr/share/mime/packages/htmldoc.xml"
}
diff --git a/pcr/htmldoc/cve-2009-3050.patch b/pcr/htmldoc/cve-2009-3050.patch
deleted file mode 100644
index 8d0fd173a..000000000
--- a/pcr/htmldoc/cve-2009-3050.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-Description: Fix for CVE-2009-3050
- This patch fixes a buffer overflow when setting custom page output size.
-Author: Giuseppe Iuculano <iuculano@debian.org>
-Bug-Debian: http://bugs.debian.org/537637
-Bug-Gentoo: http://bugs.gentoo.org/show_bug.cgi?id=278186
-Bug: http://www.htmldoc.org/str.php?L214+P0+S0+C0+I0+E0+M1000+Qversion:1.8
-Last-Update: 2011-02-20
-
---- htmldoc-1.8.27.orig/htmldoc/util.cxx
-+++ htmldoc-1.8.27/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...
---- htmldoc-1.8.27.orig/htmldoc/ps-pdf.cxx
-+++ htmldoc-1.8.27/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 ++)
---- htmldoc-1.8.27.orig/htmldoc/htmllib.cxx
-+++ htmldoc-1.8.27/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 --git a/pcr/htmldoc/errno.patch b/pcr/htmldoc/errno.patch
new file mode 100644
index 000000000..f0595481d
--- /dev/null
+++ b/pcr/htmldoc/errno.patch
@@ -0,0 +1,11 @@
+diff -Nu htmldoc-1.8.28/htmldoc/http-addrlist.c htmldoc-1.8.28_fixed/htmldoc/http-addrlist.c
+--- htmldoc-1.8.28/htmldoc/http-addrlist.c 2011-12-30 02:41:10.000000000 -0500
++++ htmldoc-1.8.28_fixed/htmldoc/http-addrlist.c 2014-02-27 18:08:04.000000000 -0500
+@@ -28,6 +28,7 @@
+ # include <resolv.h>
+ #endif /* HAVE_RESOLV_H */
+
++#include <errno.h>
+
+ /*
+ * 'httpAddrConnect()' - Connect to any of the addresses in the list.
diff --git a/pcr/htmldoc/fortify-fail.patch b/pcr/htmldoc/fortify-fail.patch
deleted file mode 100644
index 32ec88735..000000000
--- a/pcr/htmldoc/fortify-fail.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-diff -ur htmldoc-1.8.27~/htmldoc/ps-pdf.cxx htmldoc-1.8.27/htmldoc/ps-pdf.cxx
---- htmldoc-1.8.27~/htmldoc/ps-pdf.cxx 2009-08-13 19:32:21.846860508 -0400
-+++ htmldoc-1.8.27/htmldoc/ps-pdf.cxx 2009-08-13 19:40:29.185857503 -0400
-@@ -8619,7 +8619,7 @@
- return (NULL);
- }
- // Safe because buffer is allocated...
-- strcpy((char *)r->data.text.buffer, (char *)data);
-+ memcpy((char *)r->data.text.buffer, (char *)data, strlen((char *)data));
- get_color(_htmlTextColor, r->data.text.rgb);
- break;
- case RENDER_IMAGE :
-@@ -8640,7 +8640,7 @@
- return (NULL);
- }
- // Safe because buffer is allocated...
-- strcpy((char *)r->data.link, (char *)data);
-+ memcpy((char *)r->data.link, (char *)data, strlen((char *)data));
- break;
- }
-
diff --git a/pcr/htmldoc/libpng15.patch b/pcr/htmldoc/libpng15.patch
deleted file mode 100644
index 02f1d2330..000000000
--- a/pcr/htmldoc/libpng15.patch
+++ /dev/null
@@ -1,122 +0,0 @@
-Description: libpng 1.5 fixes
- This patch fixes incompatibilities with libpng 1.5.
-Bug: http://www.htmldoc.org/str.php?L243+Qversion:1.8
-Origin: http://www.htmldoc.org/str.php?F243+P0+S-2+C0+I0+E0+M10+Qversion%3A1.8
-Forwarded: not-needed
-Last-Update: 2011-12-04
-
-Index: htmldoc-1.8.27/htmldoc/image.cxx
-===================================================================
---- htmldoc-1.8.27.orig/htmldoc/image.cxx 2011-12-04 22:32:01.000000000 -0500
-+++ htmldoc-1.8.27/htmldoc/image.cxx 2011-12-04 22:35:32.000000000 -0500
-@@ -1472,6 +1472,9 @@
- 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 @@
-
- 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 @@
-
- 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 @@
- 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 @@
- 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 @@
-
- #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 @@
- * Allocate pointers...
- */
-
-- rows = (png_bytep *)calloc(info->height, sizeof(png_bytep));
-+ rows = (png_bytep *)calloc(png_get_image_height(pp, info), sizeof(png_bytep));
-
-- for (i = 0; i < (int)info->height; i ++)
-+ for (i = 0; i < (int)png_get_image_height(pp, info); i ++)
- rows[i] = img->pixels + i * img->width * depth;
-
- /*
-@@ -1610,7 +1614,7 @@
- * Generate the alpha mask as necessary...
- */
-
-- if ((info->color_type & PNG_COLOR_MASK_ALPHA) || info->num_trans)
-+ if ((png_get_color_type(pp, info) & PNG_COLOR_MASK_ALPHA) || num_trans)
- {
- #ifdef DEBUG
- for (inptr = img->pixels, i = 0; i < img->height; i ++)
-@@ -1639,7 +1643,7 @@
- * Reformat the data as necessary for the reader...
- */
-
-- if (gray && info->color_type & PNG_COLOR_MASK_COLOR)
-+ if (gray && png_get_color_type(pp, info) & PNG_COLOR_MASK_COLOR)
- {
- /*
- * Greyscale output needed...
diff --git a/pcr/htmldoc/manpage-fixes.patch b/pcr/htmldoc/manpage-fixes.patch
deleted file mode 100644
index 8a47b8470..000000000
--- a/pcr/htmldoc/manpage-fixes.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-Description: Documentation fixes
- This patch gives us a complete documentation build, and also fixes
- some minor inaccuracies in the docs.
-Author: Jeff Licquia <licquia@debian.org>
-Last-Update: 2011-02-20
-
---- htmldoc-1.8.27.orig/doc/Makefile
-+++ htmldoc-1.8.27/doc/Makefile
-@@ -40,7 +40,7 @@ SOURCES = intro.html 1-install.html 2-st
- d-compile.html
-
- DOCUMENTS = htmldoc.html htmldoc.pdf htmldoc.ps
--DOCFILES = help.html htmldoc.pdf
-+DOCFILES = help.html htmldoc.pdf htmldoc.html htmldoc.ps
-
- HTMLDOC = ../htmldoc/htmldoc$(EXEEXT) --datadir .. --strict --verbose
-
---- htmldoc-1.8.27.orig/doc/htmldoc.man
-+++ htmldoc-1.8.27/doc/htmldoc.man
-@@ -80,9 +80,11 @@ Specifies the bottom margin in points (n
- (##in), centimeters (##cm), or millimeters (##mm).
-
- .TP 5
----charset \fI{8859-1...8859-15}\fR
-+--charset \fIcharset-id\fR
- .br
--Specifies the ISO character set to use for the output.
-+Specifies the ISO character set to use for the output. Supported
-+charsets include some Windows code pages (cp-###), ISO 8859 sets
-+1-9, 14, and 15 (iso8859-##), and koi8-r.
-
- .TP 5
- --color
-@@ -579,7 +581,7 @@ program.
- .SH SEE ALSO
- HTMLDOC Software Users Manual
- .LP
--http://www.easysw.com/htmldoc/
-+http://www.htmldoc.org/documentation.php
- .SH AUTHOR
- Michael Sweet, Easy Software Products
- .SH TRADEMARKS
diff --git a/pcr/htmldoc/useful-build-info.patch b/pcr/htmldoc/useful-build-info.patch
deleted file mode 100644
index a6e33d1ef..000000000
--- a/pcr/htmldoc/useful-build-info.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-Description: Build system patch
- This patch makes the build system print useful information in case of
- a build failure.
-Author: Jeff Licquia <licquia@debian.org>
-Forwarded: not-needed
-Last-Update: 2011-02-20
-
-Index: htmldoc-1.8.27/Makedefs.in
-===================================================================
---- htmldoc-1.8.27.orig/Makedefs.in 2011-02-20 12:18:13.000000000 -0500
-+++ htmldoc-1.8.27/Makedefs.in 2011-02-20 12:18:33.000000000 -0500
-@@ -81,13 +81,10 @@
- # Rules...
- #
-
--.SILENT:
- .SUFFIXES: .a .c .cxx .h .o
- .c.o:
-- echo Compiling $<...
- $(CC) $(CFLAGS) -c $<
- .cxx.o:
-- echo Compiling $<...
- $(CXX) $(CXXFLAGS) -c $<
-
- #