From: band-a-prend Date: Fri, 7 Jun 2019 21:15:54 +0000 (+0300) Subject: dev-util/scons: 3.0.5-r1 repair src_unpack() to fix Docbook tests X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=59a57bc85a8e9f85097ab41478c385ba00510997;p=gentoo.git dev-util/scons: 3.0.5-r1 repair src_unpack() to fix Docbook tests 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 Signed-off-by: Michał Górny --- diff --git a/dev-util/scons/scons-3.0.5-r1.ebuild b/dev-util/scons/scons-3.0.5-r1.ebuild index e4524ab4aba5..5dba6c1f8dab 100644 --- a/dev-util/scons/scons-3.0.5-r1.ebuild +++ b/dev-util/scons/scons-3.0.5-r1.ebuild @@ -43,14 +43,11 @@ src_unpack() { # 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() {