1 |
jdhore 12/01/31 20:50:31 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: seamonkey-bin-2.7.ebuild |
5 |
Log: |
6 |
Version bump to 2.7 |
7 |
|
8 |
(Portage version: 2.2.0_alpha84/cvs/Linux i686) |
9 |
|
10 |
Revision Changes Path |
11 |
1.116 www-client/seamonkey-bin/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey-bin/ChangeLog?rev=1.116&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey-bin/ChangeLog?rev=1.116&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey-bin/ChangeLog?r1=1.115&r2=1.116 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/www-client/seamonkey-bin/ChangeLog,v |
20 |
retrieving revision 1.115 |
21 |
retrieving revision 1.116 |
22 |
diff -u -r1.115 -r1.116 |
23 |
--- ChangeLog 26 Jan 2012 15:30:23 -0000 1.115 |
24 |
+++ ChangeLog 31 Jan 2012 20:50:30 -0000 1.116 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for www-client/seamonkey-bin |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey-bin/ChangeLog,v 1.115 2012/01/26 15:30:23 nirbheek Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey-bin/ChangeLog,v 1.116 2012/01/31 20:50:30 jdhore Exp $ |
30 |
+ |
31 |
+*seamonkey-bin-2.7 (31 Jan 2012) |
32 |
+ |
33 |
+ 31 Jan 2012; Jeff Horelick <jdhore@g.o> +seamonkey-bin-2.7.ebuild: |
34 |
+ Version bump to 2.7 |
35 |
|
36 |
26 Jan 2012; Nirbheek Chauhan <nirbheek@g.o> seamonkey-bin-2.5.ebuild, |
37 |
seamonkey-bin-2.6.1.ebuild: |
38 |
|
39 |
|
40 |
|
41 |
1.1 www-client/seamonkey-bin/seamonkey-bin-2.7.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey-bin/seamonkey-bin-2.7.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey-bin/seamonkey-bin-2.7.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: seamonkey-bin-2.7.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2012 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey-bin/seamonkey-bin-2.7.ebuild,v 1.1 2012/01/31 20:50:30 jdhore Exp $ |
51 |
|
52 |
EAPI="4" |
53 |
|
54 |
inherit eutils multilib mozextension pax-utils nsplugins fdo-mime gnome2-utils |
55 |
|
56 |
LANGS=(be ca cs de en-GB en-US es-AR es-ES fi fr gl hu it |
57 |
ja lt nb-NO nl pl pt-PT ru sk sv-SE tr zh-CN) |
58 |
|
59 |
MY_PV="${PV/_alpha/a}" |
60 |
MY_P="${PN}-${MY_PV}" |
61 |
MY_PN="${PN/-bin}" |
62 |
|
63 |
DESCRIPTION="Mozilla Application Suite - web browser, email, HTML editor, IRC" |
64 |
FTP_URI="ftp://ftp.mozilla.org/pub/mozilla.org/${MY_PN}/releases/" |
65 |
SRC_URI=" |
66 |
amd64? ( ${FTP_URI}/${MY_PV}/contrib/seamonkey-${MY_PV}.en-US.linux-x86_64.tar.bz2 -> ${PN}_x86_64-${PV}.tar.bz2 ) |
67 |
x86? ( ${FTP_URI}/${MY_PV}/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 |
${FTP_URI}/${MY_PV}/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 |
${FTP_URI}/${MY_PV}/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 |
# Handle plugins dir through nsplugins.eclass |
188 |
share_plugins_dir |
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 |
} |
193 |
|
194 |
pkg_preinst() { |
195 |
gnome2_icon_savelist |
196 |
} |
197 |
|
198 |
pkg_postinst() { |
199 |
# Update mimedb for the new .desktop file |
200 |
fdo-mime_desktop_database_update |
201 |
gnome2_icon_cache_update |
202 |
} |
203 |
|
204 |
pkg_postrm() { |
205 |
gnome2_icon_cache_update |
206 |
} |