# 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() { 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" }