public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [PATCH 1/2] Set default EGIT_SOURCEDIR to point to standard ${WORKDIR}/${P}. It allows "${S}" overriding in user's code as other eclasses do:
@ 2012-11-27 19:22 Sergei Trofimovich
  2012-11-27 19:22 ` [gentoo-dev] [PATCH 2/2] Allow user mangle distfiles' "${EGIT_DIR}" after actual git fetch Sergei Trofimovich
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Sergei Trofimovich @ 2012-11-27 19:22 UTC (permalink / raw
  To: gentoo-dev; +Cc: Michał Górny, Donnie Berkholz, Sergei Trofimovich

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 <slyfox@gentoo.org>
---
 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



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [gentoo-dev] [PATCH 2/2] Allow user mangle distfiles' "${EGIT_DIR}" after actual git fetch.
  2012-11-27 19:22 [gentoo-dev] [PATCH 1/2] Set default EGIT_SOURCEDIR to point to standard ${WORKDIR}/${P}. It allows "${S}" overriding in user's code as other eclasses do: Sergei Trofimovich
@ 2012-11-27 19:22 ` Sergei Trofimovich
  2012-11-27 19:49   ` Michał Górny
  2012-11-27 20:46   ` Tomáš Chvátal
  2012-11-27 20:18 ` [gentoo-dev] [PATCH 1/2] Set default EGIT_SOURCEDIR to point to standard ${WORKDIR}/${P}. It allows "${S}" overriding in user's code as other eclasses do: Davide Pesavento
  2012-11-27 20:32 ` Tomáš Chvátal
  2 siblings, 2 replies; 8+ messages in thread
From: Sergei Trofimovich @ 2012-11-27 19:22 UTC (permalink / raw
  To: gentoo-dev; +Cc: Michał Górny, Donnie Berkholz, Sergei Trofimovich

    EGIT_REPO_URI="https://github.com/ghc/ghc.git"
    requires user to run './sync-all fetch / ./sync-all pull'
    after actual 'git pull', which fetches 20 more repos for code changes.
    Upstream does not use submodules.

The patch injects user's callback right before 'git-2_move_source'.
Currently I abuse 'git-2_gc':

Original ebuild: https://github.com/gentoo-haskell/gentoo-haskell/blob/master/dev-lang/ghc/ghc-9999.ebuild#L180

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
---
 git-2.eclass | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/git-2.eclass b/git-2.eclass
index 1a96978..1bacef5 100644
--- a/git-2.eclass
+++ b/git-2.eclass
@@ -569,6 +569,29 @@ git-2_cleanup() {
 	unset EGIT_LOCAL_NONBARE
 }
 
+
+# @FUNCTION: git-2_fetch_user
+# @DESCRIPTION:
+# User-overridable callback allow user to update
+# sources in "${EGIT_DIR}" (current location).
+# Does nothing by default
+git-2_fetch_user() {
+	:
+}
+
+# @FUNCTION: git-2_post_fetch
+# @INTERNAL
+# Internal function calling user's callback
+# when "${EGIT_DIR}" needs more actions, than
+# simple fetch.
+git-2_post_fetch() {
+	debug-print-function ${FUNCNAME} "$@"
+
+	pushd "${EGIT_DIR}" > /dev/null
+	git-2_fetch_user
+	popd > /dev/null
+}
+
 # @FUNCTION: git-2_src_unpack
 # @DESCRIPTION:
 # Default git src_unpack function.
@@ -581,6 +604,7 @@ git-2_src_unpack() {
 	git-2_fetch "$@"
 	git-2_gc
 	git-2_submodules
+	git-2_post_fetch
 	git-2_move_source
 	git-2_branch
 	git-2_bootstrap
-- 
1.8.0



^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] [PATCH 2/2] Allow user mangle distfiles' "${EGIT_DIR}" after actual git fetch.
  2012-11-27 19:22 ` [gentoo-dev] [PATCH 2/2] Allow user mangle distfiles' "${EGIT_DIR}" after actual git fetch Sergei Trofimovich
@ 2012-11-27 19:49   ` Michał Górny
  2012-11-27 20:46   ` Tomáš Chvátal
  1 sibling, 0 replies; 8+ messages in thread
From: Michał Górny @ 2012-11-27 19:49 UTC (permalink / raw
  To: gentoo-dev; +Cc: slyfox, Donnie Berkholz

[-- Attachment #1: Type: text/plain, Size: 1901 bytes --]

On Tue, 27 Nov 2012 22:22:20 +0300
Sergei Trofimovich <slyfox@gentoo.org> wrote:

>     EGIT_REPO_URI="https://github.com/ghc/ghc.git"
>     requires user to run './sync-all fetch / ./sync-all pull'
>     after actual 'git pull', which fetches 20 more repos for code changes.
>     Upstream does not use submodules.
> 
> The patch injects user's callback right before 'git-2_move_source'.
> Currently I abuse 'git-2_gc':
> 
> Original ebuild: https://github.com/gentoo-haskell/gentoo-haskell/blob/master/dev-lang/ghc/ghc-9999.ebuild#L180
> 
> Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
> ---
>  git-2.eclass | 24 ++++++++++++++++++++++++
>  1 file changed, 24 insertions(+)
> 
> diff --git a/git-2.eclass b/git-2.eclass
> index 1a96978..1bacef5 100644
> --- a/git-2.eclass
> +++ b/git-2.eclass
> @@ -569,6 +569,29 @@ git-2_cleanup() {
>  	unset EGIT_LOCAL_NONBARE
>  }
>  
> +
> +# @FUNCTION: git-2_fetch_user
> +# @DESCRIPTION:
> +# User-overridable callback allow user to update
> +# sources in "${EGIT_DIR}" (current location).
> +# Does nothing by default
> +git-2_fetch_user() {
> +	:
> +}
> +
> +# @FUNCTION: git-2_post_fetch
> +# @INTERNAL
> +# Internal function calling user's callback
> +# when "${EGIT_DIR}" needs more actions, than
> +# simple fetch.
> +git-2_post_fetch() {
> +	debug-print-function ${FUNCNAME} "$@"
> +
> +	pushd "${EGIT_DIR}" > /dev/null
> +	git-2_fetch_user
> +	popd > /dev/null
> +}
> +
>  # @FUNCTION: git-2_src_unpack
>  # @DESCRIPTION:
>  # Default git src_unpack function.
> @@ -581,6 +604,7 @@ git-2_src_unpack() {
>  	git-2_fetch "$@"
>  	git-2_gc
>  	git-2_submodules
> +	git-2_post_fetch
>  	git-2_move_source
>  	git-2_branch
>  	git-2_bootstrap

That's not something that can or should be supported. This will confuse
at least smart-live-rebuild.

-- 
Best regards,
Michał Górny

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 316 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] [PATCH 1/2] Set default EGIT_SOURCEDIR to point to standard ${WORKDIR}/${P}. It allows "${S}" overriding in user's code as other eclasses do:
  2012-11-27 19:22 [gentoo-dev] [PATCH 1/2] Set default EGIT_SOURCEDIR to point to standard ${WORKDIR}/${P}. It allows "${S}" overriding in user's code as other eclasses do: Sergei Trofimovich
  2012-11-27 19:22 ` [gentoo-dev] [PATCH 2/2] Allow user mangle distfiles' "${EGIT_DIR}" after actual git fetch Sergei Trofimovich
@ 2012-11-27 20:18 ` Davide Pesavento
  2012-11-27 22:05   ` Sergei Trofimovich
  2012-11-27 20:32 ` Tomáš Chvátal
  2 siblings, 1 reply; 8+ messages in thread
From: Davide Pesavento @ 2012-11-27 20:18 UTC (permalink / raw
  To: gentoo-dev; +Cc: Michał Górny, Donnie Berkholz, Sergei Trofimovich

On Tue, Nov 27, 2012 at 11:22 AM, Sergei Trofimovich <slyfox@gentoo.org> wrote:
> 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 <slyfox@gentoo.org>
> ---
>  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
>
>

While in theory this makes sense, it also has the potential to break
ebuilds setting S="${WORKDIR}/foo" and then expecting the sources to
be inside "foo". IOW it's not backward compatible, is it?

Thanks,

Davide Pesavento (pesa)


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] [PATCH 1/2] Set default EGIT_SOURCEDIR to point to standard ${WORKDIR}/${P}. It allows "${S}" overriding in user's code as other eclasses do:
  2012-11-27 19:22 [gentoo-dev] [PATCH 1/2] Set default EGIT_SOURCEDIR to point to standard ${WORKDIR}/${P}. It allows "${S}" overriding in user's code as other eclasses do: Sergei Trofimovich
  2012-11-27 19:22 ` [gentoo-dev] [PATCH 2/2] Allow user mangle distfiles' "${EGIT_DIR}" after actual git fetch Sergei Trofimovich
  2012-11-27 20:18 ` [gentoo-dev] [PATCH 1/2] Set default EGIT_SOURCEDIR to point to standard ${WORKDIR}/${P}. It allows "${S}" overriding in user's code as other eclasses do: Davide Pesavento
@ 2012-11-27 20:32 ` Tomáš Chvátal
  2 siblings, 0 replies; 8+ messages in thread
From: Tomáš Chvátal @ 2012-11-27 20:32 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1488 bytes --]

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" <slyfox@gentoo.org> 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 <slyfox@gentoo.org>
> ---
>  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
>
>
>

[-- Attachment #2: Type: text/html, Size: 2300 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] [PATCH 2/2] Allow user mangle distfiles' "${EGIT_DIR}" after actual git fetch.
  2012-11-27 19:22 ` [gentoo-dev] [PATCH 2/2] Allow user mangle distfiles' "${EGIT_DIR}" after actual git fetch Sergei Trofimovich
  2012-11-27 19:49   ` Michał Górny
@ 2012-11-27 20:46   ` Tomáš Chvátal
  2012-11-27 21:46     ` Sergei Trofimovich
  1 sibling, 1 reply; 8+ messages in thread
From: Tomáš Chvátal @ 2012-11-27 20:46 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1919 bytes --]

This is bad idea. It breaks live rebuild and other stuff. You should just
clone each repo yourself, see how i did in libreoffice ebuild
Dne 27.11.2012 20:28 "Sergei Trofimovich" <slyfox@gentoo.org> napsal(a):

>     EGIT_REPO_URI="https://github.com/ghc/ghc.git"
>     requires user to run './sync-all fetch / ./sync-all pull'
>     after actual 'git pull', which fetches 20 more repos for code changes.
>     Upstream does not use submodules.
>
> The patch injects user's callback right before 'git-2_move_source'.
> Currently I abuse 'git-2_gc':
>
> Original ebuild:
> https://github.com/gentoo-haskell/gentoo-haskell/blob/master/dev-lang/ghc/ghc-9999.ebuild#L180
>
> Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
> ---
>  git-2.eclass | 24 ++++++++++++++++++++++++
>  1 file changed, 24 insertions(+)
>
> diff --git a/git-2.eclass b/git-2.eclass
> index 1a96978..1bacef5 100644
> --- a/git-2.eclass
> +++ b/git-2.eclass
> @@ -569,6 +569,29 @@ git-2_cleanup() {
>         unset EGIT_LOCAL_NONBARE
>  }
>
> +
> +# @FUNCTION: git-2_fetch_user
> +# @DESCRIPTION:
> +# User-overridable callback allow user to update
> +# sources in "${EGIT_DIR}" (current location).
> +# Does nothing by default
> +git-2_fetch_user() {
> +       :
> +}
> +
> +# @FUNCTION: git-2_post_fetch
> +# @INTERNAL
> +# Internal function calling user's callback
> +# when "${EGIT_DIR}" needs more actions, than
> +# simple fetch.
> +git-2_post_fetch() {
> +       debug-print-function ${FUNCNAME} "$@"
> +
> +       pushd "${EGIT_DIR}" > /dev/null
> +       git-2_fetch_user
> +       popd > /dev/null
> +}
> +
>  # @FUNCTION: git-2_src_unpack
>  # @DESCRIPTION:
>  # Default git src_unpack function.
> @@ -581,6 +604,7 @@ git-2_src_unpack() {
>         git-2_fetch "$@"
>         git-2_gc
>         git-2_submodules
> +       git-2_post_fetch
>         git-2_move_source
>         git-2_branch
>         git-2_bootstrap
> --
> 1.8.0
>
>
>

[-- Attachment #2: Type: text/html, Size: 2738 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] [PATCH 2/2] Allow user mangle distfiles' "${EGIT_DIR}" after actual git fetch.
  2012-11-27 20:46   ` Tomáš Chvátal
@ 2012-11-27 21:46     ` Sergei Trofimovich
  0 siblings, 0 replies; 8+ messages in thread
From: Sergei Trofimovich @ 2012-11-27 21:46 UTC (permalink / raw
  To: gentoo-dev; +Cc: tomas.chvatal

[-- Attachment #1: Type: text/plain, Size: 1003 bytes --]

On Tue, 27 Nov 2012 21:46:06 +0100
Tomáš Chvátal <tomas.chvatal@gmail.com> wrote:

> This is bad idea. It breaks live rebuild and other stuff. You should just
> clone each repo yourself, see how i did in libreoffice ebuild

How does it break live rebuild? I'm not sure I understand what exactly
you mean.

Does libreoffice export all the info for each submodule the way
smart-live-rebuild can pick it?

> Dne 27.11.2012 20:28 "Sergei Trofimovich" <slyfox@gentoo.org> napsal(a):
> 
> >     EGIT_REPO_URI="https://github.com/ghc/ghc.git"
> >     requires user to run './sync-all fetch / ./sync-all pull'
> >     after actual 'git pull', which fetches 20 more repos for code changes.
> >     Upstream does not use submodules.
> >
> > The patch injects user's callback right before 'git-2_move_source'.
> > Currently I abuse 'git-2_gc':
> >
> > Original ebuild:
> > https://github.com/gentoo-haskell/gentoo-haskell/blob/master/dev-lang/ghc/ghc-9999.ebuild#L180

-- 

  Sergei

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] [PATCH 1/2] Set default EGIT_SOURCEDIR to point to standard ${WORKDIR}/${P}. It allows "${S}" overriding in user's code as other eclasses do:
  2012-11-27 20:18 ` [gentoo-dev] [PATCH 1/2] Set default EGIT_SOURCEDIR to point to standard ${WORKDIR}/${P}. It allows "${S}" overriding in user's code as other eclasses do: Davide Pesavento
@ 2012-11-27 22:05   ` Sergei Trofimovich
  0 siblings, 0 replies; 8+ messages in thread
From: Sergei Trofimovich @ 2012-11-27 22:05 UTC (permalink / raw
  To: gentoo-dev; +Cc: pesa, Michał Górny, Donnie Berkholz


[-- Attachment #1.1: Type: text/plain, Size: 2335 bytes --]

On Tue, 27 Nov 2012 12:18:51 -0800
Davide Pesavento <pesa@gentoo.org> wrote:

> On Tue, Nov 27, 2012 at 11:22 AM, Sergei Trofimovich <slyfox@gentoo.org> wrote:
> > 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 <slyfox@gentoo.org>
> > ---
> >  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
> >
> >
> 
> While in theory this makes sense, it also has the potential to break
> ebuilds setting S="${WORKDIR}/foo" and then expecting the sources to
> be inside "foo". IOW it's not backward compatible, is it?

Right, it's not. I thought that default makes no sense as it relocates
git repo, but not the tarballs (if yet in SRC_URI). It does make sense
for submodules though, but you need to override EGIT_SOURCEDIR
for them anyway.

EGIT_SOURCEDIR users in tree are quite fun: [attached]

All try to set it to ${WORKDIR}/${P} in one form or another.

I didn't check actual users before. Seems there is a possibility of breakage.

Please ignore both patches. We'll keep local modifications in haskell overlay.

Sorry for the noise.

-- 

  Sergei

[-- Attachment #1.2: EGIT_SOURCEDIR-setters.txt --]
[-- Type: text/plain, Size: 3997 bytes --]

./app-office/libreoffice/libreoffice-3.5.7.2.ebuild:			EGIT_SOURCEDIR="${WORKDIR}/${PN}-${mod}-${PV}"
./app-office/libreoffice/libreoffice-3.5.7.2.ebuild:		unset EGIT_PROJECT EGIT_SOURCEDIR EGIT_REPO_URI EGIT_BRANCH
./app-office/libreoffice/libreoffice-3.6.3.2.ebuild:			EGIT_SOURCEDIR="${WORKDIR}/${PN}-${mod}-${PV}"
./app-office/libreoffice/libreoffice-3.6.3.2.ebuild:		unset EGIT_PROJECT EGIT_SOURCEDIR EGIT_REPO_URI EGIT_BRANCH
./app-office/libreoffice/libreoffice-3.6.9999.ebuild:			EGIT_SOURCEDIR="${WORKDIR}/${PN}-${mod}-${PV}"
./app-office/libreoffice/libreoffice-3.6.9999.ebuild:		unset EGIT_PROJECT EGIT_SOURCEDIR EGIT_REPO_URI EGIT_BRANCH
./app-office/libreoffice/libreoffice-9999-r2.ebuild:			EGIT_SOURCEDIR="${WORKDIR}/${PN}-${mod}-${PV}"
./app-office/libreoffice/libreoffice-9999-r2.ebuild:		unset EGIT_PROJECT EGIT_SOURCEDIR EGIT_REPO_URI EGIT_BRANCH
./dev-embedded/urjtag/urjtag-9999.ebuild:	EGIT_SOURCEDIR=${WORKDIR}
./dev-perl/Lab-Measurement/Lab-Measurement-3.00.ebuild:	EGIT_SOURCEDIR=${S}
./dev-perl/Lab-Measurement/Lab-Measurement-3.10.ebuild:	EGIT_SOURCEDIR=${S}
./dev-perl/Lab-Measurement/Lab-Measurement-9999.ebuild:	EGIT_SOURCEDIR=${S}
./dev-scheme/racket/racket-5.1.2.ebuild:EGIT_SOURCEDIR="${WORKDIR}/${P}"
./dev-scheme/racket/racket-5.2.1.ebuild:EGIT_SOURCEDIR="${WORKDIR}/${P}"
./dev-scheme/racket/racket-5.3.1.ebuild:EGIT_SOURCEDIR="${WORKDIR}/${P}"
./eclass/selinux-policy-2.eclass:			EGIT_SOURCEDIR="${WORKDIR}/refpolicy";;
./eclass/git-2.eclass:# @ECLASS-VARIABLE: EGIT_SOURCEDIR
./eclass/git-2.eclass:# EGIT_SOURCEDIR="${S}"
./eclass/git-2.eclass:	: ${EGIT_SOURCEDIR="${S}"}
./eclass/git-2.eclass:	debug-print "${FUNCNAME}: working in \"${EGIT_SOURCEDIR}\""
./eclass/git-2.eclass:	pushd "${EGIT_SOURCEDIR}" > /dev/null
./eclass/git-2.eclass:# Internal function moving sources from the EGIT_DIR to EGIT_SOURCEDIR dir.
./eclass/git-2.eclass:	debug-print "${FUNCNAME}: ${MOVE_COMMAND} \"${EGIT_DIR}\" \"${EGIT_SOURCEDIR}\""
./eclass/git-2.eclass:	mkdir -p "${EGIT_SOURCEDIR}" \
./eclass/git-2.eclass:		|| die "${FUNCNAME}: failed to create ${EGIT_SOURCEDIR}"
./eclass/git-2.eclass:	${MOVE_COMMAND} "${EGIT_SOURCEDIR}" \
./eclass/git-2.eclass:		|| die "${FUNCNAME}: sync to \"${EGIT_SOURCEDIR}\" failed"
./eclass/git-2.eclass:		pushd "${EGIT_SOURCEDIR}" > /dev/null
./eclass/git-2.eclass:	echo ">>> Unpacked to ${EGIT_SOURCEDIR}"
./net-analyzer/gsm-receiver/gsm-receiver-9999.ebuild:EGIT_SOURCEDIR="${S}"
./net-im/psi/psi-9999.ebuild:				EGIT_SOURCEDIR="${WORKDIR}/psi-l10n/${x}" git-2_src_unpack
./net-im/psi/psi-9999.ebuild:		EGIT_SOURCEDIR="${WORKDIR}/psi-plus" \
./net-im/psi/psi-9999.ebuild:			EGIT_SOURCEDIR="${WORKDIR}/resources" \
./net-misc/youtube-viewer/youtube-viewer-9999.ebuild:EGIT_SOURCEDIR="${WORKDIR}"
./sec-policy/selinux-base-policy/selinux-base-policy-9999.ebuild:EGIT_SOURCEDIR="${WORKDIR}/refpolicy"
./sec-policy/selinux-base/selinux-base-9999.ebuild:EGIT_SOURCEDIR="${WORKDIR}/refpolicy"
./sys-fs/yaffs-utils/yaffs-utils-9999.ebuild:EGIT_SOURCEDIR=${WORKDIR}
./sys-fs/yaffs2-utils/yaffs2-utils-9999.ebuild:EGIT_SOURCEDIR=${WORKDIR}
./sys-libs/glibc/files/eblits/src_unpack.eblit:			EGIT_SOURCEDIR=${EGIT_SOURCEDIRS[$i]}
./sys-libs/glibc/glibc-2.14.1-r2.ebuild:	EGIT_SOURCEDIRS=( "${S}" "${S}/ports" )
./sys-libs/glibc/glibc-2.14.1-r3.ebuild:	EGIT_SOURCEDIRS=( "${S}" "${S}/ports" )
./sys-libs/glibc/glibc-2.14.ebuild:	EGIT_SOURCEDIRS=( "${S}" "${S}/ports" )
./sys-libs/glibc/glibc-2.15-r1.ebuild:	EGIT_SOURCEDIRS=( "${S}" "${S}/ports" )
./sys-libs/glibc/glibc-2.15-r2.ebuild:	EGIT_SOURCEDIRS=( "${S}" "${S}/ports" )
./sys-libs/glibc/glibc-2.15-r3.ebuild:	EGIT_SOURCEDIRS=( "${S}" "${S}/ports" )
./sys-libs/glibc/glibc-9999.ebuild:	EGIT_SOURCEDIRS="${S}"
./sys-libs/glibc/glibc-2.16.0.ebuild:	EGIT_SOURCEDIRS=( "${S}" "${S}/ports" )
./www-client/xxxterm/xxxterm-1.1103-r1.ebuild:	EGIT_SOURCEDIR="${WORKDIR}/${MY_P}"
./www-client/xxxterm/xxxterm-9999.ebuild:	EGIT_SOURCEDIR="${WORKDIR}/${MY_P}"

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-11-27 22:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-27 19:22 [gentoo-dev] [PATCH 1/2] Set default EGIT_SOURCEDIR to point to standard ${WORKDIR}/${P}. It allows "${S}" overriding in user's code as other eclasses do: Sergei Trofimovich
2012-11-27 19:22 ` [gentoo-dev] [PATCH 2/2] Allow user mangle distfiles' "${EGIT_DIR}" after actual git fetch Sergei Trofimovich
2012-11-27 19:49   ` Michał Górny
2012-11-27 20:46   ` Tomáš Chvátal
2012-11-27 21:46     ` Sergei Trofimovich
2012-11-27 20:18 ` [gentoo-dev] [PATCH 1/2] Set default EGIT_SOURCEDIR to point to standard ${WORKDIR}/${P}. It allows "${S}" overriding in user's code as other eclasses do: Davide Pesavento
2012-11-27 22:05   ` Sergei Trofimovich
2012-11-27 20:32 ` Tomáš Chvátal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox