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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Sat Sep 15 12:25:33 2012 UTC (23 months, 2 weeks ago) by nativemad
Branch: MAIN
Changes since 1.1: +2 -2 lines
x86 stable, see bug 433383

(Portage version: 2.1.11.9/cvs/Linux i686)

1 polynomial-c 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 nativemad 1.2 # $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey-bin/seamonkey-bin-2.12.1.ebuild,v 1.1 2012/09/11 08:30:02 polynomial-c Exp $
4 polynomial-c 1.1
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 nativemad 1.2 KEYWORDS="-* amd64 x86"
33 polynomial-c 1.1 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     S="${WORKDIR}/${MOZ_PN}"
47    
48     src_unpack() {
49     unpack ${A}
50    
51     # Unpack language packs
52     mozlinguas_src_unpack
53     }
54    
55     src_install() {
56     declare MOZILLA_FIVE_HOME=/opt/seamonkey
57    
58     # Install seamonkey in /opt
59     dodir ${MOZILLA_FIVE_HOME%/*}
60     mv "${S}" "${D}${MOZILLA_FIVE_HOME}"
61    
62     # Install language packs
63     mozlinguas_src_install
64    
65     # Create /usr/bin/seamonkey-bin
66     dodir /usr/bin/
67     cat <<EOF >"${D}"/usr/bin/seamonkey-bin
68     #!/bin/sh
69     unset LD_PRELOAD
70     exec /opt/seamonkey/seamonkey "\$@"
71     EOF
72     fperms 0755 /usr/bin/seamonkey-bin
73    
74     # Install icon and .desktop for menu entry
75     doicon "${FILESDIR}/icon/${PN}.png"
76     domenu "${FILESDIR}/icon/${PN}.desktop"
77    
78     if use startup-notification; then
79     echo "StartupNotify=true" >> "${D}"/usr/share/applications/${PN}.desktop
80     fi
81    
82     # revdep-rebuild entry
83     insinto /etc/revdep-rebuild
84     doins "${FILESDIR}"/10${PN} || die
85    
86     # Handle plugins dir through nsplugins.eclass
87     share_plugins_dir
88    
89     # Required in order to use plugins and even run seamonkey on hardened.
90     pax-mark mr "${ED}"/${MOZILLA_FIVE_HOME}/{seamonkey,seamonkey-bin,plugin-container}
91     }
92    
93     pkg_preinst() {
94     gnome2_icon_savelist
95     }
96    
97     pkg_postinst() {
98     # Update mimedb for the new .desktop file
99     fdo-mime_desktop_database_update
100     gnome2_icon_cache_update
101     }
102    
103     pkg_postrm() {
104     gnome2_icon_cache_update
105     }

  ViewVC Help
Powered by ViewVC 1.1.20