diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 1999-07-30 17:04:02 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 1999-07-30 17:04:02 +0000 |
commit | 274d5dbdae297ff648ad0622b97451473202362d (patch) | |
tree | a83d7fc53efb2560128c17c61e4d500b2967a33f /russian | |
parent | Update 0.10 -> 0.11: (diff) |
Russian PS fonts
Notes
Notes:
svn path=/head/; revision=20400
Diffstat (limited to 'russian')
-rw-r--r-- | russian/koi8r-ps/Makefile | 91 | ||||
-rw-r--r-- | russian/koi8r-ps/distinfo | 3 | ||||
-rw-r--r-- | russian/koi8r-ps/files/Fontmap.diff | 45 | ||||
-rw-r--r-- | russian/koi8r-ps/pkg-comment | 1 | ||||
-rw-r--r-- | russian/koi8r-ps/pkg-deinstall | 35 | ||||
-rw-r--r-- | russian/koi8r-ps/pkg-descr | 16 | ||||
-rw-r--r-- | russian/koi8r-ps/pkg-message | 21 | ||||
-rw-r--r-- | russian/koi8r-ps/pkg-plist | 53 |
8 files changed, 265 insertions, 0 deletions
diff --git a/russian/koi8r-ps/Makefile b/russian/koi8r-ps/Makefile new file mode 100644 index 000000000000..426c80e0e259 --- /dev/null +++ b/russian/koi8r-ps/Makefile @@ -0,0 +1,91 @@ +# New ports collection makefile for: koi8rPS +# Version required: 1.0 +# Date created: 22 July 1999 +# Whom: mi@aldan.algebra.com +# +# $Id$ + +DISTNAME= koi8rPS-1.0 +CATEGORIES= russian print +MASTER_SITES= ftp://ftp.ziplink.net/users/kot/CyrPS/ \ + ftp://ftp.kapella.gpi.ru/pub/cyrillic/psfonts/ +DISTFILES= gs-type1_koi8_fonts.tgz gs-type1_koi8_afm.tgz \ + XFree86-Type1_fonts.dir.scale.gz + +MAINTAINER= mi@aldan.algebra.com + +EXTRACT_ONLY= + +DIST_SUBDIR= koi8r-ps + +.if !defined(FONTMAP) +FONTMAP!= if which gs > /dev/null 2>&1 ; then \ + d=`gs -h | awk '/^Search path:$$/ { nl=1; next } \ + nl { print $$3; exit }'`; \ + if [ -e $$d/Fontmap ] ; then \ + ${ECHO} $$d/Fontmap; \ + else \ + logger $$d/Fontmap; \ + ${ECHO} /nicht/ ; \ + fi; \ + else \ + ${ECHO} /nicht/ ; \ + fi +.endif + +MAINTAINER= mi@aldan.algebra.com + +NO_PACKAGE= Nothing to build, configurations only +NO_WRKSUBDIR= Yes + +CPS_DIR= ${PREFIX}/share/koi8r-ps + +do-extract: + ${MKDIR} ${WRKSRC} + ${GZIP_CMD} -d < ${DISTDIR}/${DIST_SUBDIR}/XFree86-Type1_fonts.dir.scale.gz \ + > ${WRKSRC}/XFree86-Type1_fonts.dir.scale + +do-build: + ${ECHO} `${GREP} koi8 ${WRKSRC}/XFree86-Type1_fonts.dir.scale | wc -l` \ + > ${WRKSRC}/fonts.dir + ${GREP} koi8 ${WRKSRC}/XFree86-Type1_fonts.dir.scale \ + >> ${WRKSRC}/fonts.dir + +do-configure: + ${SED} 's=(\(.*\.pfb\))=\(${CPS_DIR}/\1\)=' \ + < ${FILESDIR}/Fontmap.diff > ${WRKSRC}/Fontmap.diff + +do-install: + ${MKDIR} ${CPS_DIR} + ${TAR} -C ${CPS_DIR} -xzpf \ + ${DISTDIR}/${DIST_SUBDIR}/gs-type1_koi8_fonts.tgz + ${TAR} -C ${CPS_DIR} -xzpf \ + ${DISTDIR}/${DIST_SUBDIR}/gs-type1_koi8_afm.tgz +.if ${FONTMAP} == "/nicht/" + ################################################################# + ### You do not appear to have GhostScript installed. The file + ### ${CPS_DIR}/Fontmap.diff + ### needs to be merged into GhostScript's Fontmap -- usually + ### located in something like + ### ${PREFIX}/share/ghostscript/5.50/Fontmap + ### for GhostScript to use cyrillic fonts. + ################################################################# + @test -t 0 && test -t 1 && ${ECHO} -n "Press enter" && read junk || true +.else + @if ${GREP} -q ArialCyrMT-BoldItalic "${FONTMAP}" ; then \ + ${ECHO} Apparently, Fontmap already lists this fonts. Ok. \ + You can always merge ${CPS_DIR}/Fontmap.diff into \ + ${FONTMAP} manually. ; \ + else \ + env SIMPLE_BACKUP_SUFFIX=.CyrPS VERSION_CONTROL= \ + ${PATCH} "${FONTMAP}" ${WRKSRC}/Fontmap.diff ; \ + ${RM} -f "${FONTMAP}".CyrPS ; \ + fi +.endif + ${ECHO} ${FONTMAP} > ${CPS_DIR}/fontmap.path + ${INSTALL_DATA} ${WRKSRC}/Fontmap.diff ${CPS_DIR} + ${INSTALL_DATA} ${WRKSRC}/fonts.dir ${CPS_DIR} + ${LN} -s fonts.dir ${CPS_DIR}/fonts.scale + ${CAT} ${PKGDIR}/MESSAGE + +.include <bsd.port.mk> diff --git a/russian/koi8r-ps/distinfo b/russian/koi8r-ps/distinfo new file mode 100644 index 000000000000..9975132d8030 --- /dev/null +++ b/russian/koi8r-ps/distinfo @@ -0,0 +1,3 @@ +MD5 (koi8r-ps/gs-type1_koi8_fonts.tgz) = 3dfc8059e5ddca75054bf8684bcc9f5c +MD5 (koi8r-ps/gs-type1_koi8_afm.tgz) = 6b2a937ffeac0665ab3de3f6da627962 +MD5 (koi8r-ps/XFree86-Type1_fonts.dir.scale.gz) = 6bc1a0e6e2c3443f1d5dc753beca6522 diff --git a/russian/koi8r-ps/files/Fontmap.diff b/russian/koi8r-ps/files/Fontmap.diff new file mode 100644 index 000000000000..4b6a03646d61 --- /dev/null +++ b/russian/koi8r-ps/files/Fontmap.diff @@ -0,0 +1,45 @@ +--- Fontmap.orig Mon Jan 25 12:39:01 1999 ++++ Fontmap Fri Jul 23 16:48:39 1999 +@@ -400,0 +401,42 @@ ++ ++% Cyrrillic koi8 fonts/aliases ++ ++/ArialCyrMT (arial8.pfb) ; ++/Arial /ArialCyrMT ; ++/Helvetica /ArialCyrMT ; ++/ArialCyrMT-Bold (arialbd8.pfb) ; ++/Arial-Bold /ArialCyrMT-Bold ; ++/Helvetica-Bold /ArialCyrMT-Bold ; ++/ArialCyrMT-Italic (ariali8.pfb) ; ++/Arial-Italic /ArialCyrMT-Italic ; ++/Helvetica-Oblique /ArialCyrMT-Italic ; ++/ArialCyrMT-BoldItalic (arialbi8.pfb) ; ++/Arial-BoldItalic /ArialCyrMT-BoldItalic ; ++/Helvetica-BoldOblique /ArialCyrMT-BoldItalic ; ++ ++/CourierCyrPS (cour8.pfb) ; ++% /Courier /CourierCyrPS ; ++/CourierCyrPS-Bold (courbd8.pfb) ; ++% /Courier-Bold /CourierCyrPS-Bold ; ++/CourierCyrPS-Inclined (couri8.pfb) ; ++% /Courier-Oblique /CourierCyrPS-Inclined ; ++/CourierCyrPS-BoldInclined (courbi8.pfb) ; ++% /Courier-BoldOblique /CourierCyrPS-BoldInclined ; ++ ++/TimesNRCyrMT (times8.pfb) ; ++/Times-Roman /TimesNRCyrMT ; ++/TimesNRCyrMT-Bold (timesbd8.pfb) ; ++/Times-Bold /TimesNRCyrMT-Bold ; ++/TimesNRCyrMT-Inclined (timesi8.pfb) ; ++/Times-Italic /TimesNRCyrMT-Inclined ; ++/TimesNRCyrMT-BoldInclined (timesbi8.pfb) ; ++/Times-BoldItalic /TimesNRCyrMT-BoldInclined ; ++ ++/ERKurierKOI8RRegular (cokoi8n.pfb) ; ++/Courier /ERKurierKOI8RRegular ; ++/ERKurierKOI8RBold (cokoi8b.pfb) ; ++/Courier-Bold /ERKurierKOI8RBold ; ++/ERKurierKOI8RItalic (cokoi8i.pfb) ; ++/Courier-Oblique /ERKurierKOI8RItalic ; ++/ERKurierKOI8RBoldItalic (cokoi8bi.pfb) ; ++/Courier-BoldOblique /ERKurierKOI8RBoldItalic ; diff --git a/russian/koi8r-ps/pkg-comment b/russian/koi8r-ps/pkg-comment new file mode 100644 index 000000000000..b8e33985320a --- /dev/null +++ b/russian/koi8r-ps/pkg-comment @@ -0,0 +1 @@ +Add Russian (KOI8) fonts to your PostScript fonts collection. diff --git a/russian/koi8r-ps/pkg-deinstall b/russian/koi8r-ps/pkg-deinstall new file mode 100644 index 000000000000..4b9a4235c8bb --- /dev/null +++ b/russian/koi8r-ps/pkg-deinstall @@ -0,0 +1,35 @@ +#!/bin/sh +if [ "$2" = "POST-DEINSTALL" ] ; then exit ; fi +if ! [ -e "${PKG_PREFIX}"/share/koi8r-ps/fontmap.path ] ; then + cat << END_WARNING + The file "${PKG_PREFIX}"/share/koi8r-ps/fontmap.path does not exist. + Unable to patch the GhostScript's Fontmap to stop using the + Cyrillic fonts, which you are removing, yb default. +END_WARNING + exit +fi + + +FONTMAP=`cat "${PKG_PREFIX}"/share/koi8r-ps/fontmap.path` +if [ -e "$FONTMAP" ] ; then + cat << EXPLANATION + Patching the file + $FONTMAP + to tell GhostScript to stop looking for the fonts in this package. +EXPLANATION + env SIMPLE_BACKUP_SUFFIX=.CyrPS VERSION_CONTROL= \ + patch -l -N -R "$FONTMAP" "${PKG_PREFIX}/share/koi8r-ps/Fontmap.diff" \ + && rm -f "$FONTMAP".CyrPS +else + if [ "$FONTMAP" != "/nicht/" ] ; then + cat << END_WARNING + + The file + $FONTMAP + is recorded as the one patched during the isntallation of this + package. However, the file does not exist now, so we can not + reverse the patch. You _may_ have problem using GhostScript now. + +END_WARNING + fi +fi diff --git a/russian/koi8r-ps/pkg-descr b/russian/koi8r-ps/pkg-descr new file mode 100644 index 000000000000..9e59c9f93d58 --- /dev/null +++ b/russian/koi8r-ps/pkg-descr @@ -0,0 +1,16 @@ +This port tries to follow numerous suggestions and HOWTOs posted on the +web about printing and viewing PostScript files containing Russian +characters (in KOI8 encoding, are there others?). + +In installs the fonts taken from + ftp://ftp.kapella.gpi.ru/pub/cyrillic/psfonts/ + +into their own ${PREFIX}/CyrPS directory, and places the +infonts.dir/fonts.scale there for your X-server's perusal. + +If you happen to have ghostscript installed, it will also append its +Fontmap file to print/display with this fonts by default. + +Note, however, that this will NOT make your PostScript printers print in +Russian, since they have their own PostScript interpreters built in. Use +`koify' port for to deal with those. diff --git a/russian/koi8r-ps/pkg-message b/russian/koi8r-ps/pkg-message new file mode 100644 index 000000000000..8fecee3630fa --- /dev/null +++ b/russian/koi8r-ps/pkg-message @@ -0,0 +1,21 @@ +This port tries to patch the GhostScript's Fontmap automaticly, so +unless you have non-standard GhostScript installation (or if you +installed GhostScript afterwards), you should not have to do anything. + +For your X-server to use the fonts, you have to add the +${PREFIX}/share/CyrPS (usually, /usr/local/share/CyrPS) to the server's +font-path. Use ``xset fp+'' to do this for the current X-session and +consult your X-server's documentation to make this permanent. + +For gv to use the newly installed KOI8 fonts, it may have to start +GhostScript with the ``-dNOPLATFONTS'' option. One way to ensure this is +to add -dNOPLATFONTS to the GV.gsX11Device resource -- either in the +/usr/X11R6/lib/X11/app-defaults/GV, or in individual's ~/.Xdefaults. An +individual user can also put this into his or her ~/.gv file, by +starting up gv, choosing the menu option ``Ghostscript Options'' from +the ``State'' menu and typing in ``-dNOPLATFONTS'' into the ``Device'' +entry. + +This package will NOT by itself help you print Cyrillic on PostScript +printers -- they use their own PostScript engines (not GhostScript). The +port russian/koify may help you with those. diff --git a/russian/koi8r-ps/pkg-plist b/russian/koi8r-ps/pkg-plist new file mode 100644 index 000000000000..6a793747ef60 --- /dev/null +++ b/russian/koi8r-ps/pkg-plist @@ -0,0 +1,53 @@ +share/koi8r-ps/fontmap.path +share/koi8r-ps/Fontmap.diff +share/koi8r-ps/fonts.dir +share/koi8r-ps/fonts.scale +share/koi8r-ps/arial8.afm +share/koi8r-ps/arialbd8.afm +share/koi8r-ps/arialbi8.afm +share/koi8r-ps/ariali8.afm +share/koi8r-ps/cokoi8b.afm +share/koi8r-ps/cokoi8bi.afm +share/koi8r-ps/cokoi8i.afm +share/koi8r-ps/cokoi8n.afm +share/koi8r-ps/cour8.afm +share/koi8r-ps/courbd8.afm +share/koi8r-ps/courbi8.afm +share/koi8r-ps/couri8.afm +share/koi8r-ps/times8.afm +share/koi8r-ps/timesbd8.afm +share/koi8r-ps/timesbi8.afm +share/koi8r-ps/timesi8.afm +share/koi8r-ps/arial8.pfb +share/koi8r-ps/arial8.pfm +share/koi8r-ps/arialbd8.pfb +share/koi8r-ps/arialbd8.pfm +share/koi8r-ps/arialbi8.pfb +share/koi8r-ps/arialbi8.pfm +share/koi8r-ps/ariali8.pfb +share/koi8r-ps/ariali8.pfm +share/koi8r-ps/cokoi8b.pfb +share/koi8r-ps/cokoi8b.pfm +share/koi8r-ps/cokoi8bi.pfb +share/koi8r-ps/cokoi8bi.pfm +share/koi8r-ps/cokoi8i.pfb +share/koi8r-ps/cokoi8i.pfm +share/koi8r-ps/cokoi8n.pfb +share/koi8r-ps/cokoi8n.pfm +share/koi8r-ps/cour8.pfb +share/koi8r-ps/cour8.pfm +share/koi8r-ps/courbd8.pfb +share/koi8r-ps/courbd8.pfm +share/koi8r-ps/courbi8.pfb +share/koi8r-ps/courbi8.pfm +share/koi8r-ps/couri8.pfb +share/koi8r-ps/couri8.pfm +share/koi8r-ps/times8.pfb +share/koi8r-ps/times8.pfm +share/koi8r-ps/timesbd8.pfb +share/koi8r-ps/timesbd8.pfm +share/koi8r-ps/timesbi8.pfb +share/koi8r-ps/timesbi8.pfm +share/koi8r-ps/timesi8.pfb +share/koi8r-ps/timesi8.pfm +@dirrm share/koi8r-ps |