Gentoo Archives: gentoo-commits

From: "Raul Porcel (armin76)" <armin76@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-plugins/lightning: ChangeLog lightning-0.9.ebuild lightning-0.8.ebuild lightning-0.9_rc2.ebuild
Date: Thu, 20 Nov 2008 20:54:35
Message-Id: E1L3GXo-0005Gs-NA@stork.gentoo.org
1 armin76 08/11/20 20:54:32
2
3 Modified: ChangeLog
4 Added: lightning-0.9.ebuild
5 Removed: lightning-0.8.ebuild lightning-0.9_rc2.ebuild
6 Log:
7 Version bump
8 (Portage version: 2.1.4.5)
9
10 Revision Changes Path
11 1.10 x11-plugins/lightning/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-plugins/lightning/ChangeLog?rev=1.10&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-plugins/lightning/ChangeLog?rev=1.10&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-plugins/lightning/ChangeLog?r1=1.9&r2=1.10
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/x11-plugins/lightning/ChangeLog,v
20 retrieving revision 1.9
21 retrieving revision 1.10
22 diff -u -r1.9 -r1.10
23 --- ChangeLog 25 Oct 2008 21:53:51 -0000 1.9
24 +++ ChangeLog 20 Nov 2008 20:54:32 -0000 1.10
25 @@ -1,6 +1,12 @@
26 # ChangeLog for x11-plugins/lightning
27 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/x11-plugins/lightning/ChangeLog,v 1.9 2008/10/25 21:53:51 pvdabeel Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/x11-plugins/lightning/ChangeLog,v 1.10 2008/11/20 20:54:32 armin76 Exp $
30 +
31 +*lightning-0.9 (20 Nov 2008)
32 +
33 + 20 Nov 2008; Raúl Porcel <armin76@g.o> -lightning-0.8.ebuild,
34 + -lightning-0.9_rc2.ebuild, +lightning-0.9.ebuild:
35 + Version bump
36
37 *lightning-0.9_rc2 (20 Sep 2008)
38
39
40
41
42 1.1 x11-plugins/lightning/lightning-0.9.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-plugins/lightning/lightning-0.9.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-plugins/lightning/lightning-0.9.ebuild?rev=1.1&content-type=text/plain
46
47 Index: lightning-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/x11-plugins/lightning/lightning-0.9.ebuild,v 1.1 2008/11/20 20:54:32 armin76 Exp $
52
53 WANT_AUTOCONF="2.1"
54
55 inherit flag-o-matic toolchain-funcs eutils nsplugins mozcoreconf mozextension makeedit multilib autotools
56
57 SBPATCH="mozilla-sunbird-0.8-patches-0.1"
58
59 DESCRIPTION="Calendar extension for Mozilla Thunderbird."
60 HOMEPAGE="http://www.mozilla.org/projects/calendar/lightning/"
61 SRC_URI="http://releases.mozilla.org/pub/mozilla.org/calendar/sunbird/releases/${PV}/source/${PN}-sunbird-${PV}-source.tar.bz2
62 mirror://gentoo/${SBPATCH}.tar.bz2"
63
64 KEYWORDS="~amd64 ~ppc ~x86"
65 SLOT="0"
66 LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
67 IUSE=""
68 RESTRICT="test"
69
70 RDEPEND=">=mail-client/mozilla-thunderbird-2.0_alpha1
71 >=www-client/mozilla-launcher-1.56"
72
73 S="${WORKDIR}/mozilla"
74
75 # Needed by src_compile() and src_install().
76 # Would do in pkg_setup but that loses the export attribute, they
77 # become pure shell variables.
78 export BUILD_OFFICIAL=1
79 export MOZILLA_OFFICIAL=1
80 export MOZ_CO_PROJECT=calendar
81
82 src_unpack() {
83 unpack ${A%bz2*}bz2
84
85 # Apply our patches
86 cd "${S}" || die "cd failed"
87 EPATCH_SUFFIX="patch" \
88 EPATCH_FORCE="yes" \
89 epatch "${WORKDIR}"/patch
90
91 # Don't strip
92 sed -i -e 's/STRIP_/#STRIP_/g' calendar/lightning/Makefile.in
93
94 eautoreconf
95 }
96
97 src_compile() {
98 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/mozilla-thunderbird"
99
100 ####################################
101 #
102 # mozconfig, CFLAGS and CXXFLAGS setup
103 #
104 ####################################
105
106 mozconfig_init
107
108 mozconfig_annotate '' --enable-application=calendar
109 mozconfig_annotate '' --enable-extensions=lightning
110 mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME}
111 mozconfig_annotate '' --with-system-nss
112 mozconfig_annotate '' --with-system-nspr
113
114 # Finalize and report settings
115 mozconfig_final
116
117 # -fstack-protector breaks us
118 if gcc-version ge 4 1; then
119 gcc-specs-ssp && append-flags -fno-stack-protector
120 else
121 gcc-specs-ssp && append-flags -fno-stack-protector-all
122 fi
123 filter-flags -fstack-protector -fstack-protector-all
124
125 ####################################
126 #
127 # Configure and build Thunderbird
128 #
129 ####################################
130
131 CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \
132 econf || die
133
134 # This removes extraneous CFLAGS from the Makefiles to reduce RAM
135 # requirements while compiling
136 edit_makefiles
137
138 # Only build the parts necessary to support building enigmail
139 emake -j1 export || die "make export failed"
140 emake -C xpcom || die "make xpcom failed"
141 emake -C js/ || die "make js failed"
142
143 # Build the lightning plugin
144 einfo "Building Lightning plugin..."
145 emake -C "${S}"/calendar/lightning/ || die "make lightning failed"
146 }
147
148 src_install() {
149 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/mozilla-thunderbird"
150 declare emid
151
152 cd "${T}"
153 unzip "${S}"/dist/xpi-stage/${PN}.xpi install.rdf
154 emid=$(sed -n -e '/<\?em:id>\?/!d; s/.*\([\"{].*[}\"]\).*/\1/; s/\"//g; p;' install.rdf | sed -e '1d') || die "failed to determine extension id"
155
156 dodir ${MOZILLA_FIVE_HOME}/extensions/${emid}
157 cd "${D}"${MOZILLA_FIVE_HOME}/extensions/${emid}
158 unzip "${S}"/dist/xpi-stage/${PN}.xpi
159
160 # these files will be picked up by mozilla-launcher -register
161 dodir ${MOZILLA_FIVE_HOME}/{chrome,extensions}.d
162 echo "extension,${emid}" > "${D}"${MOZILLA_FIVE_HOME}/extensions.d/${PN}
163 }