# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/root/portage/app-text/lesspipe/lesspipe-1.37.ebuild,v 1.2 2004/02/12 19:01:49 moshe Exp $ # DESCRIPTION="Filter for less(1)" HOMEPAGE="http://www-zeuthen.desy.de/~friebel/unix/lesspipe.html" SRC_URI="http://www-zeuthen.desy.de/~friebel/unix/less/${P}.tar.gz" #SRC_URI="ftp://ftp.ifh.de/pub/unix/utililty/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~ppc ~sparc ~alpha" IUSE="zlib perl pdflib bidi rpm" DEPEND="dev-lang/perl" # dvi2tty RDEPEND="sys-apps/file \ app-arch/bzip2 \ rpm? ( app-arch/rpm ) \ zlib? ( app-arch/unzip ) \ sys-apps/groff \ perl? ( dev-lang/perl ) \ app-text/pstotext \ app-text/ghostscript \ sys-devel/binutils \ app-text/html2text \ net-www/lynx \ pdflib? ( app-text/xpdf ) \ app-text/antiword \ app-text/unrtf \ media-sound/mp3info \ bidi? ( app-i18n/bidiv )" src_compile() { ./configure --default || die "./configure failed" } src_install() { dobin lesspipe.sh dodir /etc/env.d insinto /etc/env.d if [ `use bidi` ]; then newins ${FILESDIR}/71lesspipe.bidiv 71lesspipe else doins ${FILESDIR}/71lesspipe fi dodoc BUGS ChangeLog COPYING INSTALL README english.txt german.txt } pkg_postinst() { einfo "Don't forget to run env-update" }