--- /usr/gentoo-x86/sys-devel/binutils/binutils-2.14.90.0.2.ebuild 2003-06-10 01:37:36.000000000 +0000 +++ binutils-2.14.90.0.2.ebuild 2003-06-10 01:49:27.000000000 +0000 @@ -1,13 +1,13 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /home/cvsroot/gentoo-x86/sys-devel/binutils/binutils-2.14.90.0.2.ebuild,v 1.4 2003/06/08 21:30:59 lu_zero Exp $ +# $Header: /home/cvsroot/gentoo-x86/sys-devel/binutils/binutils-2.14.90.0.1-r1.ebuild,v 1.3 2003/05/09 06:49:38 kumba Exp $ IUSE="nls bootstrap build" # NOTE to Maintainer: ChangeLog states that it no longer use perl to build # the manpages, but seems this is incorrect .... -inherit eutils libtool flag-o-matic +inherit eutils libtool flag-o-matic crosscompile # Generate borked binaries. Bug #6730 filter-flags "-fomit-frame-pointer -fssa" @@ -18,9 +18,12 @@ mirror://kernel/devel/binutils/test/${P}.tar.bz2" HOMEPAGE="http://sources.redhat.com/binutils/" -SLOT="0" +#SLOT="0" +cross-setslot "0" +cross-check + LICENSE="GPL-2 | LGPL-2" -KEYWORDS="~x86 ppc -alpha ~sparc ~mips -hppa -arm" +KEYWORDS="x86 ~ppc -alpha ~sparc ~mips -hppa -arm" DEPEND="virtual/glibc >=sys-apps/portage-2.0.21 @@ -75,6 +78,9 @@ # Fix /usr/lib/libbfd.la elibtoolize --portage + [ -n "${CBUILD}" ] && myconf="${myconf} --build=${CBUILD}" + [ -n "${CCHOST}" ] && myconf="${myconf} --target=${CCHOST}" + ./configure --enable-shared \ --enable-64-bit-bfd \ --prefix=/usr \ @@ -107,6 +113,13 @@ infodir=${D}/usr/share/info \ install || die + if cross-target; then + # nuke libibery.so and documentation + rm -rf "${D}/usr/lib" "${D}/usr/share" + return 0 + fi + # everything else is only installed with the native tools + insinto /usr/include doins include/libiberty.h