Why not use tools already in the eclass? The egit_sourcedir is exactly for
this... also you can just define s after the inherit...
Dne 27.11.2012 20:27 "Sergei Trofimovich" <[email protected]> napsal(a):
> Before the patch I had to move subdir(not very reliable):
> EGIT_REPO_URI="git://github.com/UU-ComputerScience/uhc.git"
> src_prepare() {
> mv EHC/* ./ || die
> }
>
> After the patch i can define it the usual way:
> EGIT_REPO_URI="git://github.com/UU-ComputerScience/uhc.git"
> S="${WORKDIR}/${P}/EHC
>
> Original ebuild:
> https://github.com/gentoo-haskell/gentoo-haskell/blob/master/dev-lang/uhc/uhc-9999.ebuild#L27
>
> Signed-off-by: Sergei Trofimovich <[email protected]>
> ---
> git-2.eclass | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/git-2.eclass b/git-2.eclass
> index 1ecc633..1a96978 100644
> --- a/git-2.eclass
> +++ b/git-2.eclass
> @@ -21,7 +21,7 @@ DEPEND="dev-vcs/git"
> # This variable specifies destination where the cloned
> # data are copied to.
> #
> -# EGIT_SOURCEDIR="${S}"
> +# EGIT_SOURCEDIR="${WORKDIR}/${P}"
>
> # @ECLASS-VARIABLE: EGIT_STORE_DIR
> # @DESCRIPTION:
> @@ -132,7 +132,7 @@ git-2_init_variables() {
> local esc_pn liverepo livebranch livecommit
> esc_pn=${PN//[-+]/_}
>
> - : ${EGIT_SOURCEDIR="${S}"}
> + : ${EGIT_SOURCEDIR="${WORKDIR}/${P}"}
>
> :
> ${EGIT_STORE_DIR:="${PORTAGE_ACTUAL_DISTDIR-${DISTDIR}}/egit-src"}
>
> --
> 1.8.0
>
>
>