From 8ac1e12f9d2d49be5439468631f2e4cc5328882a Mon Sep 17 00:00:00 2001 From: Raúl Porcel Date: Sat, 15 Mar 2008 20:18:12 +0000 Subject: Use a better approach --- eclass/mozilla-launcher.eclass | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'eclass') diff --git a/eclass/mozilla-launcher.eclass b/eclass/mozilla-launcher.eclass index 5a54d12443ce..e5a7b733bff7 100644 --- a/eclass/mozilla-launcher.eclass +++ b/eclass/mozilla-launcher.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/mozilla-launcher.eclass,v 1.19 2008/02/13 08:57:48 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/mozilla-launcher.eclass,v 1.20 2008/03/15 20:18:12 armin76 Exp $ inherit nsplugins multilib @@ -69,7 +69,8 @@ install_mozilla_launcher_stub() { declare libdir=$2 # If we use xulrunner, the name of the binary should be the same - if [[ ! ${PV} < 3.0_beta1 ]] && [[ ${PN: -4} != "-bin" ]] && use xulrunner ; then + if [[ ${name: -3} == "xul" ]]; then + name=${name/xul/} declare appname=xulrunner declare xulparams="export XUL_PARAMS=${libdir}/application.ini" declare libdir="/usr/$(get_libdir)/xulrunner" -- cgit v1.2.3-65-gdbad