diff options
author | Raúl Porcel <armin76@gentoo.org> | 2008-04-08 11:25:50 +0000 |
---|---|---|
committer | Raúl Porcel <armin76@gentoo.org> | 2008-04-08 11:25:50 +0000 |
commit | 398f45d7b3114b6dc4e075429d96e521ad794e5c (patch) | |
tree | c59f7a3f3b0cb6d1cefb881d9e3c5f845c1e9ebd /x11-plugins | |
parent | alpha/ia64/sparc/x86 stable wrt #216774 (diff) | |
download | gentoo-2-398f45d7b3114b6dc4e075429d96e521ad794e5c.tar.gz gentoo-2-398f45d7b3114b6dc4e075429d96e521ad794e5c.tar.bz2 gentoo-2-398f45d7b3114b6dc4e075429d96e521ad794e5c.zip |
Version bump
(Portage version: 2.1.4.4)
Diffstat (limited to 'x11-plugins')
-rw-r--r-- | x11-plugins/lightning/ChangeLog | 7 | ||||
-rw-r--r-- | x11-plugins/lightning/lightning-0.8.ebuild | 113 |
2 files changed, 119 insertions, 1 deletions
diff --git a/x11-plugins/lightning/ChangeLog b/x11-plugins/lightning/ChangeLog index 78c20bb747c4..593e766cee14 100644 --- a/x11-plugins/lightning/ChangeLog +++ b/x11-plugins/lightning/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for x11-plugins/lightning # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/x11-plugins/lightning/ChangeLog,v 1.4 2008/03/17 12:50:14 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-plugins/lightning/ChangeLog,v 1.5 2008/04/08 11:25:50 armin76 Exp $ + +*lightning-0.8 (08 Apr 2008) + + 08 Apr 2008; Raúl Porcel <armin76@gentoo.org> +lightning-0.8.ebuild: + Version bump 17 Mar 2008; Raúl Porcel <armin76@gentoo.org> lightning-0.7.ebuild: Fix LICENSE, thanks to zlin diff --git a/x11-plugins/lightning/lightning-0.8.ebuild b/x11-plugins/lightning/lightning-0.8.ebuild new file mode 100644 index 000000000000..5b4349383389 --- /dev/null +++ b/x11-plugins/lightning/lightning-0.8.ebuild @@ -0,0 +1,113 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-plugins/lightning/lightning-0.8.ebuild,v 1.1 2008/04/08 11:25:50 armin76 Exp $ + +WANT_AUTOCONF="2.1" + +inherit flag-o-matic toolchain-funcs eutils nsplugins mozcoreconf mozextension makeedit multilib autotools + +SBPATCH="mozilla-sunbird-${PV}-patches-0.1" + +DESCRIPTION="Calendar extension for Mozilla Thunderbird." +HOMEPAGE="http://www.mozilla.org/projects/calendar/lightning/" +SRC_URI="http://releases.mozilla.org/pub/mozilla.org/calendar/sunbird/releases/${PV}/source/${PN}-sunbird-${PV}-source.tar.bz2 + mirror://gentoo/${SBPATCH}.tar.bz2" + +KEYWORDS="~amd64 ~x86" +SLOT="0" +LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )" +IUSE="" + +RDEPEND=">=mail-client/mozilla-thunderbird-2.0_alpha1 + >=www-client/mozilla-launcher-1.56" + +S="${WORKDIR}/mozilla" + +# Needed by src_compile() and src_install(). +# Would do in pkg_setup but that loses the export attribute, they +# become pure shell variables. +export BUILD_OFFICIAL=1 +export MOZILLA_OFFICIAL=1 +export MOZ_CO_PROJECT=calendar + +src_unpack() { + unpack ${A%bz2*}bz2 + + # Apply our patches + cd "${S}" || die "cd failed" + EPATCH_SUFFIX="patch" \ + EPATCH_FORCE="yes" \ + epatch "${WORKDIR}"/patch + + eautoreconf +} + +src_compile() { + declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/mozilla-thunderbird" + + #################################### + # + # mozconfig, CFLAGS and CXXFLAGS setup + # + #################################### + + mozconfig_init + + mozconfig_annotate '' --enable-application=calendar + mozconfig_annotate '' --enable-extensions=lightning + mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME} + mozconfig_annotate '' --with-system-nss + mozconfig_annotate '' --with-system-nspr + + # Finalize and report settings + mozconfig_final + + # -fstack-protector breaks us + if gcc-version ge 4 1; then + gcc-specs-ssp && append-flags -fno-stack-protector + else + gcc-specs-ssp && append-flags -fno-stack-protector-all + fi + filter-flags -fstack-protector -fstack-protector-all + + #################################### + # + # Configure and build Thunderbird + # + #################################### + + CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \ + econf || die + + # This removes extraneous CFLAGS from the Makefiles to reduce RAM + # requirements while compiling + edit_makefiles + + # Only build the parts necessary to support building enigmail + emake -j1 export || die "make export failed" + emake -C xpcom || die "make xpcom failed" + emake -C js/ || die "make js failed" + + # Build the lightning plugin + einfo "Building Lightning plugin..." + emake -C "${S}"/calendar/lightning/ || die "make lightning failed" +} + +src_install() { + declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/mozilla-thunderbird" + declare emid + + cd "${T}" + unzip "${S}"/dist/xpi-stage/${PN}.xpi install.rdf + emid=$(sed -n -e '/<\?em:id>\?/!d; s/.*\([\"{].*[}\"]\).*/\1/; s/\"//g; p;' install.rdf | sed -e '1d') || die "failed to determine extension id" + + dodir ${MOZILLA_FIVE_HOME}/extensions/${emid} + cd "${D}"${MOZILLA_FIVE_HOME}/extensions/${emid} + unzip "${S}"/dist/xpi-stage/${PN}.xpi + + # these files will be picked up by mozilla-launcher -register + dodir ${MOZILLA_FIVE_HOME}/{chrome,extensions}.d + insinto ${MOZILLA_FIVE_HOME}/chrome.d + newins "${S}"/dist/bin/chrome/installed-chrome.txt ${PN} + echo "extension,${emid}" > "${D}"${MOZILLA_FIVE_HOME}/extensions.d/${PN} +} |