/[gentoo-x86]/www-client/seamonkey-bin/seamonkey-bin-2.0.9.ebuild
Gentoo

Contents of /www-client/seamonkey-bin/seamonkey-bin-2.0.9.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Thu Dec 9 21:35:59 2010 UTC (7 years, 6 months ago) by polynomial-c
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Security bump.

(Portage version: 2.2.0_alpha7/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey-bin/seamonkey-bin-2.0.9.ebuild,v 1.3 2010/10/25 00:32:42 fauli Exp $
4
5 inherit eutils mozilla-launcher multilib
6
7 MY_PV="${PV/_alpha/a}"
8 MY_P="${PN}-${MY_PV}"
9
10 DESCRIPTION="Mozilla Application Suite - web browser, email, HTML editor, IRC"
11 SRC_URI="http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/${MY_PV}/linux-i686/en-US/seamonkey-${MY_PV}.tar.bz2"
12 HOMEPAGE="http://www.seamonkey-project.org/"
13 RESTRICT="strip"
14 QA_EXECSTACK="opt/seamonkey/*"
15
16 KEYWORDS="-* amd64 x86"
17 SLOT="0"
18 LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
19 IUSE=""
20
21 DEPEND="app-arch/unzip"
22 RDEPEND="dev-libs/dbus-glib
23 x11-libs/libXrender
24 x11-libs/libXt
25 x11-libs/libXmu
26 x86? (
27 >=x11-libs/gtk+-2.2
28 >=media-libs/alsa-lib-1.0.16
29 )
30 amd64? (
31 >=app-emulation/emul-linux-x86-baselibs-20081109
32 >=app-emulation/emul-linux-x86-gtklibs-20081109
33 >=app-emulation/emul-linux-x86-soundlibs-20081109
34 )
35 !<www-client/seamonkey-bin-2"
36
37 S="${WORKDIR}/seamonkey"
38
39 pkg_setup() {
40 # This is a binary x86 package => ABI=x86
41 # Please keep this in future versions
42 # Danny van Dyk <kugelfang@gentoo.org> 2005/03/26
43 has_multilib_profile && ABI="x86"
44 }
45
46 src_install() {
47 declare MOZILLA_FIVE_HOME=/opt/seamonkey
48
49 # Install seamonkey in /opt
50 dodir ${MOZILLA_FIVE_HOME%/*}
51 mv "${S}" "${D}${MOZILLA_FIVE_HOME}"
52
53 # Create /usr/bin/seamonkey-bin
54 dodir /usr/bin/
55 cat <<EOF >"${D}"/usr/bin/seamonkey-bin
56 #!/bin/sh
57 unset LD_PRELOAD
58 exec /opt/seamonkey/seamonkey "\$@"
59 EOF
60 fperms 0755 /usr/bin/seamonkey-bin
61
62 # Install icon and .desktop for menu entry
63 doicon "${FILESDIR}/icon/${PN}.png"
64 domenu "${FILESDIR}/icon/${PN}.desktop"
65 }
66
67 pkg_preinst() {
68 declare MOZILLA_FIVE_HOME=/opt/seamonkey
69
70 # Remove entire installed instance to prevent all kinds of
71 # problems... see bug 44772 for example
72 rm -rf "${ROOT}${MOZILLA_FIVE_HOME}"
73 }
74
75 pkg_postinst() {
76 use amd64 && einfo "NB: You just installed a 32-bit seamonkey"
77
78 einfo
79 einfo "If you want/need native language support please download"
80 einfo "and install the language pack that you need from :"
81 einfo "http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/${MY_PV}/langpack/"
82 }

  ViewVC Help
Powered by ViewVC 1.1.20