From 86a674422816e678646ee0c6c89fa70d65a86fca Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Thu, 7 Jun 2012 21:51:48 +0000 Subject: Extract to ${WORKDIR}/${P} rather than ${S}. --- eclass/vcs-snapshot.eclass | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'eclass/vcs-snapshot.eclass') diff --git a/eclass/vcs-snapshot.eclass b/eclass/vcs-snapshot.eclass index 674836033b5f..87293ad709fe 100644 --- a/eclass/vcs-snapshot.eclass +++ b/eclass/vcs-snapshot.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/vcs-snapshot.eclass,v 1.2 2012/03/19 08:52:49 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/vcs-snapshot.eclass,v 1.3 2012/06/07 21:51:48 mgorny Exp $ # @ECLASS: vcs-snapshot.eclass # @MAINTAINER: @@ -9,7 +9,8 @@ # @DESCRIPTION: # This eclass provides a convenience src_unpack() which does support # working with snapshots generated by various VCS-es. It unpacks those -# to ${S} rather than the original directory containing commit id. +# to ${WORKDIR}/${P} rather than the original directory containing +# the commit id. # # Note that this eclass handles only unpacking. You need to specify # SRC_URI yourself, and call any autoreconfiguration as necessary. @@ -41,5 +42,5 @@ vcs-snapshot_src_unpack() { # github, bitbucket: username-projectname-hash # gitweb: projectname-tagname-hash - mv *-*-[0-9a-f]*[0-9a-f]/ "${S}" || die + mv *-*-[0-9a-f]*[0-9a-f]/ "${WORKDIR}"/${P} || die } -- cgit v1.2.3-65-gdbad