summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Hill <rhill@gentoo.org>2009-09-13 04:47:34 +0000
committerRyan Hill <rhill@gentoo.org>2009-09-13 04:47:34 +0000
commit3dce2bba909ec6fe22f24473eb6d9c4cdc5e9728 (patch)
tree45eedc285cc8e786d23bb9126ccfa982fe9b4c98 /eclass/font.eclass
parentSet SUPPORT_PYTHON_ABIS. (diff)
downloadhistorical-3dce2bba909ec6fe22f24473eb6d9c4cdc5e9728.tar.gz
historical-3dce2bba909ec6fe22f24473eb6d9c4cdc5e9728.tar.bz2
historical-3dce2bba909ec6fe22f24473eb6d9c4cdc5e9728.zip
Allow variables to be defined before inheriting.
Diffstat (limited to 'eclass/font.eclass')
-rw-r--r--eclass/font.eclass11
1 files changed, 5 insertions, 6 deletions
diff --git a/eclass/font.eclass b/eclass/font.eclass
index 24ecf9445a41..928fd1b10f5c 100644
--- a/eclass/font.eclass
+++ b/eclass/font.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/font.eclass,v 1.45 2009/09/07 21:07:11 dirtyepic Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/font.eclass,v 1.46 2009/09/13 04:47:34 dirtyepic Exp $
# @ECLASS: font.eclass
# @MAINTAINER:
@@ -21,7 +21,7 @@ EXPORT_FUNCTIONS pkg_setup src_install pkg_postinst pkg_postrm
# @ECLASS-VARIABLE: FONT_SUFFIX
# @DESCRIPTION:
# Space delimited list of font suffixes to install
-FONT_SUFFIX=""
+FONT_SUFFIX=${FONT_SUFFIX:-}
# @ECLASS-VARIABLE: FONT_S
# @DESCRIPTION:
@@ -31,12 +31,12 @@ FONT_S=${S}
# @ECLASS-VARIABLE: FONT_PN
# @DESCRIPTION:
# Last part of $FONTDIR
-FONT_PN=${PN}
+FONT_PN=${FONT_PN:-${PN}}
# @ECLASS-VARIABLE: FONTDIR
# @DESCRIPTION:
# This is where the fonts are installed
-FONTDIR=/usr/share/fonts/${FONT_PN}
+FONTDIR=${FONTDIR:-/usr/share/fonts/${FONT_PN}}
# @ECLASS-VARIABLE: FONT_CONF
# @DESCRIPTION:
@@ -46,7 +46,7 @@ FONT_CONF=( "" )
# @ECLASS-VARIABLE: DOCS
# @DESCRIPTION:
# Docs to install
-DOCS=""
+DOCS=${DOCS:-}
IUSE="X"
@@ -195,4 +195,3 @@ font_pkg_postrm() {
fi
fi
}
-