pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/thunderbird add mozilla-enigmail option for build...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ceca9b0146ca
branches:  trunk
changeset: 576156:ceca9b0146ca
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Wed Jun 02 15:39:26 2010 +0000

description:
add mozilla-enigmail option for building the Enigmail OpenPGP extension.
Defaults to off for now ...

diffstat:

 mail/thunderbird/PLIST.enigmail |  15 ++++++++++++
 mail/thunderbird/distinfo       |   5 +++-
 mail/thunderbird/enigmail.mk    |  48 +++++++++++++++++++++++++++++++++++++++++
 mail/thunderbird/options.mk     |   8 +++++-
 4 files changed, 73 insertions(+), 3 deletions(-)

diffs (108 lines):

diff -r bac1eabbe005 -r ceca9b0146ca mail/thunderbird/PLIST.enigmail
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/thunderbird/PLIST.enigmail   Wed Jun 02 15:39:26 2010 +0000
@@ -0,0 +1,15 @@
+@comment $NetBSD: PLIST.enigmail,v 1.1 2010/06/02 15:39:26 tnn Exp $
+lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/chrome.manifest
+lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/chrome/enigmail.jar
+lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components/enigMsgCompFields.js
+lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components/enigmail.js
+lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components/enigmail.xpt
+lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components/enigmime.xpt
+lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components/enigprefs-service.js
+lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components/ipc.xpt
+lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/defaults/pref/enigmail.js
+lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/defaults/preferences/enigmail.js
+lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/install.rdf
+lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/platform/${OPSYS}_${MACHINE_ARCH}-gcc3/components/libenigmime-${MACHINE_ARCH}-gcc3.so
+lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/wrappers/gpg-agent-wrapper.sh
+lib/thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/wrappers/gpg-wrapper.sh
diff -r bac1eabbe005 -r ceca9b0146ca mail/thunderbird/distinfo
--- a/mail/thunderbird/distinfo Wed Jun 02 15:23:23 2010 +0000
+++ b/mail/thunderbird/distinfo Wed Jun 02 15:39:26 2010 +0000
@@ -1,5 +1,8 @@
-$NetBSD: distinfo,v 1.67 2010/05/19 09:21:43 tnn Exp $
+$NetBSD: distinfo,v 1.68 2010/06/02 15:39:26 tnn Exp $
 
+SHA1 (enigmail-1.0.1.tar.gz) = 334e70723fffc0631dadb6fd4449afffdeafc3f2
+RMD160 (enigmail-1.0.1.tar.gz) = 2abd8e70fcfcd2e75e71a97a5a3c7d1e0c292666
+Size (enigmail-1.0.1.tar.gz) = 1201945 bytes
 SHA1 (thunderbird-3.0.4.source.tar.bz2) = 5a6e89096da61a520e5cecb61f8afeb981f90412
 RMD160 (thunderbird-3.0.4.source.tar.bz2) = ed8c905e3a6061c0ff896857fda3d96146bbc6a8
 Size (thunderbird-3.0.4.source.tar.bz2) = 61094371 bytes
diff -r bac1eabbe005 -r ceca9b0146ca mail/thunderbird/enigmail.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/thunderbird/enigmail.mk      Wed Jun 02 15:39:26 2010 +0000
@@ -0,0 +1,48 @@
+# $NetBSD: enigmail.mk,v 1.1 2010/06/02 15:39:26 tnn Exp $
+#
+# This Makefile fragment hooks the Enigmail OpenPGP extension
+# (see http://www.mozilla-enigmail.org/ ) into the build.
+
+ENIGMAIL_DIST=         enigmail-1.0.1.tar.gz
+ENIGMAIL_UUID=         847b3a00-7ab1-11d4-8f02-006008948af5
+.if !defined(DISTFILES)
+DISTFILES=             ${DEFAULT_DISTFILES}
+.endif
+DISTFILES+=            ${ENIGMAIL_DIST}
+SITES.${ENIGMAIL_DIST}=        http://www.mozilla-enigmail.org/download/source/
+
+DEPENDS+=              gnupg-[0-9]*:../../security/gnupg
+PLIST_SRC+=            PLIST.enigmail
+USE_TOOLS+=            unzip pax
+
+post-extract: enigmail-post-extract
+.PHONY: enigmail-post-extract
+enigmail-post-extract:
+       ${RUN} mv ${WRKDIR}/enigmail ${WRKSRC}/mailnews/extensions/
+
+post-configure: enigmail-post-configure
+.PHONY: enigmail-post-configure
+enigmail-post-configure:
+       ${RUN} cd ${WRKSRC}/mailnews/extensions/enigmail &&             \
+         ${SETENV} ${CONFIGURE_ENV} ${PERL5} ./makemake -r
+
+# We need to do a switcheroo of the dist directory while building enigmail;
+# otherwise we get extra files contamination in the PLIST.
+post-build: enigmail-post-build
+.PHONY: enigmail-post-build
+enigmail-post-build:
+       ${RUN} cd ${WRKSRC}/mozilla/dist && pax -rwpe . ../dist.save
+       ${RUN} cd ${WRKSRC}/mailnews/extensions/enigmail &&             \
+         ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} &&                      \
+         ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} xpi
+       ${RUN} ${MKDIR} "${WRKDIR}/{${ENIGMAIL_UUID}}"
+       ${RUN} cd "${WRKDIR}/{${ENIGMAIL_UUID}}" &&                     \
+         ${UNZIP_CMD} -aqo ${WRKSRC}/mozilla/dist/bin/enigmail*.xpi
+       ${RUN} rm -rf ${WRKSRC}/mozilla/dist
+       ${RUN} cd ${WRKSRC}/mozilla/dist.save && pax -rwpe . ../dist
+
+post-install: enigmail-post-install
+.PHONY: enigmail-post-install
+enigmail-post-install:
+       ${RUN} cd ${WRKDIR} && pax -rw "{${ENIGMAIL_UUID}}"             \
+         ${DESTDIR}${PREFIX}/lib/${MOZILLA}/extensions/.
diff -r bac1eabbe005 -r ceca9b0146ca mail/thunderbird/options.mk
--- a/mail/thunderbird/options.mk       Wed Jun 02 15:23:23 2010 +0000
+++ b/mail/thunderbird/options.mk       Wed Jun 02 15:39:26 2010 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: options.mk,v 1.3 2010/04/21 13:33:26 tnn Exp $
+# $NetBSD: options.mk,v 1.4 2010/06/02 15:39:26 tnn Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.thunderbird
-PKG_SUPPORTED_OPTIONS= debug mozilla-jemalloc gnome official-mozilla-branding mozilla-lightning
+PKG_SUPPORTED_OPTIONS= debug mozilla-jemalloc gnome official-mozilla-branding mozilla-lightning mozilla-enigmail
 PKG_SUGGESTED_OPTIONS= mozilla-lightning
 
 PLIST_VARS+=           branding debug gnome
@@ -53,6 +53,10 @@
 CONFIGURE_ARGS+=       --disable-calendar
 .endif
 
+.if !empty(PKG_OPTIONS:Mmozilla-enigmail)
+.include "enigmail.mk"
+.endif
+
 .if !empty(PKG_OPTIONS:Mofficial-mozilla-branding)
 CONFIGURE_ARGS+=       --enable-official-branding
 PLIST.branding=                yes



Home | Main Index | Thread Index | Old Index