Now after the unpacking of scons github package (scons*.gh.tar.gz for test env)
no files are removed from "/src" directory to store files that
are necessary for some Docbook tests (*.xsl, *.xml, *.ent etc)
and for additional Scons env tests (some *.py files within 'engine' directory).
Signed-off-by: Sergey Torokhov <torokhov_s_a@mail.ru>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
# inside src/ subdirectory to make our life easier
if use test; then
unpack "${P}.gh.tar.gz"
- rm -r "${P}/src" || die
else
- mkdir "${P}" || die
+ mkdir -p "${P}"/src || die
fi
- cd "${P}" || die
- unpack "${P}.tar.gz"
- mv "${P}" src || die
+ tar -C "${P}"/src --strip-components=1 -xzf "${DISTDIR}/${P}.tar.gz" || die
}
src_prepare() {