Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Dec 1999 01:57:57 +0900
From:      Kentaro Inagaki / =?iso-2022-jp?B?GyRCMHAzQBsoQiAbJEI3ckJATzobKEI=?= <inagaki@tg.rim.or.jp>
To:        freebsd-gnats-submit@freebsd.org
Subject:   ports/15650: new port: ptex-pkfont
Message-ID:  <19991224015757Q.inagaki@tg.rim.or.jp>

next in thread | raw e-mail | index | archive | help

>Number:         15650
>Category:       ports
>Synopsis:       new port: ptex-pkfont
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 23 09:10:01 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Inagaki Kentaro &
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
<Organization of PR author (multiple lines)>
>Environment:
>Description:

This makes symlink to English PK fonts package 
for ghostscripts, xdvik, dvipsk and so on

This package depends on one of print/pkfont*.

>How-To-Repeat:
>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	ptex-pkfonts118
#	ptex-pkfonts118/Makefile
#	ptex-pkfonts240
#	ptex-pkfonts240/Makefile
#	ptex-pkfonts300
#	ptex-pkfonts300/pkg
#	ptex-pkfonts300/pkg/PLIST
#	ptex-pkfonts300/pkg/COMMENT
#	ptex-pkfonts300/pkg/DESCR
#	ptex-pkfonts300/files
#	ptex-pkfonts300/files/REQ.tmpl
#	ptex-pkfonts300/Makefile
#	ptex-pkfonts360
#	ptex-pkfonts360/Makefile
#	ptex-pkfonts400
#	ptex-pkfonts400/Makefile
#	ptex-pkfonts600
#	ptex-pkfonts600/Makefile
#
echo c - ptex-pkfonts118
mkdir -p ptex-pkfonts118 > /dev/null 2>&1
echo x - ptex-pkfonts118/Makefile
sed 's/^X//' >ptex-pkfonts118/Makefile << 'END-of-ptex-pkfonts118/Makefile'
X# New ports collection makefile for:   ptex-pkfonts
X# Version required:    ?
X# Date created:        24 Dec 1999
X# Whom:                Kentaro Inagaki <inagaki@tg.rim.or.jp>
X#
X# $FreeBSD$
X#
X
XRESOLUTION=	118
XMASTERDIR=	${.CURDIR}/../ptex-pkfonts118
X
X.include	"${MASTERDIR}/Makefile"
END-of-ptex-pkfonts118/Makefile
echo c - ptex-pkfonts240
mkdir -p ptex-pkfonts240 > /dev/null 2>&1
echo x - ptex-pkfonts240/Makefile
sed 's/^X//' >ptex-pkfonts240/Makefile << 'END-of-ptex-pkfonts240/Makefile'
X# New ports collection makefile for:   ptex-pkfonts
X# Version required:    ?
X# Date created:        24 Dec 1999
X# Whom:                Kentaro Inagaki <inagaki@tg.rim.or.jp>
X#
X# $FreeBSD$
X#
X
XRESOLUTION=	240
XMASTERDIR=	${.CURDIR}/../ptex-pkfonts240
X
X.include	"${MASTERDIR}/Makefile"
END-of-ptex-pkfonts240/Makefile
echo c - ptex-pkfonts300
mkdir -p ptex-pkfonts300 > /dev/null 2>&1
echo c - ptex-pkfonts300/pkg
mkdir -p ptex-pkfonts300/pkg > /dev/null 2>&1
echo x - ptex-pkfonts300/pkg/PLIST
sed 's/^X//' >ptex-pkfonts300/pkg/PLIST << 'END-of-ptex-pkfonts300/pkg/PLIST'
END-of-ptex-pkfonts300/pkg/PLIST
echo x - ptex-pkfonts300/pkg/COMMENT
sed 's/^X//' >ptex-pkfonts300/pkg/COMMENT << 'END-of-ptex-pkfonts300/pkg/COMMENT'
XEnglish PK fonts, for ghostscripts, xdvik, dvipsk and so on
END-of-ptex-pkfonts300/pkg/COMMENT
echo x - ptex-pkfonts300/pkg/DESCR
sed 's/^X//' >ptex-pkfonts300/pkg/DESCR << 'END-of-ptex-pkfonts300/pkg/DESCR'
XThis makes symlink to English PK fonts package.
X
XThis package depends on one of print/pkfont*.
END-of-ptex-pkfonts300/pkg/DESCR
echo c - ptex-pkfonts300/files
mkdir -p ptex-pkfonts300/files > /dev/null 2>&1
echo x - ptex-pkfonts300/files/REQ.tmpl
sed 's/^X//' >ptex-pkfonts300/files/REQ.tmpl << 'END-of-ptex-pkfonts300/files/REQ.tmpl'
X#!/bin/sh
X
Xif [ "x$1" = "x" ]; then
X    exit 1;
Xfi
X
Xif [ "x$2" = "xINSTALL" ]; then
X   mkdir -p ${PKG_PREFIX}/share/texmf/fonts/pk/%%USEPK_MODE%%
X   ln -sf ${PKG_PREFIX}/lib/fonts/pk%%RESOLUTION%% ${PKG_PREFIX}/share/texmf/fonts/pk/%%USEPK_MODE%%/
Xfi
X
Xif [ "x$2" = "xDEINSTALL" ]; then
X   rm ${PKG_PREFIX}/share/texmf/fonts/pk/%%USEPK_MODE%%/pk%%RESOLUTION%%
Xfi
END-of-ptex-pkfonts300/files/REQ.tmpl
echo x - ptex-pkfonts300/Makefile
sed 's/^X//' >ptex-pkfonts300/Makefile << 'END-of-ptex-pkfonts300/Makefile'
X# New ports collection makefile for:   ptex-pkfonts
X# Version required:    ?
X# Date created:        24 Dec 1999
X# Whom:                Kentaro Inagaki <inagaki@tg.rim.or.jp>
X#
X# $FreeBSD$
X#
X
XDISTNAME=	ptex-pkfonts
XPKGNAME?=	ja-ptex-pkfonts${RESOLUTION}-1.0
XCATEGORIES=	japanese print
XDISTFILES=	#null
X
XMAINTAINER=	inagaki@tg.rim.or.jp
X
XRUN_DEPENDS=	${LOCALBASE}/lib/fonts/pk${RESOLUTION}:${PORTSDIR}/print/pkfonts${RESOLUTION}
X
XNO_BUILD=	yes
XPKGREQ=		${WRKDIR}/REQ
X
X# ******************
X# USEPK_MODE:
X#  Mode name of Metafont to give to print/pkfonts* is set.
X#  It is care-and-attention to the other program how MetaFont wants to
X#  be executed that do not use modeless. Kpathsea always searches
X#  modeless because even if you specify any kind of mode.
X# MAKETEX_MODE:
X#  It is mode name of default at executing MetaFont. The default is ljfour.
X#  This needs not to be changed. It can be changed with an option or resource.
X# ******************
XUSEPK_MODE?=	preview
XMAKETEX_MODE?=	${USEPK_MODE}
XRESOLUTION?=	300
X
X.BEGIN:
X.if defined(RESOLUTION) && \
X	${RESOLUTION} != 118 && ${RESOLUTION} != 240 && \
X	${RESOLUTION} != 300 && ${RESOLUTION} != 360 && \
X	${RESOLUTION} != 400  && ${RESOLUTION} != 600
X	@${ECHO} "Error: invalid value for RESOLUTION: \"${RESOLUTION}\""
X	@${ECHO} "Possible values are: 118, 240, 300, 360, 400 and 600."
X	@${FALSE}
X.endif
X
Xdo-extract:
X	@${MKDIR} ${WRKDIR}
X	@${SED} -e 's,%%RESOLUTION%%,${RESOLUTION},g' \
X		-e 's,%%USEPK_MODE%%,${USEPK_MODE},g' \
X		< ${FILESDIR}/REQ.tmpl > ${WRKDIR}/REQ; \
X
Xdo-install:
X	@${SETENV} PKG_PREFIX=${PREFIX} \
X		${SH} ${WRKDIR}/REQ ${PKGNAME} INSTALL
X
X.include <bsd.port.mk>
END-of-ptex-pkfonts300/Makefile
echo c - ptex-pkfonts360
mkdir -p ptex-pkfonts360 > /dev/null 2>&1
echo x - ptex-pkfonts360/Makefile
sed 's/^X//' >ptex-pkfonts360/Makefile << 'END-of-ptex-pkfonts360/Makefile'
X# New ports collection makefile for:   ptex-pkfonts
X# Version required:    ?
X# Date created:        24 Dec 1999
X# Whom:                Kentaro Inagaki <inagaki@tg.rim.or.jp>
X#
X# $FreeBSD$
X#
X
XRESOLUTION=	360
XMASTERDIR=	${.CURDIR}/../ptex-pkfonts300
X
X.include	"${MASTERDIR}/Makefile"
END-of-ptex-pkfonts360/Makefile
echo c - ptex-pkfonts400
mkdir -p ptex-pkfonts400 > /dev/null 2>&1
echo x - ptex-pkfonts400/Makefile
sed 's/^X//' >ptex-pkfonts400/Makefile << 'END-of-ptex-pkfonts400/Makefile'
X# New ports collection makefile for:   ptex-pkfonts
X# Version required:    ?
X# Date created:        24 Dec 1999
X# Whom:                Kentaro Inagaki <inagaki@tg.rim.or.jp>
X#
X# $FreeBSD$
X#
X
XRESOLUTION=	400
XMASTERDIR=	${.CURDIR}/../ptex-pkfonts400
X
X.include	"${MASTERDIR}/Makefile"
END-of-ptex-pkfonts400/Makefile
echo c - ptex-pkfonts600
mkdir -p ptex-pkfonts600 > /dev/null 2>&1
echo x - ptex-pkfonts600/Makefile
sed 's/^X//' >ptex-pkfonts600/Makefile << 'END-of-ptex-pkfonts600/Makefile'
X# New ports collection makefile for:   ptex-pkfonts
X# Version required:    ?
X# Date created:        24 Dec 1999
X# Whom:                Kentaro Inagaki <inagaki@tg.rim.or.jp>
X#
X# $FreeBSD$
X#
X
XRESOLUTION=	600
XMASTERDIR=	${.CURDIR}/../ptex-pkfonts600
X
X.include	"${MASTERDIR}/Makefile"
END-of-ptex-pkfonts600/Makefile
exit


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991224015757Q.inagaki>