From owner-freebsd-ports Mon Dec 6 15:15:59 1999 Delivered-To: freebsd-ports@freebsd.org Received: from mailgw1.be.to (mailgw1.be.to [210.235.212.5]) by hub.freebsd.org (Postfix) with ESMTP id 111B51505E for ; Mon, 6 Dec 1999 15:15:53 -0800 (PST) (envelope-from okazaki@be.to) Received: from mail1.be.to (point1.be.to [210.235.212.29]) by mailgw1.be.to (8.9.3+3.2W/BETO.2.1-1999111523000035) with ESMTP id IAA23186 for ; Tue, 7 Dec 1999 08:15:53 +0900 Received: from acidrain (ppp42-Mobara1.mtci.ne.jp [210.172.1.244]) by mail1.be.to (8.8.8+3.0Wbeta13/BETO.2.0-1999110714000000) with SMTP id IAA28313 for ; Tue, 7 Dec 1999 08:15:47 +0900 Received: (qmail 920 invoked from network); 6 Dec 1999 23:13:30 -0000 Received: from localhost (HELO acidrain.localnet) (127.0.0.1) by localhost with SMTP; 6 Dec 1999 23:13:30 -0000 Date: Tue, 07 Dec 1999 08:13:29 +0900 Message-ID: <863dtf1x46.wl@dolphin.be.to> From: OKAZAKI Tetsurou To: andreas@FreeBSD.org, mita@jp.FreeBSD.org, cjh@kr.FreeBSD.org, nakai@FreeBSD.org Cc: ports@freebsd.org Subject: PS resouce directory User-Agent: Wanderlust/2.2.10 (Human Touch) SEMI/1.13.7 (Awazu) CLIME/1.13.5 (=?ISO-2022-JP?B?GyRCMkMybEohMiwbKEI=?=) Emacs/20.4 (i386--freebsd) MULE/4.0 (HANANOEN) Organization: Unknown MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu") Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi GS ports maintainers and users, I have a request about some configuration issue common to all Ghostscript ports but japanese/vfghostscript (which is based on gs-2.6.3.) In the document "Finding PostScript Level 2 resources", (${PREFIX}/share/ghostscript/#.##/doc/Use.htm#PS_resources) author says: | Ghostscript uses a completely different rule for looking for files containing | PostScript Level 2 "resources": per the Adobe documentation, it concatenates | together | 1. the value of the system parameter GenericResourceDir (initially | /Resource/) | 2. the name of the resource category (for instance, ProcSet) | 3. the value of the system parameter GenericResourcePathSep (initially "/") | 4. the name of the resource instance (for instance, CIDInit) | | To look up fonts, after exhausting the search method described in the next | section, it concatenates together | 1. the value of the system parameter FontResourceDir (initially | /Resource/Font/) | 2. the name of the resource font (for instance, Times-Roman) Above two system parameters, GenericResourceDir and FontResourceDir, are defined in ${PREFIX}/share/ghostscript/#.##/gs_res.ps: | /FontResourceDir (/Resource/Font/) readonly .forcedef % pssys'params is r-o | /GenericResourceDir (/Resource/) readonly .forcedef % pssys'params is r-o Would you set these params to somewhere under the ${PREFIX}? If you agree with me, how about changing each value as follows? /Resource/Font/ --> ${PREFIX}/share/postscript/Resource/Font/ /Resource/ --> ${PREFIX}/share/postscript/Resource/ We have two solutions to enable above modifications, I think. 1. Use ${SED} or ${PERL} at post-install to modify `gs_res.ps' or, 2. Run following code fragments from `gs_init.ps'. (%%PREFIX%% is replaced with ${PREFIX}.) --------------------- currentsystemparams dup /FontResourceDir (%%PREFIX%%/share/postscript/Resource/Font/) put dup /GenericResourceDir (%%PREFIX%%/share/postscript/Resource/) put setsystemparams --------------------- Affected ports are: print/ghostscript5 print/ghostscript55 japanese/vfghostscript5 japanese/vfghostscript55 korean/ftghostscript5 x11/dgs Any comments are welcome. -- Tetsurou To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message