All pastes #224914 Raw Edit

Untitled

public text v1 · immutable
#224914 ·published 2006-10-27 17:18 UTC
rendered paste body
--- /usr/portage/eclass/mozilla-launcher.eclass	2005-07-28 16:35:37.000000000 -0500
+++ mozilla-launcher.eclass	2006-10-27 12:17:14.505171184 -0500
@@ -4,6 +4,8 @@
 
 inherit nsplugins multilib
 
+IUSE="moznopango"
+
 # update_mozilla_launcher_symlinks
 # --------------------------------
 # Create or remove the following symlinks in /usr/bin:
@@ -65,6 +67,8 @@
 	declare libdir=$2
 
 	dodir /usr/bin
+
+	if use !moznopango; then
 	cat <<EOF >${D}/usr/bin/${name}
 #!/bin/sh
 #
@@ -77,5 +81,18 @@
 export MOZ_PLUGIN_PATH=\${MOZ_PLUGIN_PATH:-/usr/$(get_libdir)/$PLUGINS_DIR}
 exec /usr/libexec/mozilla-launcher "\$@"
 EOF
+	else
+#!/bin/sh
+#
+# Stub script to run mozilla-launcher.  We used to use a symlink here
+# but OOo brokenness makes it necessary to use a stub instead:
+# http://bugs.gentoo.org/show_bug.cgi?id=78890
+
+export MOZILLA_LAUNCHER=${name}
+export MOZILLA_LIBDIR=${libdir}
+export MOZ_PLUGIN_PATH=\${MOZ_PLUGIN_PATH:-/usr/$(get_libdir)/$PLUGINS_DIR}
+export MOZ_DISABLE_PANGO=1
+exec /usr/libexec/mozilla-launcher "\$@"
+EOF
 	chmod 0755 ${D}/usr/bin/${name}
 }