pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/print/pslib (pkgsrc)



details:   https://anonhg.NetBSD.org/pkgsrc/rev/dcb516a2cc90
branches:  trunk
changeset: 645296:dcb516a2cc90
user:      mef <mef%pkgsrc.org@localhost>
date:      Mon Jan 26 13:09:09 2015 +0000

description:
(pkgsrc)
  - Add LICENSE (gnu-gpl-v2)
  - Add gmake on USE_TOOLL+=
  - Add post-build: and post-install: target
    to get de/LC_MESSAGES/pslib.mo installed as previous package.
  (USE_CMAKE= yes doesn't work for install: yet)

(upstream)
  - Update 0.2.6 to 0.4.5
-------------------------
Version 0.4.5
        - added support for reusable images
        - updated man pages

Version 0.4.4
        - fixed impropper use of font in ps_stringwidth() (thanks to Roger Wimbert)

Version 0.4.3
        - renamed getline() to afm_getline() in ps_afm.c because never versions
          of libc have an equal symbol

Version 0.4.2
        - fixed bug in ps_setcolor()
        - made src/hash_table.c compile on hp ux
        - fixed typo in input encoding table
        - fixed man pages
        - fixed several memory leaks

Version 0.4.1
        - fixed DSC in postscript file (makes ghostview for ms windows happy)
        - configuring using cmake now checks for libpng, libjpeg, libtiff, libz

Version 0.4.0
        - Also disolve a ligature if it isn't present in the font encoding vector
        - handle duplicate glyphs in an afm file nicely, without leaking memory
        - many small changes to make it compile for win32 in a mingw and
                visual C environment (includes support for cmake)
        - added function PS_glyph_list() which returns a list of all glyphs
          in a font. Free that list with PS_free_glyph_list()
        - added function PS_glyph_width() which returns the width of a glyph
        - changed mode of fopen to "rb" to make it work in win32
        - added functions PS_[begin|end]_font(), PS_[begin|end]_glyph()
          for creating Type3 fonts
        - added functions PS_add_kerning(), PS_add_ligature() for setting
          kerning pairs and ligatures of a font.
        - added PS_glyph_show() for outputting a glyph by its name.
        - fixed sourceforge bug 1556247, 'ordmaskuline' must be 'ordmasculine'

Version 0.3.0
        - PS_string_geometry() uses the passed font and not the current font
          (Closes #1711438 at sourceforge)
        - added section about color separation in man page of pslib
        - check for byteswap.h because mingw doesn't have it
        - default error handler now prints to stderr instead of stdout (reported
          by Johannes Frank, fixes debian bug #429544)
        - parbreak has no effect if linebreak is set (previous segm reported
          by Johannes Frank, fixes debian bug #429543)
        - BMP support can be disabled
        - PS_place_image() doesn't check for mimetypes of unsupported image
          formats
        - support for separating colors. Just set the value 'separationcolor'
          before creating a new page to 1-4 (1=cyan, 2=magenta, ...)
        - added missing include file for freebsd
        - Support for other input encodings (currently only latin1 and latin2, more
          can be easily added)
        - Replaced TeXBase1 by Cork fontencoding because it supports more glyphs
        - ps_check_for_lig() gets extra first parameter *psdoc in order to be able
          to access the inputencoding stored in psdoc

Version 0.2.7
        - fixed setting of locale
        - PS_set_border_style() works as expected
        - added blind feature to PS_show_boxed()
        - added support for gif, tiff and bmp images
        - PS_show_boxed() sets the value 'boxheight' to the actual height of
          the box. This is useful if you specify a height of 0.0 for the
                box and need to find out how high is has become. It is also useful
                if a box isn't completely filled.
        - passing a height of 0.0 to PS_show_boxed() will create a box long enough
          to contain all text.
        - strip alpha channel from rgb pngs, because they cause a segm fault. Once
          I understand where the actual problem lies, it will be reenabled.
        - make euro symbol work (replaces the currency symbol)
        - PS_arc() and PS_arcn() behave like the arc and arcn postscript commands
        - fixed rpm spec file
        - PS_continue_text() finally works as expected
        - PS_get_buffer() checks for psdoc->sb before accessing it
        - PS_begin_page() does not overwrite the BoundingBox and Orientation
          anymore, if it has been explicitly set by PS_set_info()

diffstat:

 print/pslib/Makefile                  |  15 +++++++--
 print/pslib/distinfo                  |  10 ++----
 print/pslib/patches/patch-aa          |  49 -----------------------------------
 print/pslib/patches/patch-src_pslib.c |  13 ---------
 4 files changed, 15 insertions(+), 72 deletions(-)

diffs (122 lines):

diff -r 0cddf3fc93b8 -r dcb516a2cc90 print/pslib/Makefile
--- a/print/pslib/Makefile      Mon Jan 26 12:41:53 2015 +0000
+++ b/print/pslib/Makefile      Mon Jan 26 13:09:09 2015 +0000
@@ -1,14 +1,14 @@
-# $NetBSD: Makefile,v 1.13 2014/05/29 23:37:17 wiz Exp $
+# $NetBSD: Makefile,v 1.14 2015/01/26 13:09:09 mef Exp $
 #
 
-DISTNAME=              pslib-0.2.6
-PKGREVISION=           7
+DISTNAME=              pslib-0.4.5
 CATEGORIES=            print
 MASTER_SITES=          ${MASTER_SITE_SOURCEFORGE:=pslib/}
 
 MAINTAINER=            pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=              http://pslib.sourceforge.net/
 COMMENT=               C-library to create PostScript files
+LICENSE=               gnu-gpl-v2
 
 BUILD_DEPENDS+=                p5-XML-Parser-[0-9]*:../../textproc/p5-XML-Parser
 
@@ -16,7 +16,14 @@
 USE_LIBTOOL=           yes
 PKGCONFIG_OVERRIDE+=   ${WRKSRC}/libps.pc.in
 GNU_CONFIGURE=         yes
-USE_TOOLS+=            msgfmt perl
+USE_TOOLS+=            msgfmt perl gmake
+
+# share/locale/de/LC_MESSAGES/pslib.mo is missing without these
+post-build:
+       (cd ${WRKSRC}/po; ${GMAKE})
+
+post-install:
+       (cd ${WRKSRC}/po; ${GMAKE} install)
 
 .include "../../devel/gettext-lib/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 0cddf3fc93b8 -r dcb516a2cc90 print/pslib/distinfo
--- a/print/pslib/distinfo      Mon Jan 26 12:41:53 2015 +0000
+++ b/print/pslib/distinfo      Mon Jan 26 13:09:09 2015 +0000
@@ -1,7 +1,5 @@
-$NetBSD: distinfo,v 1.3 2012/05/04 16:30:28 joerg Exp $
+$NetBSD: distinfo,v 1.4 2015/01/26 13:09:09 mef Exp $
 
-SHA1 (pslib-0.2.6.tar.gz) = 0bcd220fa30a3faec9dd1860434c62596043aa8a
-RMD160 (pslib-0.2.6.tar.gz) = 14afdfdca94d752499d0d38b946d3b5f469b34ae
-Size (pslib-0.2.6.tar.gz) = 486812 bytes
-SHA1 (patch-aa) = 3c536e0f4f3931a4f49c96365ce0a080df1ee6af
-SHA1 (patch-src_pslib.c) = 19d6d6faf9efed67dcf00b7fa9710a842cfa237b
+SHA1 (pslib-0.4.5.tar.gz) = 2ad904b650b7d55b7c12be0c99f77073770ece56
+RMD160 (pslib-0.4.5.tar.gz) = 8400b078bd643325109e988df7971e0eb164f492
+Size (pslib-0.4.5.tar.gz) = 493687 bytes
diff -r 0cddf3fc93b8 -r dcb516a2cc90 print/pslib/patches/patch-aa
--- a/print/pslib/patches/patch-aa      Mon Jan 26 12:41:53 2015 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,49 +0,0 @@
-$NetBSD: patch-aa,v 1.1 2009/10/31 14:26:31 tnn Exp $
-
---- src/ps_afm.c.orig  2004-07-22 08:01:26.000000000 +0200
-+++ src/ps_afm.c
-@@ -136,7 +136,7 @@ static int transform(int x, int y) {
-       return (int)(acc>=0? floor(acc+0.5) : ceil(acc-0.5) ) ;
- }
- 
--static int getline(FILE *afmin) {
-+static int get_line(FILE *afmin) {
-       char *p ;
-       int c ;
- 
-@@ -566,7 +566,7 @@ int readprotusion(PSDoc *psdoc, PSFont *
-               return(-1);
-       }
- 
--      while (getline(fp)) {
-+      while (get_line(fp)) {
-               switch(interest(paramstring())) {
-                       case N:
-                               handleprotusion(psdoc, metrics) ;
-@@ -614,7 +614,7 @@ ADOBEFONTMETRIC *readadobe(PSDoc *psdoc,
-       /*
-        * Read file line by line.
-        */
--      while (getline(metric->afmin)) {
-+      while (get_line(metric->afmin)) {
-               switch(interest(paramstring())) {
- case FontName:
-                       metric->fontname = paramnewstring(psdoc) ;
-@@ -972,7 +972,7 @@ static char *gettoken(PSDoc *psdoc, ADOB
- 
-       while (1) {
-               while (param == NULL || *param == '\0') {
--                      if (getline(metrics->afmin) == 0)
-+                      if (get_line(metrics->afmin) == 0)
-                               ps_error(psdoc, PS_RuntimeError, _("Premature end of encoding file."));
-                       for (p=buffer; *p != '\0'; p++)
-                               if (*p == '%') {
-@@ -1093,7 +1093,7 @@ int readencoding(PSDoc *psdoc, ADOBEFONT
-                       psdoc->free(psdoc, e);
-                       return -1;
-               }
--              while (getline(metrics->afmin)) {
-+              while (get_line(metrics->afmin)) {
-                       for (p=buffer; *p != '\0'; p++)
-                               if (*p == '%') {
-                                       if (ignoreligkern == 0)
diff -r 0cddf3fc93b8 -r dcb516a2cc90 print/pslib/patches/patch-src_pslib.c
--- a/print/pslib/patches/patch-src_pslib.c     Mon Jan 26 12:41:53 2015 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-$NetBSD: patch-src_pslib.c,v 1.1 2012/05/04 16:30:28 joerg Exp $
-
---- src/pslib.c.orig   2012-04-27 21:05:22.000000000 +0000
-+++ src/pslib.c
-@@ -5256,7 +5256,7 @@ PS_end_font(PSDoc *psdoc) {
- /* PS_begin_glyph() {{{
-  * starts a new glyph
-  */
--PSLIB_API int PSLIB_CALL
-+PSLIB_API void PSLIB_CALL
- PS_begin_glyph(PSDoc *psdoc, const char *glyphname, double wx, double llx, double lly, double urx, double ury) {
-       if(NULL == psdoc) {
-               ps_error(psdoc, PS_RuntimeError, _("PSDoc is null."));



Home | Main Index | Thread Index | Old Index