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

Replies

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