summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/texinfo/texinfo-4.2-r5.ebuild')
-rw-r--r--sys-apps/texinfo/texinfo-4.2-r5.ebuild74
1 files changed, 74 insertions, 0 deletions
diff --git a/sys-apps/texinfo/texinfo-4.2-r5.ebuild b/sys-apps/texinfo/texinfo-4.2-r5.ebuild
new file mode 100644
index 000000000000..8006214fc5b3
--- /dev/null
+++ b/sys-apps/texinfo/texinfo-4.2-r5.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/texinfo/texinfo-4.2-r5.ebuild,v 1.1 2002/07/08 21:41:46 azarah Exp $
+
+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"
+
+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_unpack() {
+ unpack ${A}
+
+ cd ${S}/doc
+ cp texinfo.txi texinfo.txi.orig
+ sed -e 's:setfilename texinfo:setfilename texinfo.info:' \
+ texinfo.txi.orig > texinfo.txi
+ cp Makefile.in Makefile.in.orig
+ sed -e 's:INFO_DEPS = texinfo:INFO_DEPS = texinfo.info:' \
+ Makefile.in.orig > Makefile.in
+}
+
+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
+
+ if [ ! -f ${D}/usr/share/info/texinfo.info ] ; then
+ die "Could not install texinfo.info!!!"
+ fi
+
+ dodoc AUTHORS ChangeLog COPYING INTRODUCTION NEWS README TODO
+ docinto info
+ dodoc info/README
+ docinto makeinfo
+ dodoc makeinfo/README
+ fi
+}
+