--- mozilla-thunderbird-1.0.6-r4.ebuild.orig 2005-09-22 07:46:58.000000000 -0300 +++ mozilla-thunderbird-1.0.6-r4.ebuild 2005-09-22 03:10:16.000000000 -0300 @@ -5,19 +5,25 @@ unset ALLOWED_FLAGS # stupid extra-functions.sh ... bug 49179 inherit flag-o-matic toolchain-funcs eutils mozconfig mozilla-launcher makeedit multilib +EMVER="0.92.1" +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 - http://dev.gentoo.org/~agriffis/dist/mozilla-1.7.10-nsplugins-v2.patch" + http://dev.gentoo.org/~agriffis/dist/mozilla-1.7.10-nsplugins-v2.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 @@ -69,6 +75,15 @@ # look in /usr/lib/nsplugins for plugins, in addition to the usual places epatch ${DISTDIR}/mozilla-1.7.10-nsplugins-v2.patch + + # 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() { @@ -116,6 +131,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() { @@ -152,15 +177,23 @@ MOZILLA_LIBDIR=${ROOT}${MOZILLA_FIVE_HOME} MOZILLA_LAUNCHER=thunderbird \ /usr/libexec/mozilla-launcher -register + # Fix permissions of component registry + chmod 0644 ${MOZILLA_FIVE_HOME}/components/compreg.dat + + # Fix directory permissions + find ${MOZILLA_FIVE_HOME}/ -type d -perm 0700 -exec chmod 0755 {} \; || : + + # Fix permissions on chrome files + find ${MOZILLA_FIVE_HOME}/chrome/ -name '*.rdf' -exec chmod 0644 {} \; || : + + # Needed to update the run time bindings for REGXPCOM + # (do not remove next line!) + env-update + # This should be called in the postinst and postrm of all the # mozilla, mozilla-bin, firefox, firefox-bin, thunderbird and # 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() {