aboutsummaryrefslogtreecommitdiff
path: root/japanese/ptex-pkfonts300
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1999-12-27 01:15:39 +0000
committerSteve Price <steve@FreeBSD.org>1999-12-27 01:15:39 +0000
commitb01b7ee4d06293b223554bb4b1821981e8172a12 (patch)
treeb0a20a397eb8c3390e4bf08702d9b1c9b78d834f /japanese/ptex-pkfonts300
parent3b0ece2abf12e296c8ae3a83a78eb6a29424ea31 (diff)
downloadports-b01b7ee4d06293b223554bb4b1821981e8172a12.tar.gz
ports-b01b7ee4d06293b223554bb4b1821981e8172a12.zip
Notes
Diffstat (limited to 'japanese/ptex-pkfonts300')
-rw-r--r--japanese/ptex-pkfonts300/Makefile57
-rw-r--r--japanese/ptex-pkfonts300/files/REQ.tmpl14
-rw-r--r--japanese/ptex-pkfonts300/pkg-comment1
-rw-r--r--japanese/ptex-pkfonts300/pkg-descr3
-rw-r--r--japanese/ptex-pkfonts300/pkg-plist0
5 files changed, 75 insertions, 0 deletions
diff --git a/japanese/ptex-pkfonts300/Makefile b/japanese/ptex-pkfonts300/Makefile
new file mode 100644
index 000000000000..2318a1b2b6ef
--- /dev/null
+++ b/japanese/ptex-pkfonts300/Makefile
@@ -0,0 +1,57 @@
+# New ports collection makefile for: ptex-pkfonts
+# Version required: ?
+# Date created: 24 Dec 1999
+# Whom: Kentaro Inagaki <inagaki@tg.rim.or.jp>
+#
+# $FreeBSD$
+#
+
+DISTNAME= ptex-pkfonts
+PKGNAME?= ja-ptex-pkfonts${RESOLUTION}-1.0
+CATEGORIES= japanese print
+DISTFILES= #null
+
+MAINTAINER= inagaki@tg.rim.or.jp
+
+RUN_DEPENDS= ${LOCALBASE}/lib/fonts/pk${RESOLUTION}:${PORTSDIR}/print/pkfonts${RESOLUTION}
+
+.include <bsd.port.pre.mk>
+
+NO_BUILD= yes
+PKGREQ= ${WRKDIR}/REQ
+
+# ******************
+# USEPK_MODE:
+# Mode name of Metafont to give to print/pkfonts* is set.
+# It is care-and-attention to the other program how MetaFont wants to
+# be executed that do not use modeless. Kpathsea always searches
+# modeless because even if you specify any kind of mode.
+# MAKETEX_MODE:
+# It is mode name of default at executing MetaFont. The default is ljfour.
+# This needs not to be changed. It can be changed with an option or resource.
+# ******************
+USEPK_MODE?= preview
+MAKETEX_MODE?= ${USEPK_MODE}
+RESOLUTION?= 300
+
+.BEGIN:
+.if defined(RESOLUTION) && \
+ ${RESOLUTION} != 118 && ${RESOLUTION} != 240 && \
+ ${RESOLUTION} != 300 && ${RESOLUTION} != 360 && \
+ ${RESOLUTION} != 400 && ${RESOLUTION} != 600
+ @${ECHO} "Error: invalid value for RESOLUTION: \"${RESOLUTION}\""
+ @${ECHO} "Possible values are: 118, 240, 300, 360, 400 and 600."
+ @${FALSE}
+.endif
+
+do-extract:
+ @${MKDIR} ${WRKDIR}
+ @${SED} -e 's,%%RESOLUTION%%,${RESOLUTION},g' \
+ -e 's,%%USEPK_MODE%%,${USEPK_MODE},g' \
+ < ${FILESDIR}/REQ.tmpl > ${WRKDIR}/REQ; \
+
+do-install:
+ @${SETENV} PKG_PREFIX=${PREFIX} \
+ ${SH} ${WRKDIR}/REQ ${PKGNAME} INSTALL
+
+.include <bsd.port.post.mk>
diff --git a/japanese/ptex-pkfonts300/files/REQ.tmpl b/japanese/ptex-pkfonts300/files/REQ.tmpl
new file mode 100644
index 000000000000..4f03ebaddf05
--- /dev/null
+++ b/japanese/ptex-pkfonts300/files/REQ.tmpl
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+if [ "x$1" = "x" ]; then
+ exit 1;
+fi
+
+if [ "x$2" = "xINSTALL" ]; then
+ mkdir -p ${PKG_PREFIX}/share/texmf/fonts/pk/%%USEPK_MODE%%
+ ln -sf ${PKG_PREFIX}/lib/fonts/pk%%RESOLUTION%% ${PKG_PREFIX}/share/texmf/fonts/pk/%%USEPK_MODE%%/
+fi
+
+if [ "x$2" = "xDEINSTALL" ]; then
+ rm ${PKG_PREFIX}/share/texmf/fonts/pk/%%USEPK_MODE%%/pk%%RESOLUTION%%
+fi
diff --git a/japanese/ptex-pkfonts300/pkg-comment b/japanese/ptex-pkfonts300/pkg-comment
new file mode 100644
index 000000000000..898796e448de
--- /dev/null
+++ b/japanese/ptex-pkfonts300/pkg-comment
@@ -0,0 +1 @@
+English PK fonts, for ghostscripts, xdvik, dvipsk and so on
diff --git a/japanese/ptex-pkfonts300/pkg-descr b/japanese/ptex-pkfonts300/pkg-descr
new file mode 100644
index 000000000000..dd0595502131
--- /dev/null
+++ b/japanese/ptex-pkfonts300/pkg-descr
@@ -0,0 +1,3 @@
+This makes symlink to English PK fonts package.
+
+This package depends on one of print/pkfont*.
diff --git a/japanese/ptex-pkfonts300/pkg-plist b/japanese/ptex-pkfonts300/pkg-plist
new file mode 100644
index 000000000000..e69de29bb2d1
--- /dev/null
+++ b/japanese/ptex-pkfonts300/pkg-plist