summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--eclass/x-modular.eclass10
1 files changed, 7 insertions, 3 deletions
diff --git a/eclass/x-modular.eclass b/eclass/x-modular.eclass
index b5de1f2682e7..31dcd85a1186 100644
--- a/eclass/x-modular.eclass
+++ b/eclass/x-modular.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.79 2006/10/30 06:13:48 dberkholz Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.80 2006/10/30 18:40:58 dberkholz Exp $
#
# Author: Donnie Berkholz <spyderous@gentoo.org>
#
@@ -25,8 +25,6 @@
#
# Pretty much everything else should be automatic.
-inherit eutils libtool multilib toolchain-funcs flag-o-matic autotools font
-
# Directory prefix to use for everything
XDIR="/usr"
@@ -86,6 +84,7 @@ if [[ -n "${SNAPSHOT}" ]]; then
fi
# If we're a font package, but not the font.alias one
+FONT_ECLASS=""
if [[ "${PN/#font-}" != "${PN}" ]] \
&& [[ "${CATEGORY}" = "media-fonts" ]] \
&& [[ "${PN}" != "font-alias" ]] \
@@ -93,6 +92,9 @@ if [[ "${PN/#font-}" != "${PN}" ]] \
# Activate font code in the rest of the eclass
FONT="yes"
+ # Whether to inherit the font eclass
+ FONT_ECLASS="font"
+
RDEPEND="${RDEPEND}
media-fonts/encodings
x11-apps/mkfontscale
@@ -171,6 +173,8 @@ RDEPEND="${RDEPEND}
# Provides virtual/x11 for temporary use until packages are ported
# x11-base/x11-env"
+inherit eutils libtool multilib toolchain-funcs flag-o-matic autotools ${FONT_ECLASS}
+
x-modular_specs_check() {
if [[ ${PN:0:11} = "xorg-server" ]] || [[ -n "${DRIVER}" ]]; then
append-ldflags -Wl,-z,lazy