Gentoo Archives: gentoo-dev

From: Torsten Veller <ml-en@××××××.net>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: [RFC] Font eclass EAPI update and design
Date: Tue, 02 Feb 2010 10:19:25
Message-Id: 20100202101832.GA6052@veller.net
In Reply to: [gentoo-dev] [RFC] Font eclass EAPI update and design by "Tomáš Chvátal"
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?

Replies

Subject Author
Re: [gentoo-dev] Re: [RFC] Font eclass EAPI update and design "Tomáš Chvátal" <scarabeus@g.o>
Re: [gentoo-dev] Re: [RFC] Font eclass EAPI update and design Fabian Groffen <grobian@g.o>