On Mon, Jan 03, 2011 at 04:40:57PM +0200, Samuli Suominen wrote:
> Quoting PMS, Chapter 8:
> 
> "All ebuild-defined variables discussed in this chapter must be defined
> independently of any system, profile or tree dependent data, and must
> not vary depending upon the ebuild phase."
> 
> http://git.overlays.gentoo.org/gitweb/?p=proj/pms.git;a=blob_plain;f=ebuild-vars.tex;hb=HEAD
> 
> This is very inconvinent rule for example, github tarballs where the
> directory changes with every release. I've used this:
> 
> src_unpack() {
>       unpack ${A}
>       cd *-${PN}-*
>       S=`pwd`
> }
> 
> In $PORTDIR/sys-fs/udisks-glue/udisks-glue-1.2.0.ebuild to get S=
> defined as:
> 
> fernandotcl-udisks-glue-f9b4839
> 
> Where "f9b4839" changes...
> 
> 
> Far as I know, S= isn't used to generate metadata cache, so it's PMS
> that need fixing for it's wording:
> 
> "All ebuild-defined variables used to generate metadata cache, discussed
> in this chapter..."

Yes, please :)

I've used that method to work around some github-tarballed packages
as well, seems to work pretty well.

Thanks,
-- 
Alex Alexander | wired
+ Gentoo Linux Developer
++ www.linuxized.com

Attachment: pgpGzstSRPxR3.pgp
Description: PGP signature

Reply via email to