--- portage-2.0.50-r9.ebuild.orig 2004-08-05 10:57:30.974977288 -0700 +++ portage-2.0.50-r9.ebuild 2004-08-05 10:59:54.069223656 -0700 @@ -56,19 +56,21 @@ src_compile() { cd ${S}/src; ${CC:-gcc} ${CFLAGS} tbz2tool.c -o tbz2tool - cd ${S}/src/sandbox-1.1 - case ${ARCH} in - "x86") - make CFLAGS="-march=i386 -O1 -pipe" || die - ;; - "amd64") - check_multilib - make CFLAGS="-O2 -pipe" HAVE_64BIT_ARCH="${MULTILIB}" || die - ;; - *) - make || die - ;; - esac + if has sandbox $FEATURES; then + cd ${S}/src/sandbox-1.1 + case ${ARCH} in + "x86") + make CFLAGS="-march=i386 -O1 -pipe" || die + ;; + "amd64") + check_multilib + make CFLAGS="-O2 -pipe" HAVE_64BIT_ARCH="${MULTILIB}" || die + ;; + *) + make || die + ;; + esac + fi cd ${S}/bin } @@ -135,11 +137,13 @@ doexe ${S}/src/tbz2tool #install sandbox - cd ${S}/src/sandbox-1.1 - make clean - make DESTDIR=${D} \ - HAVE_64BIT_ARCH="${MULTILIB}" \ - install || die "Failed to compile sandbox" + if has sandbox $FEATURES; then + cd ${S}/src/sandbox-1.1 + make clean + make DESTDIR=${D} \ + HAVE_64BIT_ARCH="${MULTILIB}" \ + install || die "Failed to compile sandbox" + fi #symlinks dodir /usr/bin /usr/sbin