Lines 5-23
Link Here
|
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 mozilla-launcher makeedit multilib |
6 |
inherit flag-o-matic toolchain-funcs eutils mozconfig mozilla-launcher makeedit multilib |
7 |
|
7 |
|
|
|
8 |
EMVER="0.92.1" |
9 |
IPCVER="1.1.3" |
10 |
|
8 |
DESCRIPTION="Thunderbird Mail Client" |
11 |
DESCRIPTION="Thunderbird Mail Client" |
9 |
HOMEPAGE="http://www.mozilla.org/projects/thunderbird/" |
12 |
HOMEPAGE="http://www.mozilla.org/projects/thunderbird/" |
10 |
SRC_URI="http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/${PV}/source/thunderbird-${PV}-source.tar.bz2 |
13 |
SRC_URI="http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/${PV}/source/thunderbird-${PV}-source.tar.bz2 |
11 |
mirror://gentoo/mozilla-firefox-1.0-4ft2.patch.bz2 |
14 |
mirror://gentoo/mozilla-firefox-1.0-4ft2.patch.bz2 |
12 |
mirror://gentoo/mozilla-jslibmath-alpha.patch |
15 |
mirror://gentoo/mozilla-jslibmath-alpha.patch |
13 |
http://dev.gentoo.org/~agriffis/dist/mozilla-1.7.10-nsplugins-v2.patch" |
16 |
http://dev.gentoo.org/~agriffis/dist/mozilla-1.7.10-nsplugins-v2.patch |
|
|
17 |
crypt? ( http://www.mozilla-enigmail.org/downloads/src/enigmail-${EMVER}.tar.gz |
18 |
http://www.mozilla-enigmail.org/downloads/src/ipc-${IPCVER}.tar.gz )" |
14 |
|
19 |
|
15 |
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86" |
20 |
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86" |
16 |
SLOT="0" |
21 |
SLOT="0" |
17 |
LICENSE="MPL-1.1 NPL-1.1" |
22 |
LICENSE="MPL-1.1 NPL-1.1" |
18 |
IUSE="mozcalendar ldap" |
23 |
IUSE="crypt mozcalendar ldap" |
19 |
|
24 |
|
20 |
RDEPEND=">=www-client/mozilla-launcher-1.39" |
25 |
RDEPEND=">=www-client/mozilla-launcher-1.39 |
|
|
26 |
crypt? ( >=app-crypt/gnupg-1.4 )" |
21 |
|
27 |
|
22 |
S=${WORKDIR}/mozilla |
28 |
S=${WORKDIR}/mozilla |
23 |
|
29 |
|
Lines 69-74
Link Here
|
69 |
|
75 |
|
70 |
# look in /usr/lib/nsplugins for plugins, in addition to the usual places |
76 |
# look in /usr/lib/nsplugins for plugins, in addition to the usual places |
71 |
epatch ${DISTDIR}/mozilla-1.7.10-nsplugins-v2.patch |
77 |
epatch ${DISTDIR}/mozilla-1.7.10-nsplugins-v2.patch |
|
|
78 |
|
79 |
# Unpack the enigmail plugin |
80 |
if use crypt; then |
81 |
for x in ipc enigmail; do |
82 |
mv ${WORKDIR}/${x} ${S}/extensions || die "mv failed" |
83 |
cd ${S}/extensions/${x} || die "cd failed" |
84 |
makemake # from mozilla.eclass |
85 |
done |
86 |
fi |
72 |
} |
87 |
} |
73 |
|
88 |
|
74 |
src_compile() { |
89 |
src_compile() { |
Lines 116-121
Link Here
|
116 |
edit_makefiles |
131 |
edit_makefiles |
117 |
|
132 |
|
118 |
emake || die |
133 |
emake || die |
|
|
134 |
|
135 |
# Build the enigmail plugin |
136 |
if use crypt; then |
137 |
einfo "Building Enigmail plugin..." |
138 |
cd ${S}/extensions/ipc || die "cd ipc failed" |
139 |
make || die "make ipc failed" |
140 |
|
141 |
cd ${S}/extensions/enigmail || die "cd enigmail failed" |
142 |
make || die "make enigmail failed" |
143 |
fi |
119 |
} |
144 |
} |
120 |
|
145 |
|
121 |
src_install() { |
146 |
src_install() { |
Lines 152-166
Link Here
|
152 |
MOZILLA_LIBDIR=${ROOT}${MOZILLA_FIVE_HOME} MOZILLA_LAUNCHER=thunderbird \ |
177 |
MOZILLA_LIBDIR=${ROOT}${MOZILLA_FIVE_HOME} MOZILLA_LAUNCHER=thunderbird \ |
153 |
/usr/libexec/mozilla-launcher -register |
178 |
/usr/libexec/mozilla-launcher -register |
154 |
|
179 |
|
|
|
180 |
# Fix permissions of component registry |
181 |
chmod 0644 ${MOZILLA_FIVE_HOME}/components/compreg.dat |
182 |
|
183 |
# Fix directory permissions |
184 |
find ${MOZILLA_FIVE_HOME}/ -type d -perm 0700 -exec chmod 0755 {} \; || : |
185 |
|
186 |
# Fix permissions on chrome files |
187 |
find ${MOZILLA_FIVE_HOME}/chrome/ -name '*.rdf' -exec chmod 0644 {} \; || : |
188 |
|
189 |
# Needed to update the run time bindings for REGXPCOM |
190 |
# (do not remove next line!) |
191 |
env-update |
192 |
|
155 |
# This should be called in the postinst and postrm of all the |
193 |
# This should be called in the postinst and postrm of all the |
156 |
# mozilla, mozilla-bin, firefox, firefox-bin, thunderbird and |
194 |
# mozilla, mozilla-bin, firefox, firefox-bin, thunderbird and |
157 |
# thunderbird-bin ebuilds. |
195 |
# thunderbird-bin ebuilds. |
158 |
update_mozilla_launcher_symlinks |
196 |
update_mozilla_launcher_symlinks |
159 |
|
|
|
160 |
ewarn "Enigmail Support has been dropped since it doesn't work on fresh install." |
161 |
ewarn "The Gentoo Mozilla team is working on making enigmail its own build," |
162 |
ewarn "sorry for the inconvenience. For now, you can download enigmail from" |
163 |
ewarn "http://enigmail.mozdev.org" |
164 |
} |
197 |
} |
165 |
|
198 |
|
166 |
pkg_postrm() { |
199 |
pkg_postrm() { |