net-mail/notmuch: Correct dependencies related to S/MIME support
authorAmadeusz Żołnowski <aidecoe@gentoo.org>
Tue, 31 May 2016 21:29:22 +0000 (22:29 +0100)
committerAmadeusz Żołnowski <aidecoe@gentoo.org>
Tue, 31 May 2016 22:10:38 +0000 (23:10 +0100)
gnupg must be installed only if crypt flag is enabled, because crypt
related tests are run when this gnupg commands can be found. The same
applies to smime flag of gmime which pulls gnupg.

Package-Manager: portage-2.3.0_rc1

net-mail/notmuch/metadata.xml
net-mail/notmuch/notmuch-0.22.ebuild

index 564970f5df0feb0b7fff278163a96f39ca060573..d476d7235ac28fb601ee5ad5d89296e093656634 100644 (file)
@@ -8,7 +8,8 @@
        <use>
                <flag name="doc">Install API documentation for enabled bindings</flag>
                <flag name="crypt">Support decryption and verification of PGP/MIME
-                       messages and in Emacs UI - encryption</flag>
+                       messages and in Emacs UI - encryption; support also S/MIME
+                       signature verification since version 0.22</flag>
                <flag name="emacs">Install Emacs UI (the main one)</flag>
                <flag name="mutt">Install helper script for Mutt</flag>
                <flag name="nmbug">Install experimental tag sharing /
index 1cf92ced966a066e8e677a067b25978cb0b30171..9357a32bed7c390d2ece655a69df7a0c5ad1ca62 100644 (file)
@@ -29,11 +29,13 @@ IUSE="crypt debug doc emacs mutt nmbug python test"
 CDEPEND="
        >=app-shells/bash-completion-1.9
        >=dev-libs/glib-2.22:2
-       >=dev-libs/gmime-2.6.20:2.6
+       >=dev-libs/gmime-2.6.20-r2:2.6
        >=dev-libs/xapian-1.2.7-r2:=
        dev-python/sphinx[${PYTHON_USEDEP}]
        >=sys-libs/zlib-1.2.5.2
        sys-libs/talloc
+       crypt? ( >=dev-libs/gmime-2.6.20-r2:2.6[smime] )
+       !crypt? ( >=dev-libs/gmime-2.6.20-r2:2.6[-smime] )
        debug? ( dev-util/valgrind )
        emacs? ( >=virtual/emacs-23 )
        python? ( ${PYTHON_DEPS} )
@@ -42,10 +44,12 @@ DEPEND="${CDEPEND}
        virtual/pkgconfig
        doc? ( app-doc/doxygen )
        test? ( app-misc/dtach || ( >=app-editors/emacs-23[libxml2]
-               >=app-editors/emacs-vcs-23[libxml2] ) sys-devel/gdb )
+               >=app-editors/emacs-vcs-23[libxml2] ) sys-devel/gdb
+               crypt? ( dev-libs/openssl ) )
        "
 RDEPEND="${CDEPEND}
        crypt? ( app-crypt/gnupg )
+       !crypt? ( !app-crypt/gnupg )
        nmbug? ( dev-vcs/git )
        mutt? ( dev-perl/File-Which dev-perl/Mail-Box dev-perl/MailTools
                dev-perl/String-ShellQuote dev-perl/Term-ReadLine-Gnu