- ${ECHO} "====> Preparing bootstrap compiler" && \
- ${MKDIR} bootstrap && \
- ${CP} -r ${DISTNAME} bootstrap && \
- cd bootstrap/${DISTNAME} && \
- ${LN} -sf ${PWD_CMD} utils/ghc-pwd/ghc-pwd && \
- ${ECHO} "====> Configuring for bootstrap compiler" && \
- ${SETENV} ${CONFIGURE_ENV} ./configure --enable-hc-boot ${CONFIGURE_ARGS} && \
- ${ECHO} "====> Extracting bootstrap HC archive" && \
- (cd .. && bsdtar jxfm ${DISTDIR}/${BOOTSTRAP_TARBALL}) && \
+ ${PHASE_MSG} "Preparing bootstrap compiler for ${PKGNAME}" && \
+ ${RM} -rf bootstrap && \
+ ${MKDIR} -p bootstrap/${DISTNAME}/utils/ghc-pwd/dist-boot && \
+ ${GTAR} -cf - ${DISTNAME} | ${GTAR} -C bootstrap -xpf - && \
+ ${LN} -sf ${PWD_CMD} bootstrap/${DISTNAME}/utils/ghc-pwd/dist-boot/ghc-pwd && \
+ ${TOUCH} ${.TARGET}
+
+${WRKDIR}/stamp-configure-hc-boot: ${WRKDIR}/stamp-prepare-bootstrap
+ ${RUN} cd ${WRKDIR}/bootstrap/${DISTNAME} && \
+ ${PHASE_MSG} "Configuring bootstrap compiler for ${PKGNAME}" && \
+ ${SETENV} ${CONFIGURE_ENV} ./configure --enable-hc-boot --with-ghc="" ${CONFIGURE_ARGS} && \
+ ${TOUCH} ${.TARGET}
+
+${WRKDIR}/stamp-extract-hc: ${WRKDIR}/stamp-configure-hc-boot
+ ${RUN} cd ${WRKDIR}/bootstrap/${DISTNAME} && \
+ ${PHASE_MSG} "Extracting bootstrap HC archive for ${PKGNAME}" && \
+ (cd .. && ${GTAR} -jxf ${DISTDIR}/${BOOTSTRAP_TARBALL}) && \