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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Nov 3 12:31:57 2012 UTC (21 months, 4 weeks ago) by ago
Branch: MAIN
Changes since 1.2: +2 -2 lines
Stable for amd64, wrt bug #439960

(Portage version: 2.1.11.9/cvs/Linux x86_64)

1 # Copyright 1999-2012 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.13.2.ebuild,v 1.2 2012/10/31 19:52:11 axs Exp $
4
5 EAPI="4"
6
7 # This list can be updated with scripts/get_langs.sh from the mozilla overlay
8 MOZ_LANGS=(be ca cs de en-GB en-US es-AR es-ES fi fr gl hu it ja lt nb-NO nl pl
9 pt-PT ru sk sv-SE tr uk zh-CN zh-TW)
10
11 MOZ_PV="${PV/_alpha/a}" # Handle alpha for SRC_URI
12 MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI
13 MOZ_PV="${MOZ_PV/_rc/rc}" # Handle rc for SRC_URI
14 MOZ_PN="${PN/-bin}"
15 MOZ_P="${MOZ_PN}-${MOZ_PV}"
16
17 MOZ_LANGPACK_PREFIX="${MOZ_PV}/langpack/${MOZ_P}."
18 MOZ_LANGPACK_SUFFIX=".langpack.xpi"
19
20 MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/mozilla.org/${MOZ_PN}/releases/"
21
22 inherit eutils multilib mozextension pax-utils nsplugins fdo-mime gnome2-utils mozlinguas
23
24 DESCRIPTION="Mozilla Application Suite - web browser, email, HTML editor, IRC"
25 SRC_URI="${SRC_URI}
26 amd64? ( ${MOZ_FTP_URI}/${MOZ_PV}/contrib/${MOZ_P}.en-US.linux-x86_64.tar.bz2 -> ${PN}_x86_64-${PV}.tar.bz2 )
27 x86? ( ${MOZ_FTP_URI}/${MOZ_PV}/linux-i686/en-US/${MOZ_P}.tar.bz2 -> ${PN}_i686-${PV}.tar.bz2 )"
28 HOMEPAGE="http://www.seamonkey-project.org/"
29 RESTRICT="strip mirror binchecks"
30 QA_EXECSTACK="opt/seamonkey/*"
31
32 KEYWORDS="-* amd64 ~x86"
33 SLOT="0"
34 LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
35 IUSE="startup-notification"
36
37 DEPEND="app-arch/unzip"
38 RDEPEND="dev-libs/dbus-glib
39 >=media-libs/alsa-lib-1.0.16
40 virtual/freedesktop-icon-theme
41 >=x11-libs/gtk+-2.10:2
42 x11-libs/libXrender
43 x11-libs/libXt
44 x11-libs/libXmu
45
46 !net-libs/libproxy[spidermonkey]
47 "
48
49 S="${WORKDIR}/${MOZ_PN}"
50
51 src_unpack() {
52 unpack ${A}
53
54 # Unpack language packs
55 mozlinguas_src_unpack
56 }
57
58 src_install() {
59 declare MOZILLA_FIVE_HOME=/opt/seamonkey
60
61 # Install seamonkey in /opt
62 dodir ${MOZILLA_FIVE_HOME%/*}
63 mv "${S}" "${D}${MOZILLA_FIVE_HOME}"
64
65 # Install language packs
66 mozlinguas_src_install
67
68 # Create /usr/bin/seamonkey-bin
69 dodir /usr/bin/
70 cat <<EOF >"${D}"/usr/bin/seamonkey-bin
71 #!/bin/sh
72 unset LD_PRELOAD
73 exec /opt/seamonkey/seamonkey "\$@"
74 EOF
75 fperms 0755 /usr/bin/seamonkey-bin
76
77 # Install icon and .desktop for menu entry
78 doicon "${FILESDIR}/icon/${PN}.png"
79 domenu "${FILESDIR}/icon/${PN}.desktop"
80
81 if use startup-notification; then
82 echo "StartupNotify=true" >> "${D}"/usr/share/applications/${PN}.desktop
83 fi
84
85 # revdep-rebuild entry
86 insinto /etc/revdep-rebuild
87 doins "${FILESDIR}"/10${PN} || die
88
89 # Handle plugins dir through nsplugins.eclass
90 share_plugins_dir
91
92 # Required in order to use plugins and even run seamonkey on hardened.
93 pax-mark mr "${ED}"/${MOZILLA_FIVE_HOME}/{seamonkey,seamonkey-bin,plugin-container}
94 }
95
96 pkg_preinst() {
97 gnome2_icon_savelist
98 }
99
100 pkg_postinst() {
101 # Update mimedb for the new .desktop file
102 fdo-mime_desktop_database_update
103 gnome2_icon_cache_update
104 }
105
106 pkg_postrm() {
107 gnome2_icon_cache_update
108 }

  ViewVC Help
Powered by ViewVC 1.1.20