Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 98513 - manpages-ru-0.98.ebuild (Update)
Summary: manpages-ru-0.98.ebuild (Update)
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: No maintainer - Look at if you want to take care of it
Depends on:
Reported: 2005-07-09 15:55 UTC by EdiG
Modified: 2008-08-04 18:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---

manpages-ru-0.98.ebuild (manpages-ru-0.98.ebuild,1.32 KB, text/plain)
2005-07-09 15:57 UTC, EdiG

Note You need to log in before you can comment on or make changes to this bug.
Description EdiG 2005-07-09 15:55:10 UTC
A collection of manual pages translated into Russian
Comment 1 EdiG 2005-07-09 15:57:19 UTC
Created attachment 63040 [details]

Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-07-10 01:05:12 UTC
Does this fix Bug 92017 or is the encoding still koi8-r?
Comment 3 EdiG 2005-07-12 11:34:42 UTC
Comment on attachment 63040 [details]

># 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"
>KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
>src_unpack() {
>	unpack ${A}
>	cd "${S}"
>src_compile() {  
>      return
>src_install() {
zcat "$1" | iconv -f utf8 -t koi8-r | gzip -c >"$" "$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
>pkg_postinst() {
>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"
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-08-04 15:16:58 UTC
(In reply to comment #3)
> zcat "$1" | iconv -f utf8 -t koi8-r | gzip -c >"$" "$1"");}'

Huh? We want utf-8 manpages, not koi8-r or anything like that, at least with
USE="unicode" set. See the other bug. 
Comment 5 SpanKY gentoo-dev 2005-09-01 21:29:04 UTC
now in portage, thanks
Comment 6 Pun 2008-08-04 18:04:54 UTC
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.