--- /usr/portage/mail-client/mozilla-thunderbird/mozilla-thunderbird-1.0.7-r2.ebuild 2005-10-25 19:55:41.000000000 -0200 +++ /usr/portage/mail-client/mozilla-thunderbird/mozilla-thunderbird-1.0.7-r2.ebuild 2005-10-25 22:20:47.000000000 -0200 @@ -5,18 +5,24 @@ unset ALLOWED_FLAGS # stupid extra-functions.sh ... bug 49179 inherit flag-o-matic toolchain-funcs eutils mozconfig mozilla-launcher makeedit multilib +EMVER="0.93.0" +IPCVER="1.1.3" + DESCRIPTION="Thunderbird Mail Client" HOMEPAGE="http://www.mozilla.org/projects/thunderbird/" SRC_URI="http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/${PV}/source/thunderbird-${PV}-source.tar.bz2 mirror://gentoo/mozilla-firefox-1.0-4ft2.patch.bz2 - mirror://gentoo/mozilla-jslibmath-alpha.patch" + mirror://gentoo/mozilla-jslibmath-alpha.patch + crypt? ( http://www.mozilla-enigmail.org/downloads/src/enigmail-${EMVER}.tar.gz + http://www.mozilla-enigmail.org/downloads/src/ipc-${IPCVER}.tar.gz )" KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86" SLOT="0" LICENSE="MPL-1.1 NPL-1.1" -IUSE="mozcalendar ldap" +IUSE="crypt mozcalendar ldap" -RDEPEND=">=www-client/mozilla-launcher-1.39" +RDEPEND=">=www-client/mozilla-launcher-1.39 + crypt? ( >=app-crypt/gnupg-1.4 )" S=${WORKDIR}/mozilla @@ -65,6 +71,15 @@ # freetype; this enables freetype-2.1.8+ compat. # https://bugzilla.mozilla.org/show_bug.cgi?id=234035#c65 epatch ${DISTDIR}/mozilla-firefox-1.0-4ft2.patch.bz2 + + # Unpack the enigmail plugin + if use crypt; then + for x in ipc enigmail; do + mv ${WORKDIR}/${x} ${S}/extensions || die "mv failed" + cd ${S}/extensions/${x} || die "cd failed" + makemake # from mozilla.eclass + done + fi } src_compile() { @@ -124,6 +139,16 @@ edit_makefiles emake || die + + # Build the enigmail plugin + if use crypt; then + einfo "Building Enigmail plugin..." + cd ${S}/extensions/ipc || die "cd ipc failed" + make || die "make ipc failed" + + cd ${S}/extensions/enigmail || die "cd enigmail failed" + make || die "make enigmail failed" + fi } src_install() { @@ -165,10 +190,6 @@ # thunderbird-bin ebuilds. update_mozilla_launcher_symlinks - ewarn "Enigmail Support has been dropped since it doesn't work on fresh install." - ewarn "The Gentoo Mozilla team is working on making enigmail its own build," - ewarn "sorry for the inconvenience. For now, you can download enigmail from" - ewarn "http://enigmail.mozdev.org" } pkg_postrm() {