1 |
armin76 08/10/19 10:12:41 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mozilla-sunbird-0.9.ebuild |
5 |
Removed: mozilla-sunbird-0.9_rc2.ebuild |
6 |
Log: |
7 |
Version bump |
8 |
(Portage version: 2.1.4.5) |
9 |
|
10 |
Revision Changes Path |
11 |
1.37 app-office/mozilla-sunbird/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/mozilla-sunbird/ChangeLog?rev=1.37&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/mozilla-sunbird/ChangeLog?rev=1.37&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/mozilla-sunbird/ChangeLog?r1=1.36&r2=1.37 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-office/mozilla-sunbird/ChangeLog,v |
20 |
retrieving revision 1.36 |
21 |
retrieving revision 1.37 |
22 |
diff -u -r1.36 -r1.37 |
23 |
--- ChangeLog 20 Sep 2008 15:26:04 -0000 1.36 |
24 |
+++ ChangeLog 19 Oct 2008 10:12:41 -0000 1.37 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for app-office/mozilla-sunbird |
27 |
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-office/mozilla-sunbird/ChangeLog,v 1.36 2008/09/20 15:26:04 armin76 Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-office/mozilla-sunbird/ChangeLog,v 1.37 2008/10/19 10:12:41 armin76 Exp $ |
30 |
+ |
31 |
+*mozilla-sunbird-0.9 (19 Oct 2008) |
32 |
+ |
33 |
+ 19 Oct 2008; Raúl Porcel <armin76@g.o> |
34 |
+ -mozilla-sunbird-0.9_rc2.ebuild, +mozilla-sunbird-0.9.ebuild: |
35 |
+ Version bump |
36 |
|
37 |
*mozilla-sunbird-0.9_rc2 (20 Sep 2008) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 app-office/mozilla-sunbird/mozilla-sunbird-0.9.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/mozilla-sunbird/mozilla-sunbird-0.9.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/mozilla-sunbird/mozilla-sunbird-0.9.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: mozilla-sunbird-0.9.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2008 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/app-office/mozilla-sunbird/mozilla-sunbird-0.9.ebuild,v 1.1 2008/10/19 10:12:41 armin76 Exp $ |
52 |
|
53 |
WANT_AUTOCONF="2.1" |
54 |
|
55 |
inherit flag-o-matic toolchain-funcs eutils mozconfig-2 mozilla-launcher makeedit multilib fdo-mime mozextension autotools |
56 |
|
57 |
PATCH="${PN}-0.8-patches-0.1" |
58 |
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" |
59 |
NOSHORTLANGS="es-AR pt-BR zh-TW" |
60 |
|
61 |
MY_PN="${PN/mozilla-}" |
62 |
MY_P="${MY_PN}-${PV}" |
63 |
DESCRIPTION="The Mozilla Sunbird Calendar" |
64 |
HOMEPAGE="http://www.mozilla.org/projects/calendar/sunbird.html" |
65 |
IUSE="bindist" |
66 |
SRC_URI="http://releases.mozilla.org/pub/mozilla.org/calendar/${MY_PN}/releases/${PV}/source/lightning-${MY_P}-source.tar.bz2 |
67 |
mirror://gentoo/${PATCH}.tar.bz2" |
68 |
|
69 |
# These are in |
70 |
# |
71 |
# http://releases.mozilla.org/pub/mozilla.org/calendar/sunbird/releases/${PV}/langpacks/ |
72 |
# |
73 |
# for i in $LANGS $SHORTLANGS; do wget $i.xpi -O ${P}-$i.xpi; done |
74 |
for X in ${LANGS} ; do |
75 |
if [ "${X}" != "en" ] && [ "${X}" != "en-US" ]; then |
76 |
SRC_URI="${SRC_URI} |
77 |
linguas_${X/-/_}? ( http://dev.gentooexperimental.org/~armin76/dist/${P}-xpi/${P}-${X}.xpi )" |
78 |
fi |
79 |
IUSE="${IUSE} linguas_${X/-/_}" |
80 |
# english is handled internally |
81 |
if [ "${#X}" == 5 ] && ! has ${X} ${NOSHORTLANGS}; then |
82 |
if [ "${X}" != "en-US" ]; then |
83 |
SRC_URI="${SRC_URI} |
84 |
linguas_${X%%-*}? ( http://dev.gentooexperimental.org/~armin76/dist/${P}-xpi/${P}-${X}.xpi )" |
85 |
fi |
86 |
IUSE="${IUSE} linguas_${X%%-*}" |
87 |
fi |
88 |
done |
89 |
|
90 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd" |
91 |
SLOT="0" |
92 |
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )" |
93 |
|
94 |
RDEPEND=">=www-client/mozilla-launcher-1.55 |
95 |
>=dev-libs/nss-3.11.7" |
96 |
|
97 |
S="${WORKDIR}/mozilla" |
98 |
|
99 |
# Needed by src_compile() and src_install(). |
100 |
# Would do in pkg_setup but that loses the export attribute, they |
101 |
# become pure shell variables. |
102 |
export MOZ_CO_PROJECT=calendar |
103 |
export BUILD_OFFICIAL=1 |
104 |
export MOZILLA_OFFICIAL=1 |
105 |
|
106 |
linguas() { |
107 |
local LANG SLANG |
108 |
for LANG in ${LINGUAS}; do |
109 |
if has ${LANG} en en_US; then |
110 |
has en ${linguas} || linguas="${linguas:+"${linguas} "}en" |
111 |
continue |
112 |
elif has ${LANG} ${LANGS//-/_}; then |
113 |
has ${LANG//_/-} ${linguas} || linguas="${linguas:+"${linguas} "}${LANG//_/-}" |
114 |
continue |
115 |
elif [[ " ${LANGS} " == *" ${LANG}-"* ]]; then |
116 |
for X in ${LANGS}; do |
117 |
if [[ "${X}" == "${LANG}-"* ]] && \ |
118 |
[[ " ${NOSHORTLANGS} " != *" ${X} "* ]]; then |
119 |
has ${X} ${linguas} || linguas="${linguas:+"${linguas} "}${X}" |
120 |
continue 2 |
121 |
fi |
122 |
done |
123 |
fi |
124 |
ewarn "Sorry, but ${PN} does not support the ${LANG} LINGUA" |
125 |
done |
126 |
} |
127 |
|
128 |
pkg_setup(){ |
129 |
if ! built_with_use x11-libs/cairo X; then |
130 |
eerror "Cairo is not built with X useflag." |
131 |
eerror "Please add 'X' to your USE flags, and re-emerge cairo." |
132 |
die "Cairo needs X" |
133 |
fi |
134 |
|
135 |
if ! built_with_use --missing true x11-libs/pango X; then |
136 |
eerror "Pango is not built with X useflag." |
137 |
eerror "Please add 'X' to your USE flags, and re-emerge pango." |
138 |
die "Pango needs X" |
139 |
fi |
140 |
|
141 |
if ! use bindist; then |
142 |
elog "You are enabling official branding. You may not redistribute this build" |
143 |
elog "to any users on your network or the internet. Doing so puts yourself into" |
144 |
elog "a legal problem with mozilla foundation" |
145 |
fi |
146 |
|
147 |
use moznopango && warn_mozilla_launcher_stub |
148 |
} |
149 |
|
150 |
src_unpack() { |
151 |
unpack ${A%bz2*}bz2 |
152 |
|
153 |
linguas |
154 |
for X in ${linguas}; do |
155 |
[[ ${X} != "en" ]] && xpi_unpack "${P}-${X}.xpi" |
156 |
done |
157 |
if [[ ${linguas} != "" && ${linguas} != "en" ]]; then |
158 |
einfo "Selected language packs (first will be default): ${linguas}" |
159 |
fi |
160 |
|
161 |
# Apply our patches |
162 |
cd "${S}" || die "cd failed" |
163 |
EPATCH_SUFFIX="patch" \ |
164 |
EPATCH_FORCE="yes" \ |
165 |
epatch "${WORKDIR}"/patch |
166 |
|
167 |
eautoreconf |
168 |
} |
169 |
|
170 |
src_compile() { |
171 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
172 |
|
173 |
#################################### |
174 |
# |
175 |
# mozconfig, CFLAGS and CXXFLAGS setup |
176 |
# |
177 |
#################################### |
178 |
|
179 |
mozconfig_init |
180 |
mozconfig_config |
181 |
|
182 |
mozconfig_annotate '' --enable-application=calendar |
183 |
mozconfig_annotate '' --enable-extensions=default |
184 |
mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME} |
185 |
mozconfig_annotate '' --with-system-nss |
186 |
mozconfig_annotate '' --with-system-nspr |
187 |
|
188 |
if ! use bindist; then |
189 |
mozconfig_annotate '' --enable-official-branding |
190 |
fi |
191 |
|
192 |
# Finalize and report settings |
193 |
mozconfig_final |
194 |
|
195 |
# hardened GCC uses -fstack-protector-all by default, which breaks us |
196 |
gcc-specs-ssp && append-flags -fno-stack-protector-all |
197 |
replace-flags -fstack-protector-all -fstack-protector |
198 |
|
199 |
#################################### |
200 |
# |
201 |
# Configure and build |
202 |
# |
203 |
#################################### |
204 |
|
205 |
CPPFLAGS="${CPPFLAGS} -DARON_WAS_HERE" \ |
206 |
CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \ |
207 |
econf || die |
208 |
|
209 |
# It would be great if we could pass these in via CPPFLAGS or CFLAGS prior |
210 |
# to econf, but the quotes cause configure to fail. |
211 |
sed -i -e \ |
212 |
's|-DARON_WAS_HERE|-DGENTOO_NSPLUGINS_DIR=\\\"/usr/'"$(get_libdir)"'/nsplugins\\\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\\\"/usr/'"$(get_libdir)"'/nsbrowser/plugins\\\"|' \ |
213 |
"${S}"/config/autoconf.mk \ |
214 |
"${S}"/nsprpub/config/autoconf.mk \ |
215 |
"${S}"/xpfe/global/buildconfig.html |
216 |
|
217 |
# This removes extraneous CFLAGS from the Makefiles to reduce RAM |
218 |
# requirements while compiling |
219 |
edit_makefiles |
220 |
|
221 |
[ "${WANT_MP}" = "true" ] && jobs=${MAKEOPTS} || jobs="-j1" |
222 |
emake ${jobs} || die |
223 |
} |
224 |
|
225 |
pkg_preinst() { |
226 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
227 |
|
228 |
einfo "Removing old installs though some really ugly code. It potentially" |
229 |
einfo "eliminates any problems during the install, however suggestions to" |
230 |
einfo "replace this are highly welcome. Send comments and suggestions to" |
231 |
einfo "mozilla@g.o." |
232 |
rm -rf "${ROOT}"/"${MOZILLA_FIVE_HOME}" |
233 |
} |
234 |
|
235 |
src_install() { |
236 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
237 |
|
238 |
# Most of the installation happens here |
239 |
dodir ${MOZILLA_FIVE_HOME} |
240 |
cp -RL "${S}"/dist/bin/* "${D}"${MOZILLA_FIVE_HOME} || die "Copy of files failed" |
241 |
touch "${D}"${MOZILLA_FIVE_HOME}/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}/chrome.manifest |
242 |
touch "${D}"${MOZILLA_FIVE_HOME}/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/chrome.manifest |
243 |
|
244 |
linguas |
245 |
for X in ${linguas}; do |
246 |
[[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/"${P}-${X}" |
247 |
done |
248 |
|
249 |
local LANG=${linguas%% *} |
250 |
if [[ -n ${LANG} && ${LANG} != "en" ]]; then |
251 |
einfo "Setting default locale to ${LANG}" |
252 |
dosed -e "s:general.useragent.locale\", \"en-US\":general.useragent.locale\", \"${LANG}\":" \ |
253 |
${MOZILLA_FIVE_HOME}/defaults/pref/sunbird.js \ |
254 |
${MOZILLA_FIVE_HOME}/defaults/pref/sunbird-l10n.js || \ |
255 |
die "sed failed to change locale" |
256 |
fi |
257 |
|
258 |
# Create /usr/bin/sunbird |
259 |
install_mozilla_launcher_stub sunbird ${MOZILLA_FIVE_HOME} |
260 |
|
261 |
# Install icon and .desktop for menu entry |
262 |
if ! use bindist; then |
263 |
doicon "${FILESDIR}"/icon/${PN}-icon.png |
264 |
domenu "${FILESDIR}"/icon/${PN}.desktop |
265 |
else |
266 |
doicon "${FILESDIR}"/icon/${PN}-unbranded-icon.png |
267 |
newmenu "${FILESDIR}"/icon/${PN}-unbranded.desktop \ |
268 |
${PN}.desktop |
269 |
|
270 |
fi |
271 |
} |
272 |
|
273 |
pkg_postinst() { |
274 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
275 |
|
276 |
# This should be called in the postinst and postrm of all the |
277 |
# mozilla, mozilla-bin, firefox, firefox-bin, thunderbird and |
278 |
# thunderbird-bin ebuilds. |
279 |
update_mozilla_launcher_symlinks |
280 |
} |
281 |
|
282 |
pkg_postrm() { |
283 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
284 |
|
285 |
update_mozilla_launcher_symlinks |
286 |
} |