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

Contents of /www-client/seamonkey-bin/seamonkey-bin-2.0_alpha3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu Jul 15 00:31:31 2010 UTC (8 years, 3 months ago) by anarchy
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
remove stale ebuild, update 2.x release
(Portage version: 2.1.8.3/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_alpha3.ebuild,v 1.2 2010/01/02 10:03:18 ssuominen 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}/seamonkey-${MY_PV}.en-US.linux-i686.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
36 S="${WORKDIR}/seamonkey"
37
38 pkg_setup() {
39 # This is a binary x86 package => ABI=x86
40 # Please keep this in future versions
41 # Danny van Dyk <kugelfang@gentoo.org> 2005/03/26
42 has_multilib_profile && ABI="x86"
43 }
44
45 src_install() {
46 declare MOZILLA_FIVE_HOME=/opt/seamonkey
47
48 # Install seamonkey in /opt
49 dodir ${MOZILLA_FIVE_HOME%/*}
50 mv "${S}" "${D}${MOZILLA_FIVE_HOME}"
51
52 # Create /usr/bin/seamonkey-bin
53 dodir /usr/bin/
54 cat <<EOF >"${D}"/usr/bin/seamonkey-bin
55 #!/bin/sh
56 unset LD_PRELOAD
57 exec /opt/seamonkey/seamonkey "\$@"
58 EOF
59 fperms 0755 /usr/bin/seamonkey-bin
60
61 # Install icon and .desktop for menu entry
62 doicon "${FILESDIR}/icon/${PN}.png"
63 domenu "${FILESDIR}/icon/${PN}.desktop"
64 }
65
66 pkg_preinst() {
67 declare MOZILLA_FIVE_HOME=/opt/seamonkey
68
69 # Remove entire installed instance to prevent all kinds of
70 # problems... see bug 44772 for example
71 rm -rf "${ROOT}${MOZILLA_FIVE_HOME}"
72 }
73
74 pkg_postinst() {
75 use amd64 && einfo "NB: You just installed a 32-bit seamonkey"
76 update_mozilla_launcher_symlinks
77 }
78
79 pkg_postrm() {
80 update_mozilla_launcher_symlinks
81 }

  ViewVC Help
Powered by ViewVC 1.1.20