--- /usr/portage/dev-lang/ghc/ghc-5.04.2.ebuild 2003-03-09 00:51:01.000000000 +0100 +++ /usr/local/portage/dev-lang/ghc/ghc-5.04.2.ebuild 2003-03-11 14:31:20.000000000 +0100 @@ -107,7 +107,7 @@ local myconf use opengl && myconf="--enable-hopengl" || myconf="--disable-hopengl" - if test x$need_stage2 = xyes; then + if test x$need_stage1 = xyes; then echo ">>> Bootstrapping intermediate GHC ${PV} using GHC ${BASE_GHC_VERSION}" pushd "${STAGE1_B}" || die @@ -132,10 +132,12 @@ } src_install () { - make install \ - prefix="${D}/usr" \ - infodir="${D}/usr/share/info" \ - mandir="${D}/usr/share/man" || die + pushd "${STAGE2_B}" || die + make install \ + prefix="${D}/usr" \ + infodir="${D}/usr/share/info" \ + mandir="${D}/usr/share/man" || die + popd #need to remove ${D} from ghcprof script cd ${D}/usr/bin