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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun May 31 14:34:58 2015 UTC (3 years, 3 months ago) by axs
Branch: MAIN
CVS Tags: HEAD
ported all-gentoo prefs from firefox-bin to address Logjam attack vector, bug 550288

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

1 # Copyright 1999-2015 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.33.1.ebuild,v 1.3 2015/03/26 11:36:44 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"
30
31 KEYWORDS="-* ~amd64 ~x86"
32 SLOT="0"
33 LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
34 IUSE="startup-notification"
35
36 DEPEND="app-arch/unzip"
37 RDEPEND="dev-libs/atk
38 >=sys-apps/dbus-0.60
39 >=dev-libs/dbus-glib-0.72
40 >=dev-libs/glib-2.26:2
41 >=media-libs/alsa-lib-1.0.16
42 gnome-base/gconf
43 gnome-base/gnome-vfs
44 media-libs/fontconfig
45 >=media-libs/freetype-2.4.10
46 >=x11-libs/cairo-1.10[X]
47 x11-libs/gdk-pixbuf
48 >=x11-libs/gtk+-2.14:2
49 x11-libs/libX11
50 x11-libs/libXcomposite
51 x11-libs/libXdamage
52 x11-libs/libXext
53 x11-libs/libXfixes
54 x11-libs/libXrender
55 x11-libs/libXt
56 >=x11-libs/pango-1.22.0
57 virtual/freedesktop-icon-theme
58 "
59
60 QA_PREBUILT="
61 opt/${MOZ_PN}/*.so
62 opt/${MOZ_PN}/${MOZ_PN}
63 opt/${MOZ_PN}/${PN}
64 opt/${MOZ_PN}/components/*.so
65 opt/${MOZ_PN}/crashreporter
66 opt/${MOZ_PN}/webapprt-stub
67 opt/${MOZ_PN}/plugin-container
68 opt/${MOZ_PN}/mozilla-xremote-client
69 opt/${MOZ_PN}/updater
70 "
71
72 S="${WORKDIR}/${MOZ_PN}"
73
74 src_unpack() {
75 unpack ${A}
76
77 # Unpack language packs
78 mozlinguas_src_unpack
79 }
80
81 src_install() {
82 declare MOZILLA_FIVE_HOME=/opt/seamonkey
83
84 # Install seamonkey in /opt
85 dodir ${MOZILLA_FIVE_HOME%/*}
86 mv "${S}" "${D}${MOZILLA_FIVE_HOME}"
87
88 # Install language packs
89 mozlinguas_src_install
90
91 # Create /usr/bin/seamonkey-bin
92 dodir /usr/bin/
93 cat <<EOF >"${D}"/usr/bin/seamonkey-bin
94 #!/bin/sh
95 unset LD_PRELOAD
96 exec /opt/seamonkey/seamonkey "\$@"
97 EOF
98 fperms 0755 /usr/bin/seamonkey-bin
99
100 # Install icon and .desktop for menu entry
101 newicon "${D}${MOZILLA_FIVE_HOME}"/chrome/icons/default/default48.png ${PN}.png
102 domenu "${FILESDIR}/icon/${PN}.desktop"
103
104 if use startup-notification; then
105 echo "StartupNotify=true" >> "${D}"/usr/share/applications/${PN}.desktop
106 fi
107
108 # Fix prefs that make no sense for a system-wide install
109 insinto ${MOZILLA_FIVE_HOME}/defaults/pref/
110 doins "${FILESDIR}"/local-settings.js
111 # Copy preferences file so we can do a simple rename.
112 cp "${FILESDIR}"/all-gentoo-1-cve-2015-4000.js "${D}"${MOZILLA_FIVE_HOME}/all-gentoo.js
113
114 # revdep-rebuild entry
115 insinto /etc/revdep-rebuild
116 doins "${FILESDIR}"/10${PN} || die
117
118 # Handle plugins dir through nsplugins.eclass
119 share_plugins_dir
120
121 # Required in order to use plugins and even run seamonkey on hardened.
122 pax-mark mr "${ED}"/${MOZILLA_FIVE_HOME}/{seamonkey,seamonkey-bin,plugin-container}
123 }
124
125 pkg_preinst() {
126 gnome2_icon_savelist
127 }
128
129 pkg_postinst() {
130 # Update mimedb for the new .desktop file
131 fdo-mime_desktop_database_update
132 gnome2_icon_cache_update
133 }
134
135 pkg_postrm() {
136 gnome2_icon_cache_update
137 }

  ViewVC Help
Powered by ViewVC 1.1.20