1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA1 |
3 |
|
4 |
Dne 2.2.2010 11:18, Torsten Veller napsal(a): |
5 |
> * TomᨠChvátal <scarabeus@g.o>: |
6 |
>> # @FUNCTION: font_pkg_setup |
7 |
>> # @DESCRIPTION: |
8 |
>> # The font pkg_setup function. |
9 |
>> # Collision portection and Prefix compat for eapi < 3. |
10 |
>> font_pkg_setup() { |
11 |
>> # make sure we get no collisions |
12 |
>> # setup is not the nicest place, but preinst doesn't cut it |
13 |
>> [[ -e "${FONTDIR}/fonts.cache-1" ]] && rm -f "${FONTDIR}/fonts.cache-1" |
14 |
> |
15 |
> (E)ROOT is missing. |
16 |
Good spot. EFixed :] |
17 |
> |
18 |
>> # Prefix compat |
19 |
>> case ${EAPI:-0} in |
20 |
>> 0|1|2) |
21 |
>> if ! use prefix; then |
22 |
>> EPREFIX= |
23 |
>> ED=${D} |
24 |
>> EROOT=${ROOT} |
25 |
>> [[ ${EROOT} = */ ]] || EROOT+="/" |
26 |
>> fi |
27 |
>> ;; |
28 |
>> esac |
29 |
> |
30 |
> Don't we need this for every eclass using EPREFIX, ED and EROOT |
31 |
> independent of EAPI? |
32 |
> Can't we move this to prefix.eclass and inherit it? Or is the EPREFIX |
33 |
> setting in prefix.eclass already enough? |
34 |
> |
35 |
|
36 |
Actualy dunno, i did it this way because it is the way how other eclass |
37 |
were altered in this matter. |
38 |
|
39 |
Maybe we could add it to base eclass and then via proper inheritance it |
40 |
might work. Or to prefix eclass which would be inherited elsewhere. |
41 |
|
42 |
We would have to ask prefix mages, adding them to CC :] |
43 |
|
44 |
Tomas |
45 |
-----BEGIN PGP SIGNATURE----- |
46 |
Version: GnuPG v2.0.14 (GNU/Linux) |
47 |
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ |
48 |
|
49 |
iEYEARECAAYFAktn/qgACgkQHB6c3gNBRYfwGwCdGqFw9sMuxbd3QxafWjY4i+me |
50 |
y/0AoJAoBg11gyZTBxIp9QyqFrK4c9pa |
51 |
=W3Rf |
52 |
-----END PGP SIGNATURE----- |