From 413f68dbbc9012c66a278eac312a7971c607cb2c Mon Sep 17 00:00:00 2001 From: Nick White Date: Thu, 6 Aug 2009 10:50:46 +0100 Subject: Fix branding when language packs are used --- www-client/icecat/icecat-3.5.1.ebuild | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'www-client') diff --git a/www-client/icecat/icecat-3.5.1.ebuild b/www-client/icecat/icecat-3.5.1.ebuild index b0c8189..d55d10f 100644 --- a/www-client/icecat/icecat-3.5.1.ebuild +++ b/www-client/icecat/icecat-3.5.1.ebuild @@ -118,6 +118,27 @@ src_prepare() { # Fix preferences location sed -i 's|defaults/pref/|defaults/preferences/|' browser/installer/packages-static || die "sed failed" + for X in ${linguas}; do + # replace any linguas-provided branding with official branding + if [ ${X} != "en" ]; then + cd "${WORKDIR}"/${FIREFOX_P}-${X}/chrome/ + unzip -q ${X}.jar + + # Ensure branding is copied directly from icecat + cp "${S}"/browser/branding/unofficial/brand\.* locale/branding/ + + # Any variable being set should be changed + find . -type f -exec sed -i 's/\(.*=.*\)Firefox/\1IceCat/g' {} \; + + rm ${X}.jar + zip -q -r ${X}.jar . + + rm -r locale/ + + cd "${S}" + fi + done + # Apply our patches EPATCH_SUFFIX="patch" \ EPATCH_FORCE="yes" \ -- cgit v1.2.3