# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ # Nonofficial by gg. For new version look here : http://frogdev.dyndns.org.org/ # This is a modification of the official thunderbird-bin ebuild inherit nsplugins eutils mozilla-launcher S=${WORKDIR}/thunderbird DESCRIPTION="The Mozilla Thunderbird Mail & News Reader - French version with dictionaries" DESCRIPTION_FR="Le client de mail et de news Mozilla Thunderbird en français avec les dictionnaires français" SRC_URI="mirror://sourceforge/frenchmozilla/thunderbird-${PV}-i686-linux-gtk2+xft-fr-FR.tar.gz http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries/fr_FR.zip" HOMEPAGE="http://frenchmozilla.sourceforge.net/thunderbird/" RESTRICT="nostrip nomirror" KEYWORDS="~x86" SLOT="0" LICENSE="MPL-1.1 | NPL-1.1" IUSE="gnome" DEPEND="virtual/libc" RDEPEND="virtual/x11 >=dev-libs/libIDL-0.8.0 >=x11-libs/gtk+-2.1.1 virtual/xft >=media-libs/jpeg-6b >=media-libs/libmng-1.0.0 >=media-libs/libpng-1.2.1 dev-libs/expat app-arch/zip app-arch/unzip www-client/mozilla-launcher " src_install() { # Install thunderbird in /opt dodir /opt mv ${S} ${D}/opt/ dosym /opt/thunderbird/defaults/pref/all-thunderbird.js /opt/thunderbird/defaults/pref/thunderbird.js #Install french dictionnary dodir /opt/thunderbird/components/myspell mv ${WORKDIR}/fr_FR.aff ${D}/opt/thunderbird/components/myspell/ mv ${WORKDIR}/fr_FR.dic ${D}/opt/thunderbird/components/myspell/ # Fixing permissions chown -R root:root ${D}/opt/thunderbird # mozilla-launcher-1.13 supports -bin versions dodir /usr/bin dosym /usr/libexec/mozilla-launcher /usr/bin/thunderbird-bin # Install icon and .desktop for menu entry insinto /usr/share/pixmaps doins ${FILESDIR}/icon/mozillathunderbird-bin-icon.png # Fix bug 54179: Install .desktop file into /usr/share/applications # instead of /usr/share/gnome/apps/Internet (18 Jun 2004 agriffis) insinto /usr/share/applications doins ${FILESDIR}/icon/mozillathunderbird-bin.desktop } pkg_preinst() { # Remove entire installed instance to solve various # problems, for example see bug 27719 rm -rf ${ROOT}/opt/MozillaThunderbird rm -rf ${ROOT}/opt/thunderbird } pkg_postinst() { einfo "To enable Enigmail, you must install the Enigmail and Enigmime" einfo "extensions as root. Go to Tools / Options / Extensions and click" einfo "on Install Extension to install Enigmail in your Thunderbird build." einfo "Restart Thunderbird after having installed both extensions." einfo "" einfo "The extensions are located at http://enigmail.mozdev.org/" einfo "" einfo "Please note that the binary name has changed from MozillaThunderbird" einfo "to simply thunderbird-bin" einfo "" # 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 } pkg_postrm() { update_mozilla_launcher_symlinks }