diff options
author | ache <ache@FreeBSD.org> | 1995-09-01 04:01:51 +0800 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1995-09-01 04:01:51 +0800 |
commit | 2e0a5c65e7fcd2835bab1673386450112abcb2ff (patch) | |
tree | 213c44717b2828c1cf191aa702f604d1d432ade5 /russian/X.language | |
parent | 05964313ffb05cfb1552460b4b752cd4b5d2d55b (diff) | |
download | freebsd-ports-graphics-2e0a5c65e7fcd2835bab1673386450112abcb2ff.tar.gz freebsd-ports-graphics-2e0a5c65e7fcd2835bab1673386450112abcb2ff.tar.zst freebsd-ports-graphics-2e0a5c65e7fcd2835bab1673386450112abcb2ff.zip |
X11 locale/nls setup for koi8-r
Diffstat (limited to 'russian/X.language')
-rw-r--r-- | russian/X.language/Makefile | 112 | ||||
-rw-r--r-- | russian/X.language/files/nls_C | 86 | ||||
-rw-r--r-- | russian/X.language/files/nls_alias_list | 3 | ||||
-rw-r--r-- | russian/X.language/files/nls_dir_list | 2 | ||||
-rw-r--r-- | russian/X.language/files/nls_koi8-r | 80 | ||||
-rw-r--r-- | russian/X.language/files/replace_nls_list | 1 | ||||
-rw-r--r-- | russian/X.language/pkg-comment | 1 | ||||
-rw-r--r-- | russian/X.language/pkg-descr | 1 | ||||
-rw-r--r-- | russian/X.language/pkg-plist | 9 |
9 files changed, 295 insertions, 0 deletions
diff --git a/russian/X.language/Makefile b/russian/X.language/Makefile new file mode 100644 index 00000000000..324fdfa27a4 --- /dev/null +++ b/russian/X.language/Makefile @@ -0,0 +1,112 @@ +# New ports collection makefile for: X.language +# Version required: X11R6 +# Date created: 31 Aug 1995 +# Whom: ache +# +# $Id: Makefile,v 1.1.1.1 1995/08/30 00:49:35 ache Exp $ +# + +PKGNAME= russian-X11 +CATEGORIES+= x11 + +MAINTAINER= ache@FreeBSD.ORG + +EXEC_DEPENDS += ${X11BASE}/bin/xinit:${PORTSDIR}/x11/XFree86 + +NO_EXTRACT= YES +NO_WRKSUBDIR= YES +NO_CONFIGURE= YES +NO_PATCH= YES +NO_BUILD= YES +USE_X11= YES +PACKAGE_NOINSTALL= YES + +XLIB = ${X11BASE}/lib/X11 +INSTALL_DATA = ${INSTALL} -c -m 644 -o ${BINOWN} -g ${BINGRP} + +fetch: + @true + +extract: + @true + +patch: + @true + +configure: + @true + +build: + @true + +install: depends + if [ -d ${XLIB}/locale ] ; then \ + if [ ! -d ${XLIB}/locale/koi8-r ] ; then \ + mkdir ${XLIB}/locale/koi8-r; \ + chown ${BINOWN}.${BINGRP} ${XLIB}/locale/koi8-r; \ + chmod 755 ${XLIB}/locale/koi8-r; \ + fi; \ + if [ ! -f ${XLIB}/locale/koi8-r/XLC_LOCALE ] ; then \ + ${INSTALL_DATA} ${FILESDIR}/koi8-r ${XLIB}/locale/koi8-r/XLC_LOCALE; \ + fi; \ + if [ ! -f ${XLIB}/locale/tbl_data/tabkoi8-r ] ; then \ + ${INSTALL_DATA} ${FILESDIR}/tabkoi8-r ${XLIB}/locale/tbl_data; \ + fi; \ + grep -q KOI8-R ${XLIB}/locale/locale.alias || { \ + cp ${XLIB}/locale/locale.alias ${XLIB}/locale/locale.alias.bak; \ + grep -v -f ${FILESDIR}/replace_alias_list < ${XLIB}/locale/locale.alias.bak > ${XLIB}/locale/locale.alias; \ + cat ${FILESDIR}/locale_alias_list >> ${XLIB}/locale/locale.alias; \ + }; \ + grep -q KOI8-R ${XLIB}/locale/locale.dir || { \ + cp ${XLIB}/locale/locale.dir ${XLIB}/locale/locale.dir.bak; \ + cat ${FILESDIR}/locale_dir_list >> ${XLIB}/locale/locale.dir; \ + }; \ + fi + if [ ! -d ${XLIB}/nls ] ; then \ + mkdir ${XLIB}/nls; \ + chown ${BINOWN}.${BINGRP} ${XLIB}/nls; \ + chmod 755 ${XLIB}/nls; \ + fi + if [ ! -f ${XLIB}/nls/ru_SU.KOI8-R ] ; then \ + ${INSTALL_DATA} ${FILESDIR}/nls_koi8-r ${XLIB}/nls/ru_SU.KOI8-R; \ + fi + if [ ! -f ${XLIB}/nls/C ] ; then \ + ${INSTALL_DATA} ${FILESDIR}/nls_C ${XLIB}/nls/C; \ + fi + if [ ! -f ${XLIB}/nls/nls.dir ] ; then \ + dl=`wc -l < ${FILESDIR}/nls_dir_list`; \ + echo $$dl > ${XLIB}/nls/nls.dir; \ + cat ${FILESDIR}/nls_dir_list >> ${XLIB}/nls/nls.dir; \ + chown ${BINOWN}.${BINGRP} ${XLIB}/nls/nls.dir; \ + chmod 644 ${XLIB}/nls/nls.dir; \ + else \ + grep -q KOI8-R ${XLIB}/nls/nls.dir || { \ + cp ${XLIB}/nls/nls.dir ${XLIB}/nls/nls.dir.bak; \ + d_sub=`grep -f ${FILESDIR}/replace_nls_list < ${XLIB}/nls/nls.dir.bak | wc -l`; \ + d_cnt=`grep '^[1-9][0-9]*$$' ${XLIB}/nls/nls.dir.bak`; \ + d_add=`wc -l < ${FILESDIR}/nls_dir_list`; \ + d_new=`expr $$d_cnt + $$d_add - $$d_sub`; \ + grep -v -f ${FILESDIR}/replace_nls_list < ${XLIB}/nls/nls.dir.bak | \ + sed 's/^[1-9][0-9]*$$/'$$d_new/ > ${XLIB}/nls/nls.dir; \ + cat ${FILESDIR}/nls_dir_list >> ${XLIB}/nls/nls.dir; \ + }; \ + fi + if [ ! -f ${XLIB}/nls/nls.alias ] ; then \ + al=`wc -l < ${FILESDIR}/nls_alias_list`; \ + echo $$al > ${XLIB}/nls/nls.alias; \ + cat ${FILESDIR}/nls_alias_list >> ${XLIB}/nls/nls.alias; \ + chown ${BINOWN}.${BINGRP} ${XLIB}/nls/nls.alias; \ + chmod 644 ${XLIB}/nls/nls.alias; \ + else \ + grep -q KOI8-R ${XLIB}/nls/nls.alias || { \ + a_cnt=`grep '^[1-9][0-9]*$$' ${XLIB}/nls/nls.alias`; \ + a_add=`wc -l < ${FILESDIR}/nls_alias_list`; \ + a_new=`expr $$a_cnt + $$a_add`; \ + cp ${XLIB}/nls/nls.alias ${XLIB}/nls/nls.alias.bak; \ + sed "s/^[1-9][0-9]*$$/$$a_new/;q" < ${XLIB}/nls/nls.alias.bak > ${XLIB}/nls/nls.alias; \ + cat ${FILESDIR}/nls_alias_list >> ${XLIB}/nls/nls.alias; \ + }; \ + fi + @${MAKE} ${.MAKEFLAGS} fake-pkg + +.include <bsd.port.mk> diff --git a/russian/X.language/files/nls_C b/russian/X.language/files/nls_C new file mode 100644 index 00000000000..f10dcb68904 --- /dev/null +++ b/russian/X.language/files/nls_C @@ -0,0 +1,86 @@ +# +# $XConsortium: C,v 1.4 91/06/29 20:01:32 xguest Exp $ +# +# Copyright 1990, 1991 by OMRON Corporation, NTT Software Corporation, +# and Nippon Telegraph and Telephone Corporation +# Copyright 1991 by the Massachusetts Institute of Technology +# +# Permission to use, copy, modify, distribute, and sell this software and its +# documentation for any purpose is hereby granted without fee, provided that +# the above copyright notice appear in all copies and that both that +# copyright notice and this permission notice appear in supporting +# documentation, and that the names of OMRON, NTT Software, NTT, and M.I.T. +# not be used in advertising or publicity pertaining to distribution of the +# software without specific, written prior permission. OMRON, NTT Software, +# NTT, and M.I.T. make no representations about the suitability of this +# software for any purpose. It is provided "as is" without express or +# implied warranty. +# +# OMRON, NTT SOFTWARE, NTT, AND M.I.T. DISCLAIM ALL WARRANTIES WITH REGARD +# TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +# AND FITNESS, IN NO EVENT SHALL OMRON, NTT SOFTWARE, NTT, OR M.I.T. BE +# LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +# +# Author: Li Yuhong OMRON Corporation +# +######################################################################## +# +# Locale Name: C +# +XLC_ALL +C +END XLC_ALL + +XLC_ENCODING +STRING +END XLC_ENCODING + +XLC_FONTSET +# +# Definition Format: XLFD +# +# ASCII: ISO 8859-1 +iso8859-1:GL +END XLC_FONTSET + +XLC_CODESET +# +# type:CS0_mblen +# +L:1 +# +# This mapping list was generated by program, DO NOT CHANGE IT! +# +#00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 +# +{ + C0, C0, C0, C0, C0, C0, C0, C0, C0, C0, C0, C0, C0, C0, C0, C0, + C0, C0, C0, C0, C0, C0, C0, C0, C0, C0, C0, C0, C0, C0, C0, C0, + CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0, + CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0, + CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0, + CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0, + CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0, + CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0, + ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, + ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, + ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, + ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, + ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, + ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, + ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, + ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, ND, +} +# +# The following conversion list is hexdecimal. +# +# CS0: ASCII, ISO 8859-1 +# +(20=20:7f) +END XLC_CODESET +# +# END OF FILE +# diff --git a/russian/X.language/files/nls_alias_list b/russian/X.language/files/nls_alias_list new file mode 100644 index 00000000000..9254b9daacf --- /dev/null +++ b/russian/X.language/files/nls_alias_list @@ -0,0 +1,3 @@ +ru ru_SU.KOI8-R +ru_SU ru_SU.KOI8-R +russian ru_SU.KOI8-R diff --git a/russian/X.language/files/nls_dir_list b/russian/X.language/files/nls_dir_list new file mode 100644 index 00000000000..21f6b73f95e --- /dev/null +++ b/russian/X.language/files/nls_dir_list @@ -0,0 +1,2 @@ +C +ru_SU.KOI8-R diff --git a/russian/X.language/files/nls_koi8-r b/russian/X.language/files/nls_koi8-r new file mode 100644 index 00000000000..6e2c06a8337 --- /dev/null +++ b/russian/X.language/files/nls_koi8-r @@ -0,0 +1,80 @@ +# +# $XConsortium$ +# +# Copyright 1990, 1991 by OMRON Corporation, NTT Software Corporation, +# and Nippon Telegraph and Telephone Corporation +# Copyright 1991 by the Massachusetts Institute of Technology +# Changes Copyright (C) 1995 by Andrey A. Chernov, Moscow, Russia. +# +# Permission to use, copy, modify, distribute, and sell this software and its +# documentation for any purpose is hereby granted without fee, provided that +# the above copyright notice appear in all copies and that both that +# copyright notice and this permission notice appear in supporting +# documentation, and that the names of OMRON, NTT Software, NTT, and M.I.T. +# not be used in advertising or publicity pertaining to distribution of the +# software without specific, written prior permission. OMRON, NTT Software, +# NTT, and M.I.T. make no representations about the suitability of this +# software for any purpose. It is provided "as is" without express or +# implied warranty. +# +# OMRON, NTT SOFTWARE, NTT, AND M.I.T. DISCLAIM ALL WARRANTIES WITH REGARD +# TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +# AND FITNESS, IN NO EVENT SHALL OMRON, NTT SOFTWARE, NTT, OR M.I.T. BE +# LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +# +# Author: Hiroshi Kuribayashi OMRON Corporation. +# +######################################################################## +# +# Locale Name: ru_SU.KOI8-R +# +# This is definition of locale of koi8-r +# +XLC_ALL +ru_SU.KOI8-R +END XLC_ALL + +XLC_ENCODING +KOI8-R +END XLC_ENCODING + +XLC_FONTSET +iso8859-1:GL +# Really must be koi8-r, but not registered in X11/R5 +iso8859-5:GR +END XLC_FONTSET + +XLC_CODESET +# +# type:CS0_mblen:CS1_mblen +# +L:1:1 +# +# This mapping list was generated by program, DO NOT CHANGE IT! +# +#00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 +# +{C0, C0, C0, C0, C0, C0, C0, C0, C0, C0, C0, C0, C0, C0, C0, C0, + C0, C0, C0, C0, C0, C0, C0, C0, C0, C0, C0, C0, C0, C0, C0, C0, + CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0, + CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0, + CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0, + CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0, + CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0, + CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0,CS0, + CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1, + CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1, + CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1, + CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1, + CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1, + CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1, + CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1, + CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1,CS1, +} +END XLC_CODESET +# +# END OF FILE +# diff --git a/russian/X.language/files/replace_nls_list b/russian/X.language/files/replace_nls_list new file mode 100644 index 00000000000..c08f7ce1af3 --- /dev/null +++ b/russian/X.language/files/replace_nls_list @@ -0,0 +1 @@ +^C diff --git a/russian/X.language/pkg-comment b/russian/X.language/pkg-comment new file mode 100644 index 00000000000..3b63f790699 --- /dev/null +++ b/russian/X.language/pkg-comment @@ -0,0 +1 @@ +Setup X locale/nls for russian language (koi8-r) diff --git a/russian/X.language/pkg-descr b/russian/X.language/pkg-descr new file mode 100644 index 00000000000..3b63f790699 --- /dev/null +++ b/russian/X.language/pkg-descr @@ -0,0 +1 @@ +Setup X locale/nls for russian language (koi8-r) diff --git a/russian/X.language/pkg-plist b/russian/X.language/pkg-plist new file mode 100644 index 00000000000..7c030e8d987 --- /dev/null +++ b/russian/X.language/pkg-plist @@ -0,0 +1,9 @@ +@cwd /usr/X11R6 +lib/X11/locale/locale.alias +lib/X11/locale/locale.dir +lib/X11/locale/koi8-r/XLC_LOCALE +lib/X11/locale/tbl_data/tabkoi8-r +lib/X11/nls/nls.alias +lib/X11/nls/nls.dir +lib/X11/nls/ru_SU.KOI8-R +lib/X11/nls/C |