From cbe9eb3a2dfbd83c8c4e640c0086cd12688598d6 Mon Sep 17 00:00:00 2001 From: mef Date: Mon, 26 Jan 2015 13:09:09 +0000 Subject: (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() --- 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(-) delete mode 100644 print/pslib/patches/patch-aa delete mode 100644 print/pslib/patches/patch-src_pslib.c (limited to 'print/pslib') diff --git a/print/pslib/Makefile b/print/pslib/Makefile index 33436058aad..51a255ca5c3 100644 --- a/print/pslib/Makefile +++ b/print/pslib/Makefile @@ -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 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_PKGLOCALEDIR= yes 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 --git a/print/pslib/distinfo b/print/pslib/distinfo index 86fa844424a..e11efcd3cfc 100644 --- a/print/pslib/distinfo +++ b/print/pslib/distinfo @@ -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 --git a/print/pslib/patches/patch-aa b/print/pslib/patches/patch-aa deleted file mode 100644 index cde317a9c3c..00000000000 --- a/print/pslib/patches/patch-aa +++ /dev/null @@ -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 --git a/print/pslib/patches/patch-src_pslib.c b/print/pslib/patches/patch-src_pslib.c deleted file mode 100644 index 7aa958d835d..00000000000 --- a/print/pslib/patches/patch-src_pslib.c +++ /dev/null @@ -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.")); -- cgit v1.2.3