1 |
armin76 08/09/24 17:00:41 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mozilla-sunbird-bin-0.9.ebuild |
5 |
Removed: mozilla-sunbird-bin-0.9_rc2.ebuild |
6 |
mozilla-sunbird-bin-0.9_rc1.ebuild |
7 |
Log: |
8 |
Version bump |
9 |
(Portage version: 2.2_rc9/cvs/Linux 2.6.25-gentoo-r7 i686) |
10 |
|
11 |
Revision Changes Path |
12 |
1.36 app-office/mozilla-sunbird-bin/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/mozilla-sunbird-bin/ChangeLog?rev=1.36&view=markup |
15 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/mozilla-sunbird-bin/ChangeLog?rev=1.36&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/mozilla-sunbird-bin/ChangeLog?r1=1.35&r2=1.36 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/app-office/mozilla-sunbird-bin/ChangeLog,v |
21 |
retrieving revision 1.35 |
22 |
retrieving revision 1.36 |
23 |
diff -u -r1.35 -r1.36 |
24 |
--- ChangeLog 20 Sep 2008 11:44:09 -0000 1.35 |
25 |
+++ ChangeLog 24 Sep 2008 17:00:40 -0000 1.36 |
26 |
@@ -1,6 +1,13 @@ |
27 |
# ChangeLog for app-office/mozilla-sunbird-bin |
28 |
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/app-office/mozilla-sunbird-bin/ChangeLog,v 1.35 2008/09/20 11:44:09 armin76 Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/app-office/mozilla-sunbird-bin/ChangeLog,v 1.36 2008/09/24 17:00:40 armin76 Exp $ |
31 |
+ |
32 |
+*mozilla-sunbird-bin-0.9 (24 Sep 2008) |
33 |
+ |
34 |
+ 24 Sep 2008; Raúl Porcel <armin76@g.o> |
35 |
+ -mozilla-sunbird-bin-0.9_rc1.ebuild, -mozilla-sunbird-bin-0.9_rc2.ebuild, |
36 |
+ +mozilla-sunbird-bin-0.9.ebuild: |
37 |
+ Version bump |
38 |
|
39 |
*mozilla-sunbird-bin-0.9_rc2 (20 Sep 2008) |
40 |
|
41 |
|
42 |
|
43 |
|
44 |
1.1 app-office/mozilla-sunbird-bin/mozilla-sunbird-bin-0.9.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/mozilla-sunbird-bin/mozilla-sunbird-bin-0.9.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/mozilla-sunbird-bin/mozilla-sunbird-bin-0.9.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: mozilla-sunbird-bin-0.9.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2008 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/app-office/mozilla-sunbird-bin/mozilla-sunbird-bin-0.9.ebuild,v 1.1 2008/09/24 17:00:40 armin76 Exp $ |
54 |
|
55 |
inherit eutils mozilla-launcher multilib mozextension |
56 |
|
57 |
LANGS="ca cs da de en-US es-AR es-ES eu fr ga-IE hu is ja ka ko lt nb-NO nl nn-NO pl pt-BR pt-PT ro ru sk sl sv-SE uk zh-CN" |
58 |
NOSHORTLANGS="es-AR pt-BR zh-TW" |
59 |
|
60 |
MY_PN="${PN/mozilla-}" |
61 |
MY_P="${MY_PN}-${PV}" |
62 |
DESCRIPTION="Mozilla Sunbird Calendar" |
63 |
SRC_URI="http://releases.mozilla.org/pub/mozilla.org/calendar/sunbird/releases/${PV}/linux-i686/en-US/sunbird-${PV}.en-US.linux-i686.tar.gz" |
64 |
HOMEPAGE="http://www.mozilla.org/projects/calendar/sunbird.html" |
65 |
RESTRICT="strip" |
66 |
QA_EXECSTACK="opt/sunbird/extensions/talkback@×××××××.org/components/libqfaservices.so" |
67 |
QA_TEXTRELS="opt/sunbird/extensions/talkback@×××××××.org/components/libqfaservices.so" |
68 |
|
69 |
KEYWORDS="-* ~amd64 ~x86" |
70 |
SLOT="0" |
71 |
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )" |
72 |
IUSE="" |
73 |
|
74 |
# These are in |
75 |
# |
76 |
# http://releases.mozilla.org/pub/mozilla.org/calendar/sunbird/releases/${PV}/langpacks/ |
77 |
# |
78 |
# for i in $LANGS $SHORTLANGS; do wget $i.xpi -O ${P}-$i.xpi; done |
79 |
for X in ${LANGS} ; do |
80 |
if [ "${X}" != "en" ] && [ "${X}" != "en-US" ]; then |
81 |
SRC_URI="${SRC_URI} |
82 |
linguas_${X/-/_}? ( http://dev.gentooexperimental.org/~armin76/dist/${P/-bin}-xpi/${P/-bin/}-${X}.xpi )" |
83 |
fi |
84 |
IUSE="${IUSE} linguas_${X/-/_}" |
85 |
# english is handled internally |
86 |
if [ "${#X}" == 5 ] && ! has ${X} ${NOSHORTLANGS}; then |
87 |
if [ "${X}" != "en-US" ]; then |
88 |
SRC_URI="${SRC_URI} |
89 |
linguas_${X%%-*}? ( http://dev.gentooexperimental.org/~armin76/dist/${P/-bin}-xpi/${P/-bin/}-${X}.xpi )" |
90 |
fi |
91 |
IUSE="${IUSE} linguas_${X%%-*}" |
92 |
fi |
93 |
done |
94 |
|
95 |
DEPEND="app-arch/unzip" |
96 |
RDEPEND="x11-libs/libXrender |
97 |
x11-libs/libXt |
98 |
x11-libs/libXmu |
99 |
x86? ( |
100 |
>=x11-libs/gtk+-2.2 |
101 |
=virtual/libstdc++-3.3 |
102 |
) |
103 |
amd64? ( |
104 |
>=app-emulation/emul-linux-x86-baselibs-1.0 |
105 |
>=app-emulation/emul-linux-x86-gtklibs-1.0 |
106 |
app-emulation/emul-linux-x86-compat |
107 |
) |
108 |
>=www-client/mozilla-launcher-1.56" |
109 |
|
110 |
S="${WORKDIR}/sunbird" |
111 |
|
112 |
pkg_config() { |
113 |
# This is a binary x86 package => ABI=x86 |
114 |
# Please keep this in future versions |
115 |
# Danny van Dyk <kugelfang@g.o> 2005/03/26 |
116 |
has_multilib_profile && ABI="x86" |
117 |
} |
118 |
|
119 |
linguas() { |
120 |
local LANG SLANG |
121 |
for LANG in ${LINGUAS}; do |
122 |
if has ${LANG} en en_US; then |
123 |
has en ${linguas} || linguas="${linguas:+"${linguas} "}en" |
124 |
continue |
125 |
elif has ${LANG} ${LANGS//-/_}; then |
126 |
has ${LANG//_/-} ${linguas} || linguas="${linguas:+"${linguas} "}${LANG//_/-}" |
127 |
continue |
128 |
elif [[ " ${LANGS} " == *" ${LANG}-"* ]]; then |
129 |
for X in ${LANGS}; do |
130 |
if [[ "${X}" == "${LANG}-"* ]] && \ |
131 |
[[ " ${NOSHORTLANGS} " != *" ${X} "* ]]; then |
132 |
has ${X} ${linguas} || linguas="${linguas:+"${linguas} "}${X}" |
133 |
continue 2 |
134 |
fi |
135 |
done |
136 |
fi |
137 |
ewarn "Sorry, but ${PN} does not support the ${LANG} LINGUA" |
138 |
done |
139 |
} |
140 |
|
141 |
src_unpack() { |
142 |
unpack ${MY_PN/-bin}-${PV}.en-US.linux-i686.tar.gz |
143 |
|
144 |
linguas |
145 |
for X in ${linguas}; do |
146 |
[[ ${X} != "en" ]] && xpi_unpack "${P/-bin/}-${X}.xpi" |
147 |
done |
148 |
if [[ ${linguas} != "" && ${linguas} != "en" ]]; then |
149 |
einfo "Selected language packs (first will be default): ${linguas}" |
150 |
fi |
151 |
} |
152 |
|
153 |
src_install() { |
154 |
declare MOZILLA_FIVE_HOME="/opt/sunbird" |
155 |
|
156 |
# Install sunbird in /opt |
157 |
dodir ${MOZILLA_FIVE_HOME%/*} |
158 |
touch "${S}"/extensions/talkback@×××××××.org/chrome.manifest |
159 |
touch "${S}"/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}/chrome.manifest |
160 |
touch "${S}"/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/chrome.manifest |
161 |
mv "${S}" "${D}"${MOZILLA_FIVE_HOME} |
162 |
|
163 |
linguas |
164 |
for X in ${linguas}; do |
165 |
[[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/"${P/-bin/}-${X}" |
166 |
done |
167 |
|
168 |
local LANG=${linguas%% *} |
169 |
if [[ -n ${LANG} && ${LANG} != "en" ]]; then |
170 |
einfo "Setting default locale to ${LANG}" |
171 |
dosed -e "s:general.useragent.locale\", \"en-US\":general.useragent.locale\", \"${LANG}\":" \ |
172 |
${MOZILLA_FIVE_HOME}/defaults/pref/sunbird.js \ |
173 |
${MOZILLA_FIVE_HOME}/defaults/pref/sunbird-l10n.js || \ |
174 |
die "sed failed to change locale" |
175 |
fi |
176 |
|
177 |
# Create /usr/bin/sunbird-bin |
178 |
install_mozilla_launcher_stub sunbird-bin ${MOZILLA_FIVE_HOME} |
179 |
|
180 |
# Install icon and .desktop for menu entry |
181 |
doicon "${FILESDIR}"/icon/${PN}-icon.png |
182 |
domenu "${FILESDIR}"/icon/${PN}.desktop |
183 |
} |
184 |
|
185 |
pkg_preinst() { |
186 |
declare MOZILLA_FIVE_HOME="/opt/sunbird" |
187 |
|
188 |
# Remove entire installed instance to prevent all kinds of |
189 |
# problems... see bug 44772 for example |
190 |
rm -rf "${ROOT}"${MOZILLA_FIVE_HOME} |
191 |
} |
192 |
|
193 |
pkg_postinst() { |
194 |
use amd64 && einfo "NB: You just installed a 32-bit sunbird" |
195 |
update_mozilla_launcher_symlinks |
196 |
} |
197 |
|
198 |
pkg_postrm() { |
199 |
update_mozilla_launcher_symlinks |
200 |
} |