# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit distutils DESCRIPTION="Toolkit to convert between many translation formats" HOMEPAGE="http://translate.sourceforge.net" SRC_URI="mirror://sourceforge/translate/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="doc" src_install() { distutils_src_install use doc && ( ebegin "Installing documentation" dohtml translate/doc/* -r eend ) for file in $(ls "${D}/usr/bin" | grep -v py$); do # lookupservice.py must not be run # pocount has no --man argument $file --man > "${T}/$(basename $file).1" 2> /dev/null || continue doman "${T}/$(basename $file).1" done } pkg_postinst() { distutils_pkg_postinst }