summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2005-09-27 20:06:20 +0000
committerMartin Schlemmer <azarah@gentoo.org>2005-09-27 20:06:20 +0000
commitb228436e1d9b861c2e310799512b087248a33d7c (patch)
treee8747c71bb47b735b0cfa7e19a9fc10e7076bf84 /eclass/mozconfig.eclass
parentChanged to use new lokigames mirror:// setup. (diff)
downloadhistorical-b228436e1d9b861c2e310799512b087248a33d7c.tar.gz
historical-b228436e1d9b861c2e310799512b087248a33d7c.tar.bz2
historical-b228436e1d9b861c2e310799512b087248a33d7c.zip
Pango/gecko-sdk fixes.
Diffstat (limited to 'eclass/mozconfig.eclass')
-rw-r--r--eclass/mozconfig.eclass16
1 files changed, 6 insertions, 10 deletions
diff --git a/eclass/mozconfig.eclass b/eclass/mozconfig.eclass
index ad409711590e..b980ac43a590 100644
--- a/eclass/mozconfig.eclass
+++ b/eclass/mozconfig.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/mozconfig.eclass,v 1.22 2005/09/26 22:20:13 solar Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/mozconfig.eclass,v 1.23 2005/09/27 20:06:20 azarah Exp $
#
# mozconfig.eclass: the new mozilla.eclass
@@ -37,7 +37,7 @@ export USE_PTHREADS=1
mozconfig_init() {
declare enable_optimize pango_version myext x
- declare MOZ=$([[ ${PN} == mozilla ]] && echo true || echo false)
+ declare MOZ=$([[ ${PN} == mozilla || ${PN} == gecko-sdk ]] && echo true || echo false)
declare FF=$([[ ${PN} == *firefox ]] && echo true || echo false)
declare TB=$([[ ${PN} == *thunderbird ]] && echo true || echo false)
declare SB=$([[ ${PN} == *sunbird ]] && echo true || echo false)
@@ -50,7 +50,7 @@ mozconfig_init() {
####################################
case ${PN} in
- mozilla)
+ mozilla|gecko-sdk)
# The other builds have an initial --enable-extensions in their
# .mozconfig. The "default" set in configure applies to mozilla
# specifically.
@@ -230,15 +230,11 @@ mozconfig_init() {
if use moznoxft; then
mozconfig_annotate "disabling xft2 by request (+moznoxft)" --disable-xft
else
- # We need Xft2.0 locally installed
if [[ -x /usr/bin/pkg-config ]] && pkg-config xft; then
- # We also need pango-1.1, else Mozilla links to both
- # Xft1.1 *and* Xft2.0, and segfault...
- pango_version=$(pkg-config --modversion pango | cut -d. -f1,2)
- if [[ ${pango_version//.} -gt 10 ]]; then
- mozconfig_annotate "-moznoxft" --enable-xft
+ if [[ ${MOZ_PANGO} == "yes" ]]; then
+ mozconfig_annotate "-moznoxft" --enable-xft --enable-pango
else
- mozconfig_annotate "bad pango version <1.1" --disable-xft
+ mozconfig_annotate "-moznoxft" --enable-xft
fi
else
mozconfig_annotate "no pkg-config xft" --disable-xft