1 |
On 01/03/2011 08:16 PM, Thomas Sachau wrote: |
2 |
> Am 03.01.2011 15:40, schrieb Samuli Suominen: |
3 |
>> Quoting PMS, Chapter 8: |
4 |
>> |
5 |
>> "All ebuild-defined variables discussed in this chapter must be defined |
6 |
>> independently of any system, profile or tree dependent data, and must |
7 |
>> not vary depending upon the ebuild phase." |
8 |
>> |
9 |
>> http://git.overlays.gentoo.org/gitweb/?p=proj/pms.git;a=blob_plain;f=ebuild-vars.tex;hb=HEAD |
10 |
>> |
11 |
>> |
12 |
>> |
13 |
>> This is very inconvinent rule for example, github tarballs where the |
14 |
>> directory changes with every release. I've used this: |
15 |
>> |
16 |
>> src_unpack() { |
17 |
>> unpack ${A} |
18 |
>> cd *-${PN}-* |
19 |
>> S=`pwd` |
20 |
>> } |
21 |
>> |
22 |
>> In $PORTDIR/sys-fs/udisks-glue/udisks-glue-1.2.0.ebuild to get S= |
23 |
>> defined as: |
24 |
>> |
25 |
>> fernandotcl-udisks-glue-f9b4839 |
26 |
>> |
27 |
> i used another workaround for github based packages: |
28 |
> |
29 |
> src_unpack() { |
30 |
> unpack ${A} |
31 |
> mv *-${PN}-* "${S}" |
32 |
> } |
33 |
> |
34 |
> This saves a line and does not require the redefinition of S inside the function. |
35 |
|
36 |
Indeed. I've changed udisks-glue ebuild to use this. |