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