# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/debianutils/debianutils-1.16.7-r4.ebuild,v 1.16 2004/11/28 12:47:07 josejx Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/debianutils/debianutils-1.16.7-r4.ebuild,v 1.17 2004/12/08 02:34:04 vapier Exp $
-inherit eutils
+inherit eutils flag-o-matic toolchain-funcs
DESCRIPTION="A selection of tools from Debian"
HOMEPAGE="http://packages.debian.org/unstable/base/debianutils.html"
IUSE="static build"
DEPEND="virtual/libc"
-RDEPEND="app-arch/bzip2
- !ppc-macos? ( sys-apps/coreutils )"
+RDEPEND="app-arch/bzip2"
src_unpack() {
unpack ${A}
}
src_compile() {
- if use static
- then
- emake LDFLAGS=-static || die
- else
- emake || die
- fi
+ use static && append-ldflags -static
+ emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" || die
}
src_install() {
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.0.51-r8.ebuild,v 1.2 2004/12/07 06:09:40 usata Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.0.51-r8.ebuild,v 1.3 2004/12/08 02:36:01 vapier Exp $
-inherit flag-o-matic eutils
+inherit flag-o-matic eutils toolchain-funcs
# If the old /lib/sandbox.so is in /etc/ld.so.preload, it can
# cause everything to segfault !!
src_compile() {
cd ${S}/src; ${CC:-gcc} ${CFLAGS} tbz2tool.c -o tbz2tool
cd ${S}/src/sandbox-1.1
+ export CC="$(tc-getCC)"
case ${ARCH} in
"x86")
make CFLAGS="-march=i386 -O1 -pipe" || die