# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v 1.59 2005/08/13 08:10:53 phreak Exp $
-
-# Current Maintainer: Tal Peer <coredumb@gentoo.org>
-# Original Author: Dan Armak <danarmak@gentoo.org>
-
-# SSH auth code by Danny <danny.milo@gmx.net>
-
-# SSH password authentication support and host key verification
-# support by Jeremy Maitin-Shepard <jbms@gentoo.org>
+# $Header: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v 1.60 2005/09/21 23:19:08 vapier Exp $
+inherit eutils
# This eclass provides the generic cvs fetching functions. To use
# this from an ebuild, set the `ebuild-configurable settings' as
if [ -n "$PATCHES" ]; then
debug-print "$FUNCNAME: PATCHES=$PATCHES, S=$S, autopatching"
cd "$S"
- for x in $PATCHES; do
- debug-print "patching from $x"
- patch -p0 < "$x"
- done
+ epatch ${PATCHES}
# Make sure we don't try to apply patches more than once,
# since cvs_src_unpack is usually called several times from
# e.g. kde-source_src_unpack
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-binutils.eclass,v 1.43 2005/08/05 03:37:45 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-binutils.eclass,v 1.44 2005/09/21 23:19:08 vapier Exp $
# We install binutils into CTARGET-VERSION specific directories. This lets
# us easily merge multiple versions for multiple targets (if we wish) and
cd "${MY_BUILDDIR}"
local myconf=""
+ is_cross && myconf="${myconf} --with-sysroot=/usr/${CTARGET}"
use nls \
&& myconf="${myconf} --without-included-gettext" \
|| myconf="${myconf} --disable-nls"
--libdir=${LIBPATH} \
--libexecdir=${LIBPATH} \
--includedir=${INCPATH} \
- --enable-shared \
--enable-64-bit-bfd \
+ --enable-shared \
--disable-werror \
${myconf} ${EXTRA_ECONF}"
echo ./configure ${myconf}
mv ${x} ${x/${CTARGET}-}
done
- mv "${D}"/usr/${CHOST}/${CTARGET}/include "${D}"/${INCPATH}
- mv "${D}"/usr/${CHOST}/${CTARGET}/lib/* "${D}"/${LIBPATH}/
- rm -r "${D}"/usr/${CHOST}
+ if [[ -d ${D}/usr/${CHOST}/${CTARGET} ]] ; then
+ mv "${D}"/usr/${CHOST}/${CTARGET}/include "${D}"/${INCPATH}
+ mv "${D}"/usr/${CHOST}/${CTARGET}/lib/* "${D}"/${LIBPATH}/
+ rm -r "${D}"/usr/${CHOST}
+ fi
else
insinto ${INCPATH}
doins "${S}/include/libiberty.h"