--- /usr/portage/app-text/tree/tree-1.5.0.ebuild 2005-09-10 11:33:05 +0000 +++ tree-1.5.0-r1.ebuild 2005-09-10 15:15:12 +0000 @@ -1,8 +1,11 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/tree/tree-1.5.0.ebuild,v 1.13 2005/08/30 14:15:49 ka0ttic Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/tree/tree-1.5.0i-r1.ebuild,v 1.14 2005/09/10 14:15:49 comio Exp $ -inherit toolchain-funcs bash-completion +# Added support for autotools and patch to compile under Gentoo/FreeBSD +# by comio + +inherit toolchain-funcs bash-completion eutils autotools DESCRIPTION="Lists directories recursively, and produces an indented listing of files." HOMEPAGE="http://mama.indstate.edu/users/ice/tree/" @@ -14,10 +17,20 @@ IUSE="" src_compile() { - emake \ - CC="$(tc-getCC)" \ - CFLAGS="${CFLAGS} -DLINUX_BIGFILE" \ - || die "emake failed" + econf || die + emake || die +} + + +src_unpack() { + unpack ${A} + epatch ${FILESDIR}/configure-gentoo.patch +# chmod +x ${S}/configure +# chmod +x ${S}/config.sub +# chmod +x ${S}/install-sh +# chmod +x ${S}/config.guess + cd ${S} + eautoreconf } src_install() {