an easy and consistent way of installing software ported to FreeBSD
#!/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
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.
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/koi8r-ps (usually,
/usr/local/share/koi8r-ps) 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.
share/koi8r-ps/Fontmap.diff
share/koi8r-ps/arial8.afm
share/koi8r-ps/arial8.pfb
share/koi8r-ps/arial8.pfm
share/koi8r-ps/arialbd8.afm
share/koi8r-ps/arialbd8.pfb
share/koi8r-ps/arialbd8.pfm
share/koi8r-ps/arialbi8.afm
share/koi8r-ps/arialbi8.pfb
share/koi8r-ps/arialbi8.pfm
share/koi8r-ps/ariali8.afm
share/koi8r-ps/ariali8.pfb
share/koi8r-ps/ariali8.pfm
share/koi8r-ps/cokoi8b.afm
share/koi8r-ps/cokoi8b.pfb
share/koi8r-ps/cokoi8b.pfm
share/koi8r-ps/cokoi8bi.afm
share/koi8r-ps/cokoi8bi.pfb
share/koi8r-ps/cokoi8bi.pfm
share/koi8r-ps/cokoi8i.afm
share/koi8r-ps/cokoi8i.pfb
share/koi8r-ps/cokoi8i.pfm
share/koi8r-ps/cokoi8n.afm
share/koi8r-ps/cokoi8n.pfb
share/koi8r-ps/cokoi8n.pfm
share/koi8r-ps/cour8.afm
share/koi8r-ps/cour8.pfb
share/koi8r-ps/cour8.pfm
share/koi8r-ps/courbd8.afm
share/koi8r-ps/courbd8.pfb
share/koi8r-ps/courbd8.pfm
share/koi8r-ps/courbi8.afm
share/koi8r-ps/courbi8.pfb
share/koi8r-ps/courbi8.pfm
share/koi8r-ps/couri8.afm
share/koi8r-ps/couri8.pfb
share/koi8r-ps/couri8.pfm
share/koi8r-ps/fontmap.path
share/koi8r-ps/fonts.dir
share/koi8r-ps/fonts.scale
share/koi8r-ps/times8.afm
share/koi8r-ps/times8.pfb
share/koi8r-ps/times8.pfm
share/koi8r-ps/timesbd8.afm
share/koi8r-ps/timesbd8.pfb
share/koi8r-ps/timesbd8.pfm
share/koi8r-ps/timesbi8.afm
share/koi8r-ps/timesbi8.pfb
share/koi8r-ps/timesbi8.pfm
share/koi8r-ps/timesi8.afm
share/koi8r-ps/timesi8.pfb
share/koi8r-ps/timesi8.pfm
@dirrm share/koi8r-ps