A collection of manual pages translated into Russian
Created attachment 63040 [details] manpages-ru-0.98.ebuild manpages-ru-0.98.ebuild
Does this fix Bug 92017 or is the encoding still koi8-r?
Comment on attachment 63040 [details] manpages-ru-0.98.ebuild ># Copyright 1999-2005 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/sys-apps/man-pages/man-pages-2.05.ebuild,v 1.1 2005/06/29 23:28:49 vapier Exp $ > >inherit eutils > >DESCRIPTION="A collection of manual pages translated into Russian" >HOMEPAGE="http://www.linuxshare.ru/projects/trans/mans.html" >SRC_URI="http://www.linuxshare.ru/projects/trans/manpages-ru-${PV}.tar.bz2" > > >LICENSE="GPL-2" >SLOT="0" >KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" >IUSE="" > >RDEPEND="sys-apps/man" > >src_unpack() { > unpack ${A} > cd "${S}" >} > >src_compile() { > return >} > >src_install() { zcat "$1" | iconv -f utf8 -t koi8-r | gzip -c >"$1.new" "$1"");}' >locale x >for x in *; do > if [ -d "$x" ]; then > for z in $(for y in $x/*.[1-9]; do echo ${y##*.}; done | sort | uniq); do > einfo "$(printf "install %-20s /usr/share/man/ru/man$z" $x:)" > > insinto /usr/share/man/ru/man$z > doins $x/*.$z > done > fi >done > >} >pkg_postinst() { > >einfo >einfo "You need to set appropriate MANPATCH variable to use" >einfo "Russian manpages." >einfo "echo "MANPATCH /usr/share/man/ru" >> /etc/man.conf" >einfo " if you used utf8 test your groff" >einfo "zcat /usr/share/man/ru/man1/chmod.1.gz |iconv -f koi8-r -t utf8 |groff -mtty-char -Tlatin1 -P-c -mandoc" > >}
(In reply to comment #3) > zcat "$1" | iconv -f utf8 -t koi8-r | gzip -c >"$1.new" "$1"");}' Huh? We want utf-8 manpages, not koi8-r or anything like that, at least with USE="unicode" set. See the other bug.
now in portage, thanks
Unfortunately the russian collection of man files has a whole zoo of different encodings right now. For example, /usr/share/man/ru/man1/mknod.1.bz2 is still encoded in KOI-8U, while /usr/share/man/ru/man1/su.1.bz2 is in UTF-8 as it should maybe it is sensible to add an extra enca pass to the ebuild at least with the "unicode" use flag on. There are many more improperly encoded pages.