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

Contents of /www-client/seamonkey-bin/seamonkey-bin-2.30-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Tue Mar 24 23:28:08 2015 UTC (3 years, 8 months ago) by polynomial-c
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Security bump (bug #544056). Removed old

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC)

1 # Copyright 1999-2014 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.30-r1.ebuild,v 1.3 2014/10/18 13:55:31 ago 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/atk
39 >=sys-apps/dbus-0.60
40 >=dev-libs/dbus-glib-0.72
41 >=dev-libs/glib-2.26:2
42 >=media-libs/alsa-lib-1.0.16
43 gnome-base/gconf
44 gnome-base/gnome-vfs
45 media-libs/fontconfig
46 >=media-libs/freetype-2.4.10
47 >=x11-libs/cairo-1.10[X]
48 x11-libs/gdk-pixbuf
49 >=x11-libs/gtk+-2.14:2
50 x11-libs/libX11
51 x11-libs/libXcomposite
52 x11-libs/libXdamage
53 x11-libs/libXext
54 x11-libs/libXfixes
55 x11-libs/libXrender
56 x11-libs/libXt
57 >=x11-libs/pango-1.22.0
58 virtual/freedesktop-icon-theme
59 "
60
61 S="${WORKDIR}/${MOZ_PN}"
62
63 src_unpack() {
64 unpack ${A}
65
66 # Unpack language packs
67 mozlinguas_src_unpack
68 }
69
70 src_install() {
71 declare MOZILLA_FIVE_HOME=/opt/seamonkey
72
73 # Install seamonkey in /opt
74 dodir ${MOZILLA_FIVE_HOME%/*}
75 mv "${S}" "${D}${MOZILLA_FIVE_HOME}"
76
77 # Install language packs
78 mozlinguas_src_install
79
80 # Create /usr/bin/seamonkey-bin
81 dodir /usr/bin/
82 cat <<EOF >"${D}"/usr/bin/seamonkey-bin
83 #!/bin/sh
84 unset LD_PRELOAD
85 exec /opt/seamonkey/seamonkey "\$@"
86 EOF
87 fperms 0755 /usr/bin/seamonkey-bin
88
89 # Install icon and .desktop for menu entry
90 newicon "${D}${MOZILLA_FIVE_HOME}"/chrome/icons/default/default48.png ${PN}.png
91 domenu "${FILESDIR}/icon/${PN}.desktop"
92
93 if use startup-notification; then
94 echo "StartupNotify=true" >> "${D}"/usr/share/applications/${PN}.desktop
95 fi
96
97 # revdep-rebuild entry
98 insinto /etc/revdep-rebuild
99 doins "${FILESDIR}"/10${PN} || die
100
101 # Handle plugins dir through nsplugins.eclass
102 share_plugins_dir
103
104 # Required in order to use plugins and even run seamonkey on hardened.
105 pax-mark mr "${ED}"/${MOZILLA_FIVE_HOME}/{seamonkey,seamonkey-bin,plugin-container}
106 }
107
108 pkg_preinst() {
109 gnome2_icon_savelist
110 }
111
112 pkg_postinst() {
113 # Update mimedb for the new .desktop file
114 fdo-mime_desktop_database_update
115 gnome2_icon_cache_update
116 }
117
118 pkg_postrm() {
119 gnome2_icon_cache_update
120 }

  ViewVC Help
Powered by ViewVC 1.1.20