CONFIGURE_ARGS+= --with-gcc=${CCPATH}
.endif
-USE_TOOLS+= gmake bsdtar perl:run
+USE_TOOLS+= gmake gtar perl:run
CONFIGURE_ENV+= PerlCmd=${PERL5:Q}
# We don't want to extract all of the DISTFILEs.
${RUN} cd ${WRKDIR} && \
${ECHO} "====> Preparing bootstrap compiler" && \
${RM} -rf bootstrap && \
- ${MKDIR} -p bootstrap && \
- ${CP} -r ${DISTNAME} bootstrap && \
- cd bootstrap/${DISTNAME} && \
- ${MKDIR} -p utils/ghc-pwd/dist-boot && \
- ${LN} -sf ${PWD_CMD} utils/ghc-pwd/dist-boot/ghc-pwd && \
+ ${MKDIR} -p bootstrap/${DISTNAME}/utils/ghc-pwd/dist-boot && \
+ ${GTAR} -cf - ${DISTNAME} | ${GTAR} -C bootstrap -xpvf - && \
+ ${LN} -sf ${PWD_CMD} bootstrap/${DISTNAME}/utils/ghc-pwd/dist-boot/ghc-pwd && \
${TOUCH} $@
${WRKDIR}/stamp-configure-hc-boot: ${WRKDIR}/stamp-prepare-bootstrap
${WRKDIR}/stamp-extract-hc: ${WRKDIR}/stamp-configure-hc-boot
${RUN} cd ${WRKDIR}/bootstrap/${DISTNAME} && \
${ECHO} "====> Extracting bootstrap HC archive" && \
- (cd .. && bsdtar jxfm ${DISTDIR}/${BOOTSTRAP_TARBALL}) && \
+ (cd .. && ${GTAR} -jxf ${DISTDIR}/${BOOTSTRAP_TARBALL}) && \
${SH} mkfiles && \
${TOUCH} $@