aboutsummaryrefslogtreecommitdiff
path: root/russian
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1998-07-29 16:11:38 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1998-07-29 16:11:38 +0000
commit12fb739dbcf4517f312ec46372b8919e4008a134 (patch)
tree06feadbfb30cac944d37ee46f9738ef9e7d2f4db /russian
parent0dfe7ccfe354dc16523277de44eebd98b929f856 (diff)
downloadports-12fb739dbcf4517f312ec46372b8919e4008a134.tar.gz
ports-12fb739dbcf4517f312ec46372b8919e4008a134.zip
Notes
Diffstat (limited to 'russian')
-rw-r--r--russian/X.language/Makefile52
-rw-r--r--russian/X.language/distinfo1
-rw-r--r--russian/X.language/pkg-plist20
3 files changed, 56 insertions, 17 deletions
diff --git a/russian/X.language/Makefile b/russian/X.language/Makefile
index 2453a121752f..9f4f56534948 100644
--- a/russian/X.language/Makefile
+++ b/russian/X.language/Makefile
@@ -3,43 +3,65 @@
# Date created: 31 Aug 1995
# Whom: ache
#
-# $Id: Makefile,v 1.16 1997/12/25 22:42:19 ache Exp $
+# $Id: Makefile,v 1.17 1998/06/27 05:19:26 asami Exp $
#
-DISTNAME= x6rus-2.2.0-bin
-PKGNAME= ru-X11-3.3
+DISTNAME= ru-X11-3.3
CATEGORIES= russian x11
MASTER_SITES= ftp://ftp.kiarchive.ru/pub/misc/fonts/cyrillic/xwindows/
-EXTRACT_SUFX= .tgz
+DISTFILES= x6rus-2.2.0-bin.tgz Type1.koi8-r.tgz
MAINTAINER= ache@FreeBSD.ORG
RUN_DEPENDS= ${X11BASE}/bin/xinit:${PORTSDIR}/x11/XFree86
-WRKSRC= ${WRKDIR}/cyrillic
+NO_WRKSUBDIR= YES
NO_BUILD= YES
USE_X11= YES
XLIB = ${X11BASE}/lib/X11
+CYRF = ${XLIB}/fonts/cyrillic
+T1DIR = ${XLIB}/fonts/Type1/fonts.dir
+T1SCALE = ${XLIB}/fonts/Type1/fonts.scale
#Be careful to not delete embedded tab characters
do-install:
- -mv ${XLIB}/fonts/cyrillic ${XLIB}/fonts/cyrillic.old
- -mkdir -p ${XLIB}/fonts/cyrillic/100dpi
- -mkdir -p ${XLIB}/fonts/cyrillic/75dpi
- -mkdir -p ${XLIB}/fonts/cyrillic/misc
+ -if [ ! -d ${CYRF}.old ]; then \
+ mv ${CYRF} ${CYRF}.old; \
+ fi
+ -mkdir -p ${CYRF}/100dpi
+ -mkdir -p ${CYRF}/75dpi
+ -mkdir -p ${CYRF}/misc
cd ${WRKSRC}; \
- ${INSTALL_DATA} xrus.info ${XLIB}/fonts/cyrillic; \
+ ${INSTALL_DATA} *.pfb ${XLIB}/fonts/Type1
+ grep -q cokoi8n ${T1DIR} || { \
+ cp ${T1DIR} ${T1DIR}.bak; \
+ d_cnt=`grep '^[1-9][0-9]*$$' ${T1DIR}.bak`; \
+ d_add=`wc -l < ${WRKSRC}/fonts.dir-scale.add`; \
+ d_new=`expr $$d_cnt + $$d_add`; \
+ sed 's/^[1-9][0-9]*$$/'$$d_new/ < ${T1DIR}.bak > ${T1DIR}; \
+ cat ${WRKSRC}/fonts.dir-scale.add >> ${T1DIR}; \
+ }
+ grep -q cokoi8n ${T1SCALE} || { \
+ cp ${T1SCALE} ${T1SCALE}.bak; \
+ d_cnt=`grep '^[1-9][0-9]*$$' ${T1SCALE}.bak`; \
+ d_add=`wc -l < ${WRKSRC}/fonts.dir-scale.add`; \
+ d_new=`expr $$d_cnt + $$d_add`; \
+ sed 's/^[1-9][0-9]*$$/'$$d_new/ < ${T1SCALE}.bak > ${T1SCALE}; \
+ cat ${WRKSRC}/fonts.dir-scale.add >> ${T1SCALE}; \
+ }
+ cd ${WRKSRC}/cyrillic; \
+ ${INSTALL_DATA} xrus.info ${CYRF}; \
for i in 100dpi 75dpi misc; do \
- ${INSTALL_DATA} $$i/* ${XLIB}/fonts/cyrillic/$$i; \
+ ${INSTALL_DATA} $$i/* ${CYRF}/$$i; \
done
if [ -f /etc/XF86Config ]; then \
- grep -q ${XLIB}/fonts/cyrillic/misc /etc/XF86Config || { \
+ grep -q ${CYRF}/misc /etc/XF86Config || { \
cp /etc/XF86Config /etc/XF86Config.old; \
(echo "/^[ ]*FontPath/i"; \
- echo " FontPath \"${XLIB}/fonts/cyrillic/75dpi\""; \
- echo " FontPath \"${XLIB}/fonts/cyrillic/100dpi\""; \
- echo " FontPath \"${XLIB}/fonts/cyrillic/misc\""; \
+ echo " FontPath \"${CYRF}/75dpi\""; \
+ echo " FontPath \"${CYRF}/100dpi\""; \
+ echo " FontPath \"${CYRF}/misc\""; \
echo "."; echo "w"; echo "q"; ) > /tmp/ed.$$$$; \
ed - /etc/XF86Config < /tmp/ed.$$$$; \
rm -f /tmp/ed.$$$$; \
diff --git a/russian/X.language/distinfo b/russian/X.language/distinfo
index bf01100abbec..b35e735d1941 100644
--- a/russian/X.language/distinfo
+++ b/russian/X.language/distinfo
@@ -1 +1,2 @@
MD5 (x6rus-2.2.0-bin.tgz) = 5694b3148a41d5ab93459df14b0480db
+MD5 (Type1.koi8-r.tgz) = e259c12fb32ebdf17ced45933dde139c
diff --git a/russian/X.language/pkg-plist b/russian/X.language/pkg-plist
index c1e80d9944bb..9acb6c77a160 100644
--- a/russian/X.language/pkg-plist
+++ b/russian/X.language/pkg-plist
@@ -1,5 +1,19 @@
-lib/X11/nls/nls.alias
-lib/X11/nls/ru_SU.KOI8-R
+lib/X11/fonts/Type1/arial8.pfb
+lib/X11/fonts/Type1/arialbd8.pfb
+lib/X11/fonts/Type1/arialbi8.pfb
+lib/X11/fonts/Type1/ariali8.pfb
+lib/X11/fonts/Type1/cokoi8b.pfb
+lib/X11/fonts/Type1/cokoi8bi.pfb
+lib/X11/fonts/Type1/cokoi8i.pfb
+lib/X11/fonts/Type1/cokoi8n.pfb
+lib/X11/fonts/Type1/cour8.pfb
+lib/X11/fonts/Type1/courbd8.pfb
+lib/X11/fonts/Type1/courbi8.pfb
+lib/X11/fonts/Type1/couri8.pfb
+lib/X11/fonts/Type1/times8.pfb
+lib/X11/fonts/Type1/timesbd8.pfb
+lib/X11/fonts/Type1/timesbi8.pfb
+lib/X11/fonts/Type1/timesi8.pfb
lib/X11/fonts/cyrillic/100dpi/crox1c.pcf.gz
lib/X11/fonts/cyrillic/100dpi/crox1cb.pcf.gz
lib/X11/fonts/cyrillic/100dpi/crox1cbo.pcf.gz
@@ -133,3 +147,5 @@ lib/X11/fonts/cyrillic/misc/koi8x13.pcf.gz
lib/X11/fonts/cyrillic/misc/koi9x15.pcf.gz
lib/X11/fonts/cyrillic/misc/koinil2.pcf.gz
lib/X11/fonts/cyrillic/xrus.info
+lib/X11/nls/nls.alias
+lib/X11/nls/ru_SU.KOI8-R