Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 373159
Collapse All | Expand All

(-)thunderbird-bin-3.1.11.ebuild (-37 / +23 lines)
Lines 2-16 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird-bin/thunderbird-bin-3.1.11.ebuild,v 1.1 2011/06/23 14:13:51 polynomial-c Exp $
3
# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird-bin/thunderbird-bin-3.1.11.ebuild,v 1.1 2011/06/23 14:13:51 polynomial-c Exp $
4
4
5
EAPI="2"
5
EAPI="3"
6
6
7
inherit eutils multilib mozextension
7
inherit eutils multilib mozextension
8
8
9
# Can be updated using scripts/get_langs.sh from mozilla overlay
9
# Can be updated using scripts/get_langs.sh from mozilla overlay
10
# '\' at EOL is needed for ${LANG} matching in linguas() below
10
# '\' at EOL is needed for ${LANG} matching in linguas() below
11
LANGS="af ar be bg bn-BD ca cs da de el en en-GB en-US es-AR es-ES et eu fi fr \
11
LANGS="ar bg br ca cs da de en en-GB en-US es-AR es-ES et eu fi fr fy-NL \
12
fy-NL ga-IE he hu id is it ja ko lt nb-NO nl nn-NO pa-IN pl pt-BR pt-PT ro ru \
12
ga-IE gd gl he hu is it ja ko lt nb-NO nl nn-NO pa-IN pl pt-BR pt-PT rm ru \
13
si sk sl sq sv-SE tr uk zh-CN zh-TW"
13
si sk sl sq sv-SE ta-LK tr uk zh-TW"
14
NOSHORTLANGS="en-GB es-AR pt-BR zh-TW"
14
NOSHORTLANGS="en-GB es-AR pt-BR zh-TW"
15
15
16
MY_PN="${PN/-bin}"
16
MY_PN="${PN/-bin}"
Lines 19-26 Link Here
19
19
20
DESCRIPTION="Thunderbird Mail Client"
20
DESCRIPTION="Thunderbird Mail Client"
21
REL_URI="http://releases.mozilla.org/pub/mozilla.org/${MY_PN}/releases/"
21
REL_URI="http://releases.mozilla.org/pub/mozilla.org/${MY_PN}/releases/"
22
SRC_URI="${REL_URI}/${MY_PV}/linux-i686/en-US/${MY_P}.tar.bz2
22
SRC_URI="
23
	mirror://gentoo/libnotify.so.1.bz2"
23
	amd64? ( ${REL_URI}/${MY_PV}/linux-x86_64/en-US/${MY_P}.tar.bz2 -> ${PN}_x86_64-${PV}.tar.bz2 )
24
	x86? ( ${REL_URI}/${MY_PV}/linux-i686/en-US/${MY_P}.tar.bz2 -> ${PN}_i686-${PV}.tar.bz2
25
		   mirror://gentoo/libnotify.so.1.bz2 )"
24
HOMEPAGE="http://www.mozilla.com/thunderbird"
26
HOMEPAGE="http://www.mozilla.com/thunderbird"
25
RESTRICT="strip"
27
RESTRICT="strip"
26
28
Lines 49-73 Link Here
49
RDEPEND="x11-libs/libXrender
51
RDEPEND="x11-libs/libXrender
50
	x11-libs/libXt
52
	x11-libs/libXt
51
	x11-libs/libXmu
53
	x11-libs/libXmu
52
	x86? (
54
	>=x11-libs/gtk+-2.10:2
53
		>=x11-libs/gtk+-2.2:2
55
	net-misc/curl[nss]
54
		net-misc/curl[nss]
56
	"
55
	)
56
	amd64? (
57
		app-emulation/emul-linux-x86-baselibs
58
		app-emulation/emul-linux-x86-gtklibs
59
		app-emulation/emul-linux-x86-soundlibs
60
	)"
61
57
62
S="${WORKDIR}/thunderbird"
58
S="${WORKDIR}/thunderbird"
63
59
64
pkg_setup() {
65
	# This is a binary x86 package => ABI=x86
66
	# Please keep this in future versions
67
	# Danny van Dyk <kugelfang@gentoo.org> 2005/03/26
68
	has_multilib_profile && ABI="x86"
69
}
70
71
linguas() {
60
linguas() {
72
	local LANG SLANG
61
	local LANG SLANG
73
	for LANG in ${LINGUAS}; do
62
	for LANG in ${LINGUAS}; do
Lines 134-161 Link Here
134
		"${D}/${MOZILLA_FIVE_HOME}/defaults/pref/all-gentoo.js" || \
123
		"${D}/${MOZILLA_FIVE_HOME}/defaults/pref/all-gentoo.js" || \
135
		die "failed to cp thunderbird-gentoo-default-prefs.js"
124
		die "failed to cp thunderbird-gentoo-default-prefs.js"
136
125
137
	# This is a copy of 32bit libnotify.so.1 from app-emulation/emul-linux-x86-gtklibs-20110129.
126
	if use x86; then
138
	# http://bugs.gentoo.org/show_bug.cgi?id=360443.
127
		# This is a copy of 32bit libnotify.so.1 from app-emulation/emul-linux-x86-gtklibs-20110129.
139
	exeinto /opt/thunderbird
128
		# http://bugs.gentoo.org/show_bug.cgi?id=360443.
140
	doexe "${WORKDIR}"/libnotify.so.1 || die
129
		exeinto /opt/thunderbird
130
		doexe "${WORKDIR}"/libnotify.so.1 || die
131
	fi
132
133
	ln -sfn "/usr/$(get_libdir)/nsbrowser/plugins" \
134
			"${D}${MOZILLA_FIVE_HOME}/plugins" || die
141
}
135
}
142
136
143
pkg_postinst() {
137
pkg_postinst() {
144
	#elog "For enigmail, please see instructions at"
138
	#elog "For enigmail, please see instructions at"
145
	#elog "  http://enigmail.mozdev.org/"
139
	#elog "  http://enigmail.mozdev.org/"
146
140
147
	if use x86; then
141
	if ! has_version 'gnome-base/gconf' || ! has_version 'gnome-base/orbit' ; then
148
		if ! has_version 'gnome-base/gconf' || ! has_version 'gnome-base/orbit' ; then
149
			einfo
150
			einfo "For using the crashreporter, you need gnome-base/gconf,"
151
			einfo "gnome-base/orbit and net-misc/curl emerged."
152
			einfo
153
		fi
154
	else
155
		einfo
156
		einfo "NB: You just installed a 32-bit thunderbird"
157
		einfo
142
		einfo
158
		einfo "Crashreporter won't work on amd64"
143
		einfo "For using the crashreporter, you need gnome-base/gconf,"
144
		einfo "gnome-base/orbit and net-misc/curl emerged."
159
		einfo
145
		einfo
160
	fi
146
	fi
161
147

Return to bug 373159