summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mail-client/thunderbird/thunderbird-52.0_beta2.ebuild')
-rw-r--r--mail-client/thunderbird/thunderbird-52.0_beta2.ebuild17
1 files changed, 13 insertions, 4 deletions
diff --git a/mail-client/thunderbird/thunderbird-52.0_beta2.ebuild b/mail-client/thunderbird/thunderbird-52.0_beta2.ebuild
index f3edb7e..4366b9d 100644
--- a/mail-client/thunderbird/thunderbird-52.0_beta2.ebuild
+++ b/mail-client/thunderbird/thunderbird-52.0_beta2.ebuild
@@ -39,7 +39,7 @@ HOMEPAGE="http://www.mozilla.com/en-US/thunderbird/"
KEYWORDS="~alpha amd64 ~arm ppc ppc64 x86 ~x86-fbsd ~amd64-linux ~x86-linux"
SLOT="0"
LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
-IUSE="bindist hardened ldap lightning +minimal mozdom rust selinux"
+IUSE="bindist crypt hardened ldap lightning +minimal mozdom rust selinux"
RESTRICT="!bindist? ( bindist )"
PATCH_URIS=( https://dev.gentoo.org/~{anarchy,axs,polynomial-c}/mozilla/patchsets/${PATCHFF}.tar.xz )
@@ -51,15 +51,19 @@ SRC_URI="${SRC_URI}
ASM_DEPEND=">=dev-lang/yasm-1.1"
+CDEPEND="
+ >=dev-libs/nss-3.28.1
+ >=dev-libs/nspr-4.13.1
+ crypt? ( x11-plugins/enigmail[-thunderbird(-)] )
+ "
+
DEPEND="rust? ( dev-lang/rust )
amd64? ( ${ASM_DEPEND}
virtual/opengl )
x86? ( ${ASM_DEPEND}
virtual/opengl )"
-RDEPEND="${DEPEND}
- >=dev-libs/nss-3.28.1
- >=dev-libs/nspr-4.13.1
+RDEPEND="${CDEPEND}
selinux? ( sec-policy/selinux-thunderbird )
"
@@ -293,6 +297,11 @@ src_install() {
doins -r "${T}/${emid}"
fi
+ if use crypt; then
+ emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' /usr/share/enigmail/install.rdf)
+ dosym /usr/share/enigmail ${MOZILLA_FIVE_HOME}/extensions/${emid}
+ fi
+
# Required in order to use plugins and even run thunderbird on hardened.
pax-mark pm "${ED}"${MOZILLA_FIVE_HOME}/{thunderbird,thunderbird-bin,plugin-container}