Unpack the bootstrap archive for the current platform rather than
all bootstrap tarballs in SRC_URI. This provides significant space
savings during build.
Closes: https://bugs.gentoo.org/680860
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Signed-off-by: William Hubbs <williamh@gentoo.org>
{
if [[ ${PV} = 9999 ]]; then
git-r3_src_unpack
+ else
+ unpack "go${MY_PV}.src.tar.gz"
fi
- default
+ use gccgo ||
+ unpack "go-$(go_os ${CBUILD})-$(go_arch ${CBUILD})-${BOOTSTRAP_VERSION}.tbz"
}
src_compile()
{
if [[ ${PV} = 9999 ]]; then
git-r3_src_unpack
+ else
+ unpack "go${MY_PV}.src.tar.gz"
fi
- default
+ use gccgo ||
+ unpack "go-$(go_os ${CBUILD})-$(go_arch ${CBUILD})-${BOOTSTRAP_VERSION}.tbz"
}
src_compile()