pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/print/magicfilter Set temporary directory before invok...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/70819ed309a6
branches:  trunk
changeset: 538654:70819ed309a6
user:      tron <tron%pkgsrc.org@localhost>
date:      Fri Feb 15 15:47:56 2008 +0000

description:
Set temporary directory before invoking Ghostscript to avoid random
failures when attempting to print Postscript files. Bump package
revision because of this fix.

Based on a patch contributed by Paul Goyette in PR pkg/38037.

diffstat:

 print/magicfilter/Makefile |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 08c679560b26 -r 70819ed309a6 print/magicfilter/Makefile
--- a/print/magicfilter/Makefile        Fri Feb 15 13:33:33 2008 +0000
+++ b/print/magicfilter/Makefile        Fri Feb 15 15:47:56 2008 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.51 2007/03/24 19:21:31 joerg Exp $
+# $NetBSD: Makefile,v 1.52 2008/02/15 15:47:56 tron Exp $
 
 DISTNAME=      magicfilter-1.2
-PKGREVISION=   5
+PKGREVISION=   6
 CATEGORIES=    print
 MASTER_SITES=  ${MASTER_SITE_SUNSITE:=system/printing/}
 
@@ -35,6 +35,12 @@
 SUBST_FILES.mf=                filters/*-filter
 SUBST_SED.mf=          -e 's/-sOutputFile=-/& -sPAPERSIZE=${LOWER_PAPERSIZE:Q:Q}/'
 
+SUBST_CLASSES+=                gs
+SUBST_STAGE.gs=                post-configure
+SUBST_MESSAGE.gs=      Adjusting ghostscript temporary directory.
+SUBST_FILES.gs=                filters/filters2.h
+SUBST_SED.gs=          -e 's,${PREFIX}/bin/gs,${SETENV} TEMP=$${TMPDIR:-/tmp} &,'
+
 INSTALLATION_DIRS+=    bin ${FILTER_DIR} ${PKGMANDIR}/man8
 
 GENERATE_PLIST+= \



Home | Main Index | Thread Index | Old Index