diff options
author | Jory Pratt <anarchy@gentoo.org> | 2006-02-01 22:29:30 +0000 |
---|---|---|
committer | Jory Pratt <anarchy@gentoo.org> | 2006-02-01 22:29:30 +0000 |
commit | 37e3786ae8679e7b81b4a153f670971e77eefa2a (patch) | |
tree | 5615fe4be0da4ded24068ef13e9e180d9804f3a8 /x11-plugins | |
parent | enigmail added for nss/nspr changes (diff) | |
download | gentoo-2-37e3786ae8679e7b81b4a153f670971e77eefa2a.tar.gz gentoo-2-37e3786ae8679e7b81b4a153f670971e77eefa2a.tar.bz2 gentoo-2-37e3786ae8679e7b81b4a153f670971e77eefa2a.zip |
changes for nss/nspr system
(Portage version: 2.1_pre4-r1)
Diffstat (limited to 'x11-plugins')
-rw-r--r-- | x11-plugins/enigmail/Manifest | 6 | ||||
-rw-r--r-- | x11-plugins/enigmail/enigmail-0.93.1-r3.ebuild | 139 | ||||
-rw-r--r-- | x11-plugins/enigmail/files/digest-enigmail-0.93.1-r3 | 12 |
3 files changed, 157 insertions, 0 deletions
diff --git a/x11-plugins/enigmail/Manifest b/x11-plugins/enigmail/Manifest index 82ff7686f742..8aa3dbb3ca35 100644 --- a/x11-plugins/enigmail/Manifest +++ b/x11-plugins/enigmail/Manifest @@ -4,6 +4,9 @@ SHA256 ec6a1af49c0c8c1034a9ee29bbe17f6647b9c80ad5de69c5713c3311c18bfc9d ChangeLo MD5 3a81c3a2a15519a0ca30d43714275139 enigmail-0.93.1-r2.ebuild 4166 RMD160 f7f0c4513818831c13d1192edf54ab26b685771e enigmail-0.93.1-r2.ebuild 4166 SHA256 01c40f747d0ca4d3e47359cff6ac24ae5da22521c4e0be0122d19bed0cef722f enigmail-0.93.1-r2.ebuild 4166 +MD5 548537272f3da6a16626381f91c32a2f enigmail-0.93.1-r3.ebuild 4319 +RMD160 e694b2ca25c7001798aac1d73224eaa1c3fc0587 enigmail-0.93.1-r3.ebuild 4319 +SHA256 4e689504c47e9047a2d65bae03547bd2e71216c8be5732ffaf6beeb398586b41 enigmail-0.93.1-r3.ebuild 4319 MD5 f6da2f617f170f8bbc915d81d7588fa1 files/50_enigmail_no_upgrade.patch 633 RMD160 38d30cb7ac0b1fddea62224d60b209dbafe0a26e files/50_enigmail_no_upgrade.patch 633 SHA256 db3cf07fb3acf18d31716b30f7b4d74c543b6acf304a3fc18686b7bcd91ececb files/50_enigmail_no_upgrade.patch 633 @@ -13,6 +16,9 @@ SHA256 895c5ffec6aa321290115f2c995658ae87f9bde027ac0414e5d76a7c9d451165 files/70 MD5 68d1785a310edcc0ce604b08ec020093 files/digest-enigmail-0.93.1-r2 205 RMD160 1cf9e7c55176042a482997632228fe060c7517aa files/digest-enigmail-0.93.1-r2 205 SHA256 fd9f57faf042401d2c78d28eec452f0930f0c77de7604401e9d47d70c5b8003c files/digest-enigmail-0.93.1-r2 205 +MD5 acd6a31f58aae6bb6dcb37938d953182 files/digest-enigmail-0.93.1-r3 1060 +RMD160 0e1047465959ec6c8041621f430312585e4ecd67 files/digest-enigmail-0.93.1-r3 1060 +SHA256 9320d31d27b5864299e10929277cbecc611d91f89118c5e21919cf3e2039b836 files/digest-enigmail-0.93.1-r3 1060 MD5 c00ea2b2717491804ceababb4c14cc5b files/firefox-1.5-visibility-check.patch 10955 RMD160 9a5db3a7d6f5539ca77e116aed276d833925a43a files/firefox-1.5-visibility-check.patch 10955 SHA256 439355e899ea43fd2f82adae6fb4dc7363ca526ce307ce0faba76e533af1dc7c files/firefox-1.5-visibility-check.patch 10955 diff --git a/x11-plugins/enigmail/enigmail-0.93.1-r3.ebuild b/x11-plugins/enigmail/enigmail-0.93.1-r3.ebuild new file mode 100644 index 000000000000..52e83528099f --- /dev/null +++ b/x11-plugins/enigmail/enigmail-0.93.1-r3.ebuild @@ -0,0 +1,139 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-plugins/enigmail/enigmail-0.93.1-r3.ebuild,v 1.1 2006/02/01 22:29:30 anarchy Exp $ + +unset ALLOWED_FLAGS # stupid extra-functions.sh ... bug 49179 +inherit flag-o-matic toolchain-funcs eutils nsplugins mozcoreconf makeedit multilib autotools + +EMVER=${PV} +TBVER="1.5" +IPCVER="1.1.3" +TBPVER="1.1" + +DESCRIPTION="Gnupg encryption plugin for thunderbird." +HOMEPAGE="http://www.enigmail.mozdev.org" +SRC_URI="http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/${TBVER}/source/thunderbird-${TBVER}-source.tar.bz2 + mirror://gentoo/mozilla-thunderbird-${TBVER}-patches-${TBPVER}.tar.bz2 + http://dev.gentoo.org/~anarchy/dist/mozilla-thunderbird-${TBVER}-patches-${TBPVER}.tar.bz2 + http://www.mozilla-enigmail.org/downloads/src/enigmail-${EMVER}.tar.gz + http://downloads.mozdev.org/enigmail/src/ipc-${IPCVER}.tar.gz " + +KEYWORDS="~amd64 ~x86" +SLOT="0" +LICENSE="MPL-1.1 NPL-1.1" +IUSE="" + +DEPEND=">=mail-client/mozilla-thunderbird-1.5" +RDEPEND="${DEPEND} + >=app-crypt/gnupg-1.4 + >=www-client/mozilla-launcher-1.37" + +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=mail + +src_unpack() { + unpack ${A} || die "unpack failed" + cd ${S} || die "cd failed" + + # Apply our patches + EPATCH_FORCE="yes" epatch ${WORKDIR}/patch + + # Unpack the enigmail plugin + for x in ipc enigmail; do + mv ${WORKDIR}/${x} ${S}/extensions || die "mv failed" + cd ${S}/extensions/${x} || die "cd failed" + makemake # from mozconfig.eclass + done + cd ${S} + + # Use the right theme for thunderbird #45609 + sed -i -ne '/^enigmail-skin.jar:$/ { :x; n; /^\t/bx; }; p' extensions/enigmail/ui/jar.mn + + # Don't allow upgrades via the browser + epatch ${FILESDIR}/50_enigmail_no_upgrade.patch + + # Fix installation of enigmail.js + epatch ${FILESDIR}/70_enigmail-fix.patch + + eautoreconf || die "failed running autoreconf" +} + +src_compile() { + declare MOZILLA_FIVE_HOME=/usr/$(get_libdir)/mozilla-thunderbird + + #################################### + # + # mozconfig, CFLAGS and CXXFLAGS setup + # + #################################### + + mozconfig_init + + # tb-specific settings + mozconfig_annotate '' \ + --with-system-nspr \ + --with-system-nss \ + --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME} \ + --with-user-appdir=.thunderbird + + # Finalize and report settings + mozconfig_final + + # hardened GCC uses -fstack-protector-all by default, and this breaks + # thunderbird + has_hardened && append-flags -fno-stack-protector-all + replace-flags -fstack-protector-all -fstack-protector + + #################################### + # + # Configure and build Thunderbird + # + #################################### + + econf || die "econf failed" + + # 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 modules/libreg || die "make modules/libreg failed" + emake -C xpcom/string || die "make xpcom/string failed" + emake -C xpcom || die "make xpcom failed" + emake -C xpcom/obsolete || die "make xpcom/obsolete failed" + + # Build the enigmail plugin + einfo "Building Enigmail plugin..." + emake -C extensions/ipc || die "make ipc failed" + emake -C extensions/enigmail || die "make enigmail failed" + + # Package the enigmail plugin; this may be the easiest way to collect the + # necessary files + emake -j1 -C extensions/enigmail xpi || die "make xpi failed" +} + +src_install() { + declare MOZILLA_FIVE_HOME=/usr/$(get_libdir)/mozilla-thunderbird + declare emid + + cd ${T} + unzip ${S}/dist/bin/*.xpi install.rdf + emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' install.rdf) + + dodir ${MOZILLA_FIVE_HOME}/extensions/${emid} + cd ${D}${MOZILLA_FIVE_HOME}/extensions/${emid} + unzip ${S}/dist/bin/*.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} +} diff --git a/x11-plugins/enigmail/files/digest-enigmail-0.93.1-r3 b/x11-plugins/enigmail/files/digest-enigmail-0.93.1-r3 new file mode 100644 index 000000000000..ffde786c1a17 --- /dev/null +++ b/x11-plugins/enigmail/files/digest-enigmail-0.93.1-r3 @@ -0,0 +1,12 @@ +MD5 d0de6d3968dc6a38e60578d6cf9098fd enigmail-0.93.1.tar.gz 405011 +RMD160 4b06be26fc0073cb204a3bfbe0bcc2c437f98718 enigmail-0.93.1.tar.gz 405011 +SHA256 a2634136778775e6b0f375be5f6395254b6805a3d3f9bb208a285a6561e99e42 enigmail-0.93.1.tar.gz 405011 +MD5 64ba4c6e3b52568468c4f6680ec7e679 ipc-1.1.3.tar.gz 102593 +RMD160 7f748096a252ba21de25db7351545c868509fb63 ipc-1.1.3.tar.gz 102593 +SHA256 0265ae1a639e0975a8820928598a357f769350801ea3633016e974d32f7db725 ipc-1.1.3.tar.gz 102593 +MD5 0a8963d56683dca895a9c616478fa1b3 mozilla-thunderbird-1.5-patches-1.1.tar.bz2 16934 +RMD160 9060f61691d7b88d93fc3a51692001dfaf845689 mozilla-thunderbird-1.5-patches-1.1.tar.bz2 16934 +SHA256 1553059e5a494208a7bc51ceb606c06261b4dac8b0706b880bef3382d4244433 mozilla-thunderbird-1.5-patches-1.1.tar.bz2 16934 +MD5 781c1cd1a01583d9b666d8c2fe4288e6 thunderbird-1.5-source.tar.bz2 35028308 +RMD160 5c3a8c42c1239144c8498a81a791a534345cda3c thunderbird-1.5-source.tar.bz2 35028308 +SHA256 f075c0a3f9cf714639eb26e9f370d50efbc72d4e02bd667404f7e1128543ee57 thunderbird-1.5-source.tar.bz2 35028308 |