1 |
* TomᨠChvátal <scarabeus@g.o>: |
2 |
> # @FUNCTION: font_pkg_setup |
3 |
> # @DESCRIPTION: |
4 |
> # The font pkg_setup function. |
5 |
> # Collision portection and Prefix compat for eapi < 3. |
6 |
> font_pkg_setup() { |
7 |
> # make sure we get no collisions |
8 |
> # setup is not the nicest place, but preinst doesn't cut it |
9 |
> [[ -e "${FONTDIR}/fonts.cache-1" ]] && rm -f "${FONTDIR}/fonts.cache-1" |
10 |
|
11 |
(E)ROOT is missing. |
12 |
|
13 |
> # Prefix compat |
14 |
> case ${EAPI:-0} in |
15 |
> 0|1|2) |
16 |
> if ! use prefix; then |
17 |
> EPREFIX= |
18 |
> ED=${D} |
19 |
> EROOT=${ROOT} |
20 |
> [[ ${EROOT} = */ ]] || EROOT+="/" |
21 |
> fi |
22 |
> ;; |
23 |
> esac |
24 |
|
25 |
Don't we need this for every eclass using EPREFIX, ED and EROOT |
26 |
independent of EAPI? |
27 |
Can't we move this to prefix.eclass and inherit it? Or is the EPREFIX |
28 |
setting in prefix.eclass already enough? |