On 01/03/2011 08:16 PM, Thomas Sachau wrote: > Am 03.01.2011 15:40, schrieb Samuli Suominen: >> 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 >> > i used another workaround for github based packages: > > src_unpack() { > unpack ${A} > mv *-${PN}-* "${S}" > } > > This saves a line and does not require the redefinition of S inside the > function.
Indeed. I've changed udisks-glue ebuild to use this.
