# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-apps/texinfo/texinfo-4.2-r4.ebuild,v 1.6 2002/10/05 05:39:25 drobbins Exp $ IUSE="nls build" S=${WORKDIR}/${P} DESCRIPTION="The GNU info program and utilities" SRC_URI="ftp://gatekeeper.dec.com/pub/GNU/texinfo/${P}.tar.gz ftp://ftp.gnu.org/pub/gnu/texinfo/${P}.tar.gz" HOMEPAGE="http://www.gnu.org/software/texinfo/" KEYWORDS="x86 ppc sparc sparc64" SLOT="0" LICENSE="GPL-2" if [ "`use build`" ] ; then DEPEND="virtual/glibc" else DEPEND="virtual/glibc >=sys-libs/ncurses-5.2-r2 nls? ( sys-devel/gettext )" # >=sys-devel/automake-1.6" RDEPEND="virtual/glibc >=sys-libs/ncurses-5.2-r2" fi src_compile() { local myconf="" if [ -z "`use nls`" ] || [ "`use build`" ] ; then myconf="--disable-nls" fi export WANT_AUTOMAKE_1_6=1 ./configure --host=${CHOST} \ --prefix=/usr \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ ${myconf} || die make ${MAKEOPTS} || die } src_install() { if [ "`use build`" ] ; then dobin makeinfo/makeinfo util/{install-info,texi2dvi,texindex} else make DESTDIR=${D} \ infodir=/usr/share/info \ install || die exeinto /usr/sbin doexe ${FILESDIR}/mkinfodir cd ${D}/usr/share/info mv texinfo texinfo.info for i in texinfo-* do mv ${i} texinfo.info-${i#texinfo-*} done cd ${S} dodoc AUTHORS ChangeLog COPYING INTRODUCTION NEWS README TODO docinto info dodoc info/README docinto makeinfo dodoc makeinfo/README fi }