summaryrefslogtreecommitdiff
path: root/print/pslib
diff options
context:
space:
mode:
Diffstat (limited to 'print/pslib')
-rw-r--r--print/pslib/Makefile15
-rw-r--r--print/pslib/distinfo10
-rw-r--r--print/pslib/patches/patch-aa49
-rw-r--r--print/pslib/patches/patch-src_pslib.c13
4 files changed, 15 insertions, 72 deletions
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."));