From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1NcFqv-00084r-3Y for garchives@archives.gentoo.org; Tue, 02 Feb 2010 10:19:25 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 90BC6E0AB2; Tue, 2 Feb 2010 10:19:15 +0000 (UTC) Received: from smtprelay02.ispgateway.de (smtprelay02.ispgateway.de [80.67.31.29]) by pigeon.gentoo.org (Postfix) with ESMTP id F3A4AE0A96 for ; Tue, 2 Feb 2010 10:18:45 +0000 (UTC) Received: from [93.210.51.28] (helo=arkane.local) by smtprelay02.ispgateway.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1NcFqH-00047t-1x for gentoo-dev@lists.gentoo.org; Tue, 02 Feb 2010 11:18:45 +0100 Received: by arkane.local (Postfix, from userid 1000) id C9784839A; Tue, 2 Feb 2010 11:18:32 +0100 (CET) Date: Tue, 2 Feb 2010 11:18:32 +0100 From: Torsten Veller To: gentoo-dev@lists.gentoo.org Subject: [gentoo-dev] Re: [RFC] Font eclass EAPI update and design Message-ID: <20100202101832.GA6052@veller.net> Mail-Followup-To: gentoo-dev@lists.gentoo.org References: <4B66AE86.9090006@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <4B66AE86.9090006@gentoo.org> X-Face: ===_______=8)_=8)_______A_very_very_nice_face_______=8)_=8)_______=== Jabber-ID: tove@jabber.ccc.de X-PGP-Fingerprint: 0416 3C11 8D79 65B9 AAD0 2065 BBC7 14D1 9C67 CD96 User-Agent: Mutt/1.5.20 (2009-12-10) X-Df-Sender: 1067115 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 1c762707-854b-4eaa-8927-66ad8d2cb315 X-Archives-Hash: ba5df5b0de0332386df52ba02107a4c6 * Tom=E1=A8 Chv=E1tal : > # @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=3D > ED=3D${D} > EROOT=3D${ROOT} > [[ ${EROOT} =3D */ ]] || EROOT+=3D"/" > 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?