commit:     4fd9d4aaf232ad1253157c2550194d3e439b2398
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 19 03:42:25 2017 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Tue Dec 19 03:42:25 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4fd9d4aa

x11-plugins/enigmail: Bump to version 1.9.9

Package-Manager: Portage-2.3.19, Repoman-2.3.6

 x11-plugins/enigmail/Manifest              |  1 +
 x11-plugins/enigmail/enigmail-1.9.9.ebuild | 74 ++++++++++++++++++++++++++++++
 2 files changed, 75 insertions(+)

diff --git a/x11-plugins/enigmail/Manifest b/x11-plugins/enigmail/Manifest
index 5e769a6ec0b..0b6768c33a7 100644
--- a/x11-plugins/enigmail/Manifest
+++ b/x11-plugins/enigmail/Manifest
@@ -2,3 +2,4 @@ DIST enigmail-1.9.6.1.tar.gz 1745021 BLAKE2B 
0fdc1e2e3f16491759cb360593e21325241
 DIST enigmail-1.9.8.1.tar.gz 1776673 BLAKE2B 
9a8251ced15ee4feeceafc3ee261f877886783428224dcb1616e411864f70f6fd822503ba82ebe9fe61462cb25baabda6c5cf65ff8738a53719b7e212eca8e78
 SHA512 
af280040e96eb69529e723e52e65621e42743c974b0ed42598e73458004f0a59688da7257d2b556e95a56c4cad3ac48f527d4d9a7a54c9c92eaff132257e0cfd
 DIST enigmail-1.9.8.2.tar.gz 1776792 BLAKE2B 
901bc4d735c461e1fad39bc7f2a613eac6c087af5053f7d15ee80fdef790c4a022cffd8972dbd2570d39e9f51ac29db287ed6c04745f36f07b93312401262cc5
 SHA512 
4db069752a8251f4989ab9736600b83f005a066f99b2830add088514d0afec69871c998c148535e5dc212d3635c35990a90161a47c18398805e1c51497263431
 DIST enigmail-1.9.8.3.tar.gz 1776756 BLAKE2B 
3de3c81b5bd1c79583ea32f79c3654337417f42f1cd11ee7df5e6b1064144eac584ba8d7368834910b9e460deb9c2d150940efdcef61c5f67803067201049e6e
 SHA512 
d8c08b1824352353c7596750b801604f7216bc5a138563b1fbd5fb890901e9c7c03cb2df099c9158d6bf3125fa17c900f65fb21bc40a8ced67a6812cdc0e02d9
+DIST enigmail-1.9.9.tar.gz 1787556 BLAKE2B 
729cf7e404b4cc5d964df476e627b476916cd6c834ce5f220a26738bc32eabbd9fd2c4c3cbaccef6e1d8c4b5b7313b54278a4170808f8b722443b338fda87b55
 SHA512 
39b37305362c88527d897ed95aa9d8457137d5f026359d19b838ab9df531c14099e157afdc8fefae78a6fa2ddded8dbfbeaf84eb91ac6cfbb05ae808731da2cb

diff --git a/x11-plugins/enigmail/enigmail-1.9.9.ebuild 
b/x11-plugins/enigmail/enigmail-1.9.9.ebuild
new file mode 100644
index 00000000000..f51f9c93aaa
--- /dev/null
+++ b/x11-plugins/enigmail/enigmail-1.9.9.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit python-any-r1
+
+DESCRIPTION="Mozilla extension to provide GPG support in mail clients"
+HOMEPAGE="http://www.enigmail.net/";
+
+KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux 
~x86-linux"
+SLOT="0"
+LICENSE="MPL-2.0 GPL-3"
+IUSE=""
+SRC_URI="http://www.enigmail.net/download/source/${P}.tar.gz";
+
+RDEPEND="|| (
+               ( >=app-crypt/gnupg-2.0
+                       || (
+                               app-crypt/pinentry[gtk(-)]
+                               app-crypt/pinentry[qt4(-)]
+                               app-crypt/pinentry[qt5(-)]
+                       )
+               )
+               =app-crypt/gnupg-1.4*
+       )
+       !<mail-client/thunderbird-52.5.0
+       !<www-client/seamonkey-2.49.5.0_p0
+       "
+DEPEND="${RDEPEND}
+       ${PYTHON_DEPS}
+       app-arch/zip
+       dev-lang/perl
+       "
+
+S="${WORKDIR}/${PN}"
+
+src_compile() {
+       emake ipc public ui package lang
+       emake xpi
+
+}
+
+src_install() {
+       local emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' 
build/dist/install.rdf)
+       [[ -n ${emid} ]] || die "Could not scrape EM:ID from install.rdf"
+
+       mv build/enigmail*.xpi build/"${emid}.xpi" || die 'Could not rename XPI 
to match EM:ID'
+
+       # thunderbird
+       insinto 
"/usr/share/mozilla/extensions/{3550f703-e582-4d05-9a08-453d09bdfdc6}"
+       doins build/"${emid}.xpi"
+
+       # seamonkey
+       insinto 
"/usr/share/mozilla/extensions/{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}"
+       doins build/"${emid}.xpi"
+}
+
+pkg_postinst() {
+       local peimpl=$(eselect --brief --colour=no pinentry show)
+       case "${peimpl}" in
+       *gtk*|*qt*) ;;
+       *)      ewarn "The pinentry front-end currently selected is not one 
supported by thunderbird."
+               ewarn "You may be prompted for your password in an inaccessible 
shell!!"
+               ewarn "Please use 'eselect pinentry' to select either the gtk 
or qt front-end"
+               ;;
+       esac
+       if [[ -n ${REPLACING_VERSIONS} ]]; then
+               elog ""
+               elog "Please restart thunderbird and/or seamonkey in order for 
them to use"
+               elog "the newly installed version of enigmail."
+       fi
+}

Reply via email to