Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 147829 | Differences between
and this patch

Collapse All | Expand All

(-)mozilla-thunderbird-1.5.0.7.ebuild.old (-6 / +6 lines)
Lines 3-9 Link Here
3
# $Header: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird/mozilla-thunderbird-1.5.0.7.ebuild,v 1.1 2006/09/16 14:08:28 redhatter Exp $
3
# $Header: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird/mozilla-thunderbird-1.5.0.7.ebuild,v 1.1 2006/09/16 14:08:28 redhatter Exp $
4
4
5
unset ALLOWED_FLAGS	 # stupid extra-functions.sh ... bug 49179
5
unset ALLOWED_FLAGS	 # stupid extra-functions.sh ... bug 49179
6
inherit flag-o-matic toolchain-funcs eutils mozconfig-2 mozilla-launcher makeedit multilib autotools
6
inherit flag-o-matic toolchain-funcs eutils mozconfig-2 mozilla-launcher makeedit multilib autotools mozextension
7
7
8
LANGS="bg ca cs da de el en-GB es-AR es-ES eu fi fr ga-IE gu-IN he hu it ja ko lt mk nb-NO nl pa-IN pl pt-BR ru sk sl sv-SE tr zh-CN"
8
LANGS="bg ca cs da de el en-GB es-AR es-ES eu fi fr ga-IE gu-IN he hu it ja ko lt mk nb-NO nl pa-IN pl pt-BR ru sk sl sv-SE tr zh-CN"
9
SHORTLANGS="es-ES ga-IE nb-NO sv-SE"
9
SHORTLANGS="es-ES ga-IE nb-NO sv-SE"
Lines 72-85 Link Here
72
}
72
}
73
73
74
src_unpack() {
74
src_unpack() {
75
	unpack ${A}
75
	unpack thunderbird-${PV}-source.tar.bz2 ${P}-patches-${PVER}.tar.bz2
76
	cd ${S} || die "cd failed"
76
	
77
78
	linguas
77
	linguas
79
	for X in ${linguas}; do
78
	for X in ${linguas}; do
80
		[[ ${X} != en ]] && xpi_unpack thunderbird-${X}-${PV}.xpi
79
		[[ ${X} != en ]] && xpi_unpack thunderbird-${X}-${PV}.xpi
81
	done
80
	done
82
81
82
	cd ${S} || die "cd failed"
83
	# Apply our patches
83
	# Apply our patches
84
	EPATCH_SUFFIX="patch" \
84
	EPATCH_SUFFIX="patch" \
85
	EPATCH_FORCE="yes" \
85
	EPATCH_FORCE="yes" \
Lines 184-191 Link Here
184
	if [[ ${LANG} != "" && ${LANG} != "en" ]]; then
184
	if [[ ${LANG} != "" && ${LANG} != "en" ]]; then
185
		ebegin "Setting default locale to ${LANG}"
185
		ebegin "Setting default locale to ${LANG}"
186
		sed -i "s:pref(\"general.useragent.locale\", \"en-US\"):pref(\"general.useragent.locale\", \"${LANG}\"):" \
186
		sed -i "s:pref(\"general.useragent.locale\", \"en-US\"):pref(\"general.useragent.locale\", \"${LANG}\"):" \
187
			${D}${MOZILLA_FIVE_HOME}/defaults/pref/thunderbird.js \
187
			${D}${MOZILLA_FIVE_HOME}/defaults/pref/all-thunderbird.js \
188
			${D}${MOZILLA_FIVE_HOME}/defaults/pref/thunderbird-l10n.js
188
			${D}${MOZILLA_FIVE_HOME}/defaults/pref/all-l10n.js
189
		eend $? || die "sed failed to change locale"
189
		eend $? || die "sed failed to change locale"
190
	fi
190
	fi
191
191

Return to bug 147829