Gentoo Archives: gentoo-commits

From: "Raul Porcel (armin76)" <armin76@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-client/seamonkey: ChangeLog seamonkey-1.1.12.ebuild
Date: Wed, 24 Sep 2008 17:13:54
Message-Id: E1KiXvz-0003pd-CU@stork.gentoo.org
1 armin76 08/09/24 17:13:51
2
3 Modified: ChangeLog
4 Added: seamonkey-1.1.12.ebuild
5 Log:
6 Version bump
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.155 www-client/seamonkey/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/seamonkey/ChangeLog?rev=1.155&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/seamonkey/ChangeLog?rev=1.155&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/seamonkey/ChangeLog?r1=1.154&r2=1.155
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v
19 retrieving revision 1.154
20 retrieving revision 1.155
21 diff -u -r1.154 -r1.155
22 --- ChangeLog 23 Aug 2008 05:15:53 -0000 1.154
23 +++ ChangeLog 24 Sep 2008 17:13:50 -0000 1.155
24 @@ -1,6 +1,11 @@
25 # ChangeLog for www-client/seamonkey
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v 1.154 2008/08/23 05:15:53 cardoe Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v 1.155 2008/09/24 17:13:50 armin76 Exp $
29 +
30 +*seamonkey-1.1.12 (24 Sep 2008)
31 +
32 + 24 Sep 2008; Raúl Porcel <armin76@g.o> +seamonkey-1.1.12.ebuild:
33 + Version bump
34
35 23 Aug 2008; Doug Goldstein <cardoe@g.o> metadata.xml:
36 add GLEP 56 USE flag desc from use.local.desc
37
38
39
40 1.1 www-client/seamonkey/seamonkey-1.1.12.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/seamonkey/seamonkey-1.1.12.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/seamonkey/seamonkey-1.1.12.ebuild?rev=1.1&content-type=text/plain
44
45 Index: seamonkey-1.1.12.ebuild
46 ===================================================================
47 # Copyright 1999-2008 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/seamonkey-1.1.12.ebuild,v 1.1 2008/09/24 17:13:50 armin76 Exp $
50
51 WANT_AUTOCONF="2.1"
52
53 inherit flag-o-matic toolchain-funcs eutils mozcoreconf mozconfig-2 mozilla-launcher makeedit multilib autotools
54
55 PATCH="${PN}-1.1.10-patches-0.1"
56 EMVER="0.95.6"
57
58 DESCRIPTION="Mozilla Application Suite - web browser, email, HTML editor, IRC"
59 HOMEPAGE="http://www.seamonkey-project.org/"
60 SRC_URI="http://releases.mozilla.org/pub/mozilla.org/${PN}/releases/${PV}/${P}.source.tar.bz2
61 mirror://gentoo/${PATCH}.tar.bz2
62 crypt? ( !moznomail? ( http://www.mozilla-enigmail.org/download/source/enigmail-${EMVER}.tar.gz ) )"
63
64 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
65 SLOT="0"
66 LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
67 IUSE="java ldap mozdevelop moznocompose moznoirc moznomail moznoroaming postgres crypt xforms"
68
69 RDEPEND="java? ( virtual/jre )
70 >=www-client/mozilla-launcher-1.56
71 >=dev-libs/nss-3.11.5
72 >=dev-libs/nspr-4.6.5-r1
73 crypt? ( !moznomail? ( >=app-crypt/gnupg-1.4 ) )"
74
75 DEPEND="${RDEPEND}
76 java? ( >=dev-java/java-config-0.2.0 )
77 dev-lang/perl
78 postgres? ( >=virtual/postgresql-server-7.2.0 )"
79
80 S="${WORKDIR}/mozilla"
81
82 # Needed by src_compile() and src_install().
83 # Would do in pkg_setup but that loses the export attribute, they
84 # become pure shell variables.
85 export MOZ_CO_PROJECT=suite
86 export BUILD_OFFICIAL=1
87 export MOZILLA_OFFICIAL=1
88
89 pkg_setup() {
90 if ! built_with_use x11-libs/cairo X; then
91 eerror "Cairo is not built with X useflag."
92 eerror "Please add 'X' to your USE flags, and re-emerge cairo."
93 die "Cairo needs X"
94 fi
95
96 if ! built_with_use --missing true x11-libs/pango X; then
97 eerror "Pango is not built with X useflag."
98 eerror "Please add 'X' to your USE flags, and re-emerge pango."
99 die "Pango needs X"
100 fi
101
102 use moznopango && warn_mozilla_launcher_stub
103 }
104
105 src_unpack() {
106 unpack ${P}.source.tar.bz2 ${PATCH}.tar.bz2
107
108 # Apply our patches
109 cd "${S}" || die "cd failed"
110 EPATCH_SUFFIX="patch" \
111 EPATCH_FORCE="yes" \
112 epatch "${WORKDIR}"/patch
113
114 # Unpack the enigmail plugin
115 if use crypt && ! use moznomail; then
116 cd "${S}"/mailnews/extensions || die
117 unpack enigmail-${EMVER}.tar.gz
118 cd "${S}"/mailnews/extensions/enigmail || die "cd failed"
119 makemake2
120 fi
121
122 # Fix scripts that call for /usr/local/bin/perl #51916
123 ebegin "Patching smime to call perl from /usr/bin"
124 sed -i -e '1s,usr/local/bin,usr/bin,' "${S}"/security/nss/cmd/smimetools/smime
125 eend $? || die "sed failed"
126
127 cd "${S}"
128 eautoreconf
129 }
130
131 src_compile() {
132 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
133
134 ####################################
135 #
136 # mozconfig, CFLAGS and CXXFLAGS setup
137 #
138 ####################################
139 mozconfig_init
140 mozconfig_config
141
142 mozconfig_annotate 'gentoo' --enable-canvas
143 mozconfig_annotate 'gentoo' --with-system-nspr
144 mozconfig_annotate 'gentoo' --with-system-nss
145
146 # Bug 60668: Galeon doesn't build without oji enabled, so enable it
147 # regardless of java setting.
148 mozconfig_annotate 'galeon' --enable-oji --enable-mathml
149
150 # Other moz-specific settings
151 mozconfig_use_enable mozdevelop jsd
152 mozconfig_use_enable mozdevelop xpctools
153 mozconfig_use_extension mozdevelop venkman
154
155 if use moznoirc; then
156 mozconfig_annotate '+moznocompose +moznoirc' --enable-extensions=-irc
157 fi
158
159 if use moznoroaming ; then
160 mozconfig_annotate '+moznoroaming' --enable-extensions=-sroaming
161 fi
162
163 if use postgres ; then
164 mozconfig_annotate '+postgres' --enable-extensions=sql
165 export MOZ_ENABLE_PGSQL=1
166 export MOZ_PGSQL_INCLUDES=/usr/include
167 export MOZ_PGSQL_LIBS=/usr/$(get_libdir)
168 fi
169
170 mozconfig_use_enable ldap
171 mozconfig_use_enable ldap ldap-experimental
172 mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME}
173 mozconfig_annotate '' --with-user-appdir=.mozilla
174
175 if use moznomail; then
176 mozconfig_annotate "+moznomail" --disable-mailnews
177 fi
178
179 if use moznocompose; then
180 if use moznoirc && use moznomail; then
181 mozconfig_annotate "+moznocompose" --disable-composer
182 fi
183 fi
184
185 if use xforms; then
186 mozconfig_annotate "+xforms" --enable-extensions=xforms,schema-validation
187 fi
188
189 # Finalize and report settings
190 mozconfig_final
191
192 # -fstack-protector breaks us
193 if gcc-version ge 4 1; then
194 gcc-specs-ssp && append-flags -fno-stack-protector
195 else
196 gcc-specs-ssp && append-flags -fno-stack-protector-all
197 fi
198 filter-flags -fstack-protector -fstack-protector-all
199
200 ####################################
201 #
202 # Configure and build
203 #
204 ####################################
205
206 CPPFLAGS="${CPPFLAGS} -DARON_WAS_HERE" \
207 CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \
208 econf || die
209
210 # It would be great if we could pass these in via CPPFLAGS or CFLAGS prior
211 # to econf, but the quotes cause configure to fail.
212 sed -i -e \
213 's|-DARON_WAS_HERE|-DGENTOO_NSPLUGINS_DIR=\\\"/usr/'"$(get_libdir)"'/nsplugins\\\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\\\"/usr/'"$(get_libdir)"'/nsbrowser/plugins\\\"|' \
214 "${S}"/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 emake || die
222
223 ####################################
224 #
225 # Build Enigmail extension
226 #
227 ####################################
228
229 if use crypt && ! use moznomail; then
230 emake -C "${S}"/mailnews/extensions/enigmail || die "make enigmail failed"
231 fi
232 }
233
234 src_install() {
235 declare MOZILLA_FIVE_HOME=/usr/$(get_libdir)/${PN}
236
237 # Most of the installation happens here
238 dodir "${MOZILLA_FIVE_HOME}"
239 cp -RL "${S}"/dist/bin/* "${D}"/"${MOZILLA_FIVE_HOME}"/ || die "cp failed"
240
241 # Create directory structure to support portage-installed extensions.
242 # See update_chrome() in mozilla-launcher
243 keepdir ${MOZILLA_FIVE_HOME}/chrome.d
244 keepdir ${MOZILLA_FIVE_HOME}/extensions.d
245 cp "${D}"${MOZILLA_FIVE_HOME}/chrome/installed-chrome.txt \
246 "${D}"${MOZILLA_FIVE_HOME}/chrome.d/0_base-chrome.txt
247
248 # Create /usr/bin/seamonkey
249 install_mozilla_launcher_stub seamonkey ${MOZILLA_FIVE_HOME}
250
251 # Install icon and .desktop for menu entry
252 doicon "${FILESDIR}"/icon/${PN}.png
253 domenu "${FILESDIR}"/icon/${PN}.desktop
254
255 # Fix icons to look the same everywhere
256 insinto ${MOZILLA_FIVE_HOME}/icons
257 doins "${S}"/widget/src/gtk/mozicon16.xpm
258 doins "${S}"/widget/src/gtk/mozicon50.xpm
259
260 ####################################
261 #
262 # Install files necessary for applications to build against seamonkey
263 #
264 ####################################
265
266 elog "Installing includes and idl files..."
267 cp -LfR "${S}"/dist/include "${D}"/"${MOZILLA_FIVE_HOME}" || die "cp failed"
268 cp -LfR "${S}"/dist/idl "${D}"/"${MOZILLA_FIVE_HOME}" || die "cp failed"
269
270 # Fix mozilla-config and install it
271 exeinto ${MOZILLA_FIVE_HOME}
272 doexe "${S}"/build/unix/${PN}-config
273
274 # Install pkgconfig files
275 insinto /usr/"$(get_libdir)"/pkgconfig
276 doins "${S}"/build/unix/*.pc
277
278 # Install env.d snippet, which isn't necessary for running mozilla, but
279 # might be necessary for programs linked against firefox
280 doenvd "${FILESDIR}"/10${PN}
281 dosed "s|/usr/lib|/usr/$(get_libdir)|" /etc/env.d/10${PN}
282
283 # Install rebuild script since mozilla-bin doesn't support registration yet
284 exeinto ${MOZILLA_FIVE_HOME}
285 doexe "${FILESDIR}"/${PN}-rebuild-databases.pl
286 dosed -e 's|/lib/|/'"$(get_libdir)"'/|g' \
287 ${MOZILLA_FIVE_HOME}/${PN}-rebuild-databases.pl
288
289 # Install docs
290 dodoc "${S}"/{LEGAL,LICENSE}
291
292 # Update Google search plugin to use UTF8 charset ...
293 insinto ${MOZILLA_FIVE_HOME}/searchplugins
294 doins "${FILESDIR}"/google.src
295 }
296
297 pkg_preinst() {
298 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
299
300 # Remove entire installed instance to solve various problems,
301 # for example see bug 27719
302 rm -rf "${ROOT}"${MOZILLA_FIVE_HOME}
303 }
304
305 pkg_postinst() {
306 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
307
308 # Update the component registry
309 MOZILLA_LIBDIR=${ROOT}${MOZILLA_FIVE_HOME} MOZILLA_LAUNCHER=${PN} \
310 /usr/libexec/mozilla-launcher -register
311
312 # This should be called in the postinst and postrm of all the
313 # mozilla, mozilla-bin, firefox, firefox-bin, thunderbird and
314 # thunderbird-bin ebuilds.
315 update_mozilla_launcher_symlinks
316 }
317
318 pkg_postrm() {
319 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
320
321 # Update the component registry
322 if [[ -x ${MOZILLA_FIVE_HOME}/${PN}-bin ]]; then
323 MOZILLA_LIBDIR=${ROOT}${MOZILLA_FIVE_HOME} MOZILLA_LAUNCHER=${PN} \
324 /usr/libexec/mozilla-launcher -register
325 fi
326
327 update_mozilla_launcher_symlinks
328 }