1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils mozilla-launcher multilib
7 DESCRIPTION="Mozilla Application Suite - web browser, email, HTML editor, IRC"
8 SRC_URI="http://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/${PV}/seamonkey-${PV}.en-US.linux-i686.tar.gz"
9 HOMEPAGE="http://www.mozilla.org/projects/seamonkey"
12 KEYWORDS="-* ~amd64 ~x86"
14 LICENSE="MPL-1.1 NPL-1.1"
17 DEPEND="app-arch/unzip
19 RDEPEND="x11-libs/libXrender
23 >=sys-libs/lib-compat-1.0-r2
27 >=app-emulation/emul-linux-x86-baselibs-1.0
28 >=app-emulation/emul-linux-x86-gtklibs-1.0
30 >=www-client/mozilla-launcher-1.41
31 =virtual/libstdc++-3.3
34 S=${WORKDIR}/seamonkey
37 # This is a binary x86 package => ABI=x86
38 # Please keep this in future versions
39 # Danny van Dyk <kugelfang@gentoo.org> 2005/03/26
40 has_multilib_profile && ABI="x86"
44 declare MOZILLA_FIVE_HOME=/opt/seamonkey
46 # Install seamonkey in /opt
47 dodir ${MOZILLA_FIVE_HOME%/*}
48 mv "${S}" "${D}${MOZILLA_FIVE_HOME}"
50 # Create /usr/bin/seamonkey-bin
51 install_mozilla_launcher_stub seamonkey-bin ${MOZILLA_FIVE_HOME}
53 # Install icon and .desktop for menu entry
54 insinto /usr/share/pixmaps
55 doins "${FILESDIR}/icon/seamonkey-bin-icon.png"
56 insinto /usr/share/applications
57 doins "${FILESDIR}/icon/seamonkey-bin.desktop"
59 # revdep-rebuild entry
60 insinto /etc/revdep-rebuild
61 doins "${FILESDIR}/10seamonkey-bin"
65 declare MOZILLA_FIVE_HOME=/opt/seamonkey
67 # Remove entire installed instance to prevent all kinds of
68 # problems... see bug 44772 for example
69 rm -rf "${ROOT}${MOZILLA_FIVE_HOME}"
75 einfo "NB: You just installed a 32-bit seamonkeyx"
78 update_mozilla_launcher_symlinks
82 update_mozilla_launcher_symlinks