diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 1998-08-03 08:49:00 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 1998-08-03 08:49:00 +0000 |
commit | 96e55b94b4edc92c33192492ec47d581a64fd45c (patch) | |
tree | 10a2eac4e9bd54fb3e49aafaa8cf7271fdbbca49 /russian | |
parent | 2bb6d975786ac3efb6908c934b6c9f00476706bb (diff) | |
download | ports-96e55b94b4edc92c33192492ec47d581a64fd45c.tar.gz ports-96e55b94b4edc92c33192492ec47d581a64fd45c.zip |
Notes
Diffstat (limited to 'russian')
-rw-r--r-- | russian/X.language/Makefile | 61 |
1 files changed, 3 insertions, 58 deletions
diff --git a/russian/X.language/Makefile b/russian/X.language/Makefile index 27f06bd73b41..8c848b26d79a 100644 --- a/russian/X.language/Makefile +++ b/russian/X.language/Makefile @@ -28,8 +28,6 @@ USE_X11= YES PKGTMP = ${X11BASE}/.Xinstmp 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: @@ -41,33 +39,11 @@ do-install: -mkdir -p ${CYRF}/misc cd ${WRKSRC}; \ ${INSTALL_DATA} *.pfb ${XLIB}/fonts/Type1 - for i in ${T1DIR} ${T1SCALE}; do \ - grep -q cokoi8n $$i || { \ - cp $$i $$i.bak; \ - d_cnt=`grep '^[1-9][0-9]*$$' $$i.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/ < $$i.bak > $$i; \ - cat ${WRKSRC}/fonts.dir-scale.add >> $$i; \ - }; \ - done cd ${WRKSRC}/cyrillic; \ ${INSTALL_DATA} xrus.info ${CYRF}; \ for i in 100dpi 75dpi misc; do \ ${INSTALL_DATA} $$i/* ${CYRF}/$$i; \ done - if [ -f /etc/XF86Config ]; then \ - grep -q ${CYRF}/misc /etc/XF86Config || { \ - cp /etc/XF86Config /etc/XF86Config.old; \ - (echo "/^[ ]*FontPath/i"; \ - 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.$$$$; \ - }; \ - fi # ${INSTALL_DATA} ${FILESDIR}/xmodmap ${XLIB}/xinit/.Xmodmap if [ ! -d ${XLIB}/nls ] ; then \ mkdir ${XLIB}/nls; \ @@ -80,40 +56,9 @@ do-install: 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} pre-package + ${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL + ${MAKE} post-package pre-package: -mkdir -p ${PKGTMP} |