Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Oct 2000 19:16:53 -0400 (EDT)
From:      Mikhail Teterin <mi@privatelabs.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/22368: new port x11-fonts/koi8u-monaco; new category: ukrainian
Message-ID:  <200010272316.e9RNGrU42439@misha.privatelabs.com>

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

>Number:         22368
>Category:       ports
>Synopsis:       new port x11-fonts/koi8u-monaco; new category: ukrainian
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 27 16:20:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Mikhail Teterin
>Release:        FreeBSD 4.1.1-STABLE i386
>Organization:
Virtual Estates, Inc.
>Environment:

>Description:

	Although FreeBSD now supports Ukrainian locale, there is
	no "official" source of koi8-u fonts -- not for the text
	console, nor for X11 windows.

	This ports installs 5 "fixed" fonts in this encoding.

	Note, that the  port of the Gemini family of  fonts -- a
	comprehensive replacement  of the Cronyx  koi8-r (koi8-u
	is a superset of koi8-r) is upcoming next week.

	For  this  reasons,  I'd  like to  propose  a  new  port
	category: ukrainian.

>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:
#
#	monacofonts
#	monacofonts/files
#	monacofonts/files/Makefile
#	monacofonts/pkg-message
#	monacofonts/pkg-descr
#	monacofonts/pkg-comment
#	monacofonts/distinfo
#	monacofonts/Makefile
#	monacofonts/pkg-plist
#
echo c - monacofonts
mkdir -p monacofonts > /dev/null 2>&1
echo c - monacofonts/files
mkdir -p monacofonts/files > /dev/null 2>&1
echo x - monacofonts/files/Makefile
sed 's/^X//' >monacofonts/files/Makefile << 'END-of-monacofonts/files/Makefile'
X.SUFFIXES:	.bdf .pcf.gz
X
XSTEMS:=	italic09 italic12 roman09 roman10 roman12
XPCFS:=	${STEMS:S/$/.pcf.gz/}
X
Xall:	${PCFS} fonts.dir fonts.alias
X
X.bdf.pcf.gz:
X	${X11BASE}/bin/bdftopcf < $< | gzip -9 > $@
X
Xfonts.dir: ${PCFS}
X	${X11BASE}/bin/mkfontdir
X
X# I don't know why ``isoir-111'' was  chosen for this fonts' encoding --
X# they  are in  koi8-u, so  the each  will have  a corresponding  alias.
X# Ukrainian koi8-u  is a  superset of  Russian koi8-r,  for applications
X# that hardcode koi8-r in them, but omit koi8-u -- there will be another
X# alias:
Xfonts.alias: fonts.dir
X	awk '/monaco/ {
X		name = $$2; gsub("isoir-111", "koi8-u", $$2);
X		print $$2 " " name; gsub("koi8-u", "koi8-r", $$2);
X		print $$2 " " name}' < fonts.dir > fonts.alias
X
XDIR=	${X11BASE}/lib/X11/fonts/koi8u-monaco
X
Xinstall: all
X	${MKDIR} ${DIR}
X	${INSTALL_DATA} ${PCFS} fonts.dir fonts.alias ${DIR}
END-of-monacofonts/files/Makefile
echo x - monacofonts/pkg-message
sed 's/^X//' >monacofonts/pkg-message << 'END-of-monacofonts/pkg-message'
X
X	For  your X-server  to use  the fonts,  you have  to add
X	the  ${X11BASE}/lib/X11/fonts/koi8u-monaco (X11BASE  is,
X	usually,  /usr/X11R6)  to  the server's  font-path.  Use
X	``xset fp+''  to do this  for the current  X-session and
X	consult  your  X-server's  documentation  to  make  this
X	permanent.
X
END-of-monacofonts/pkg-message
echo x - monacofonts/pkg-descr
sed 's/^X//' >monacofonts/pkg-descr << 'END-of-monacofonts/pkg-descr'
XMonaco  KOI8-U  Cyrillic fonts for X11  systems in BDF format.  Total of
Xfive bitmap fonts.
X
XThis  port  installs  PCF  versions  of  the  fonts  and  generates  the
Xfonts.alias file, which provides, for the koi8-u and koi8-r encodings --
Xsome applications have the encodings  (such as koi8-r) harcoded in them,
Xbut koi8-u is a superset of koi8-r.
X
XWWW: http://www.brama.com/compute/unix.html
END-of-monacofonts/pkg-descr
echo x - monacofonts/pkg-comment
sed 's/^X//' >monacofonts/pkg-comment << 'END-of-monacofonts/pkg-comment'
XA collection of 5 "fixed" fonts for X11 from www.brama.com
END-of-monacofonts/pkg-comment
echo x - monacofonts/distinfo
sed 's/^X//' >monacofonts/distinfo << 'END-of-monacofonts/distinfo'
XMD5 (monaco.zip) = e5d0aa91407c5a9616bdae346fdc36f0
END-of-monacofonts/distinfo
echo x - monacofonts/Makefile
sed 's/^X//' >monacofonts/Makefile << 'END-of-monacofonts/Makefile'
X# New ports collection makefile for: koi8rPS
X# Date created:         22 July 1999
X# Whom:                 mi@aldan.algebra.com
X#
X# $FreeBSD$
X#
X
XPORTNAME=	monaco
XPORTVERSION=	1.0
XCATEGORIES=	x11-fonts # ukrainian
XMASTER_SITES=	http://www.brama.com/compute/unix/
XPKGNAMEPREFIX=	koi8-u-
XPKGNAMESUFFIX=	-x11
XDISTNAME=	${PORTNAME}
X
XMAINTAINER=	mi@aldan.algebra.com
X
XBUILD_DEPENDS=	bdftopcf:${PORTSDIR}/x11/XFree86
X
XUSE_ZIP=	yes
XUSE_X_PREFIX=	yes
X
XWRKSRC=		${WRKDIR}/Monaco.bdf
X
XMAKEFILE=	${FILESDIR}/Makefile
XMAKE_ENV+=	INSTALL_DATA="${INSTALL_DATA}" MKDIR="${MKDIR}"
XMAKE_ARGS+=	-j 2
X
Xpost-install:
X	${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-monacofonts/Makefile
echo x - monacofonts/pkg-plist
sed 's/^X//' >monacofonts/pkg-plist << 'END-of-monacofonts/pkg-plist'
Xlib/X11/fonts/koi8u-monaco/italic09.pcf.gz
Xlib/X11/fonts/koi8u-monaco/italic12.pcf.gz
Xlib/X11/fonts/koi8u-monaco/roman09.pcf.gz
Xlib/X11/fonts/koi8u-monaco/roman10.pcf.gz
Xlib/X11/fonts/koi8u-monaco/roman12.pcf.gz
Xlib/X11/fonts/koi8u-monaco/fonts.dir
Xlib/X11/fonts/koi8u-monaco/fonts.alias
X@dirrm lib/X11/fonts/koi8u-monaco
END-of-monacofonts/pkg-plist
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?200010272316.e9RNGrU42439>