Gentoo Archives: gentoo-commits

From: "Lars Wendler (polynomial-c)" <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-client/seamonkey-bin: ChangeLog seamonkey-bin-2.5.ebuild
Date: Wed, 23 Nov 2011 08:51:30
Message-Id: 20111123085119.2F8B32004B@flycatcher.gentoo.org
1 polynomial-c 11/11/23 08:51:19
2
3 Modified: ChangeLog
4 Added: seamonkey-bin-2.5.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.2.0_alpha77/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.107 www-client/seamonkey-bin/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey-bin/ChangeLog?rev=1.107&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey-bin/ChangeLog?rev=1.107&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey-bin/ChangeLog?r1=1.106&r2=1.107
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/www-client/seamonkey-bin/ChangeLog,v
20 retrieving revision 1.106
21 retrieving revision 1.107
22 diff -u -r1.106 -r1.107
23 --- ChangeLog 16 Nov 2011 08:51:20 -0000 1.106
24 +++ ChangeLog 23 Nov 2011 08:51:19 -0000 1.107
25 @@ -1,6 +1,12 @@
26 # ChangeLog for www-client/seamonkey-bin
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey-bin/ChangeLog,v 1.106 2011/11/16 08:51:20 polynomial-c Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey-bin/ChangeLog,v 1.107 2011/11/23 08:51:19 polynomial-c Exp $
30 +
31 +*seamonkey-bin-2.5 (23 Nov 2011)
32 +
33 + 23 Nov 2011; Lars Wendler <polynomial-c@g.o>
34 + +seamonkey-bin-2.5.ebuild:
35 + Version bump.
36
37 *seamonkey-bin-2.4.1 (16 Nov 2011)
38
39
40
41
42 1.1 www-client/seamonkey-bin/seamonkey-bin-2.5.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey-bin/seamonkey-bin-2.5.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey-bin/seamonkey-bin-2.5.ebuild?rev=1.1&content-type=text/plain
46
47 Index: seamonkey-bin-2.5.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey-bin/seamonkey-bin-2.5.ebuild,v 1.1 2011/11/23 08:51:19 polynomial-c Exp $
52
53 EAPI="4"
54
55 inherit eutils mozilla-launcher multilib mozextension pax-utils
56
57 LANGS=(be ca cs de en-GB en-US es-AR es-ES fi fr gl hu it
58 ja lt nb-NO nl pl pt-PT ru sk sv-SE tr zh-CN)
59
60 MY_PV="${PV/_alpha/a}"
61 MY_P="${PN}-${MY_PV}"
62
63 DESCRIPTION="Mozilla Application Suite - web browser, email, HTML editor, IRC"
64 HTTP_URI="http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/${MY_PV}/"
65 SRC_URI="
66 amd64? ( ${HTTP_URI}/contrib/seamonkey-${MY_PV}.en-US.linux-x86_64.tar.bz2 -> ${PN}_x86_64-${PV}.tar.bz2 )
67 x86? ( ${HTTP_URI}/linux-i686/en-US/seamonkey-${MY_PV}.tar.bz2 -> ${PN}_i686-${PV}.tar.bz2 )"
68 HOMEPAGE="http://www.seamonkey-project.org/"
69 RESTRICT="strip"
70 QA_EXECSTACK="opt/seamonkey/*"
71
72 KEYWORDS="-* ~amd64 ~x86"
73 SLOT="0"
74 LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
75 IUSE="startup-notification"
76
77 DEPEND="app-arch/unzip"
78 RDEPEND="dev-libs/dbus-glib
79 >=media-libs/alsa-lib-1.0.16
80 >=x11-libs/gtk+-2.10:2
81 x11-libs/libXrender
82 x11-libs/libXt
83 x11-libs/libXmu
84 !<www-client/seamonkey-bin-2"
85
86 S="${WORKDIR}/seamonkey"
87
88 for X in "${LANGS[@]}" ; do
89 # en and en_US are handled internally
90 if [[ ${X} != en ]] && [[ ${X} != en-US ]]; then
91 SRC_URI="${SRC_URI}
92 linguas_${X/-/_}? (
93 ${HTTP_URI}/langpack/seamonkey-${MY_PV}.${X}.langpack.xpi -> ${P/-bin/}-${X}.xpi )"
94 fi
95 IUSE="${IUSE} linguas_${X/-/_}"
96 # Install all the specific locale xpis if there's no generic locale xpi
97 # Example: there's no pt.xpi, so install all pt-*.xpi
98 if ! has ${X%%-*} "${LANGS[@]}"; then
99 SRC_URI="${SRC_URI}
100 linguas_${X%%-*}? (
101 ${HTTP_URI}/langpack/seamonkey-${MY_PV}.${X}.langpack.xpi -> ${P/-bin/}-${X}.xpi )"
102 IUSE="${IUSE} linguas_${X%%-*}"
103 fi
104 done
105
106 linguas() {
107 # Generate the list of language packs called "linguas"
108 # This list is used to install the xpi language packs
109 local LINGUA
110 for LINGUA in ${LINGUAS}; do
111 if has ${LINGUA} en en_US; then
112 # For mozilla products, en and en_US are handled internally
113 continue
114 # If this language is supported by ${P},
115 elif has ${LINGUA} "${LANGS[@]//-/_}"; then
116 # Add the language to linguas, if it isn't already there
117 has ${LINGUA//_/-} "${linguas[@]}" || linguas+=(${LINGUA//_/-})
118 continue
119 # For each short LINGUA that isn't in LANGS,
120 # add *all* long LANGS to the linguas list
121 elif ! has ${LINGUA%%-*} "${LANGS[@]}"; then
122 for LANG in "${LANGS[@]}"; do
123 if [[ ${LANG} == ${LINGUA}-* ]]; then
124 has ${LANG} "${linguas[@]}" || linguas+=(${LANG})
125 continue 2
126 fi
127 done
128 fi
129 ewarn "Sorry, but ${P} does not support the ${LINGUA} locale"
130 done
131 }
132
133 src_unpack() {
134 unpack ${A}
135
136 linguas
137 for X in "${linguas[@]}"; do
138 # FIXME: Add support for unpacking xpis to portage
139 [[ ${X} != "en" ]] && xpi_unpack "${P/-bin/}-${X}.xpi"
140 done
141 if [[ "${linguas[*]}" != "" && "${linguas[*]}" != "en" ]]; then
142 einfo "Selected language packs (first will be default): ${linguas[*]}"
143 fi
144 }
145
146 src_install() {
147 declare MOZILLA_FIVE_HOME=/opt/seamonkey
148
149 # Install seamonkey in /opt
150 dodir ${MOZILLA_FIVE_HOME%/*}
151 mv "${S}" "${D}${MOZILLA_FIVE_HOME}"
152
153 linguas
154 for X in "${linguas[@]}"; do
155 [[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/"${P/-bin/}-${X}"
156 done
157
158 local LANG=${linguas%% *}
159 if [[ -n ${LANG} && ${LANG} != "en" ]]; then
160 elog "Setting default locale to ${LANG}"
161 echo "pref(\"general.useragent.locale\", \"${LANG}\");" \
162 >> "${D}${MOZILLA_FIVE_HOME}"/defaults/pref/${PN}-prefs.js || \
163 die "sed failed to change locale"
164 fi
165
166 # Create /usr/bin/seamonkey-bin
167 dodir /usr/bin/
168 cat <<EOF >"${D}"/usr/bin/seamonkey-bin
169 #!/bin/sh
170 unset LD_PRELOAD
171 exec /opt/seamonkey/seamonkey "\$@"
172 EOF
173 fperms 0755 /usr/bin/seamonkey-bin
174
175 # Install icon and .desktop for menu entry
176 doicon "${FILESDIR}/icon/${PN}.png"
177 domenu "${FILESDIR}/icon/${PN}.desktop"
178
179 if use startup-notification; then
180 echo "StartupNotify=true" >> "${D}"/usr/share/applications/${PN}.desktop
181 fi
182
183 # revdep-rebuild entry
184 insinto /etc/revdep-rebuild
185 doins "${FILESDIR}"/10${PN} || die
186
187 ln -sfn "/usr/$(get_libdir)/nsbrowser/plugins" \
188 "${D}${MOZILLA_FIVE_HOME}/plugins" || die
189
190 # Required in order to use plugins and even run seamonkey on hardened.
191 pax-mark m "${ED}"/${MOZILLA_FIVE_HOME}/{seamonkey,seamonkey-bin,plugin-container}
192 }