Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-plugins/enigmail/
Date: Tue, 11 Dec 2018 14:10:02
Message-Id: 1544537393.0b970481eeb699d2d40699e86cf205c4758ff639.polynomial-c@gentoo
1 commit: 0b970481eeb699d2d40699e86cf205c4758ff639
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 11 14:09:37 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 11 14:09:53 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b970481
7
8 x11-plugins/enigmail: Bump to version 2.0.9
9
10 Package-Manager: Portage-2.3.52, Repoman-2.3.12
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 x11-plugins/enigmail/Manifest | 1 +
14 x11-plugins/enigmail/enigmail-2.0.9.ebuild | 86 ++++++++++++++++++++++++++++++
15 2 files changed, 87 insertions(+)
16
17 diff --git a/x11-plugins/enigmail/Manifest b/x11-plugins/enigmail/Manifest
18 index 670f7b7853b..6050f38588e 100644
19 --- a/x11-plugins/enigmail/Manifest
20 +++ b/x11-plugins/enigmail/Manifest
21 @@ -1 +1,2 @@
22 DIST enigmail-2.0.8.tar.gz 2525691 BLAKE2B cd69efe72b661bb103837c987937e1cee64a5888795bda7126c59cf99a39c0245f505cdfd6538d54cec5dc3fc95c64bbeca3aebc4b0823249be4c0465d4d68a1 SHA512 9d2e95c2eae6ca22897eb8b2961964d96fd633e7d33a8c0c04a29b4cbc8585777598578abfb0484b96827ca165fe9c8b873e5e7f7cb3ba8cd0779ddc4f10e305
23 +DIST enigmail-2.0.9.tar.gz 2541100 BLAKE2B 0eb76f0da919135b0ea9bcb189251abb6eb9c288d26cabf3296427b10ca5b547a2e0c04468769e39f8306ac6831213a2d346915116e410c96a57a038d7c30055 SHA512 2053148b0e5e763dfc1f8decff0fea2a40ebd306e4844440bd9a3ced4e1f7ff2f16bccf72f85e73b7c51b40629489ad125b9bc166558e3b4144038ba45fcb197
24
25 diff --git a/x11-plugins/enigmail/enigmail-2.0.9.ebuild b/x11-plugins/enigmail/enigmail-2.0.9.ebuild
26 new file mode 100644
27 index 00000000000..e716fbf703a
28 --- /dev/null
29 +++ b/x11-plugins/enigmail/enigmail-2.0.9.ebuild
30 @@ -0,0 +1,86 @@
31 +# Copyright 1999-2018 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +PYTHON_COMPAT=( python2_7 )
36 +
37 +inherit python-any-r1
38 +
39 +DESCRIPTION="Mozilla extension to provide GPG support in mail clients"
40 +HOMEPAGE="https://www.enigmail.net/"
41 +
42 +SLOT="0"
43 +LICENSE="MPL-2.0 GPL-3"
44 +IUSE=""
45 +if [[ ${PV} == *9999 ]]; then
46 + inherit git-r3
47 + EGIT_REPO_URI="https://git.code.sf.net/p/enigmail/source"
48 + S="${WORKDIR}/${P}"
49 +else
50 + if [[ ${PV} = *_beta* ]] ; then
51 + SRC_URI="https://www.enigmail.net/download/beta/${P/_/-}.tar.gz"
52 + else
53 + SRC_URI="https://www.enigmail.net/download/source/${P}.tar.gz"
54 + KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
55 + fi
56 + S="${WORKDIR}/${PN}"
57 +fi
58 +
59 +RDEPEND="|| (
60 + ( >=app-crypt/gnupg-2.0
61 + || (
62 + app-crypt/pinentry[gtk(-)]
63 + app-crypt/pinentry[qt5(-)]
64 + )
65 + )
66 + =app-crypt/gnupg-1.4*
67 + )
68 + !<mail-client/thunderbird-52.5.0
69 + !<www-client/seamonkey-2.49.5.0_p0
70 +"
71 +DEPEND="${RDEPEND}
72 + ${PYTHON_DEPS}
73 + app-arch/zip
74 + dev-lang/perl
75 + "
76 +
77 +PATCHES=(
78 + "${FILESDIR}/${PN}-no_pEp_auto_download.patch"
79 +)
80 +
81 +src_compile() {
82 + emake ipc public ui package lang stdlib
83 + emake xpi
84 +
85 +}
86 +
87 +src_install() {
88 + local emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' build/dist/install.rdf)
89 + [[ -n ${emid} ]] || die "Could not scrape EM:ID from install.rdf"
90 +
91 + mv build/enigmail*.xpi build/"${emid}.xpi" || die 'Could not rename XPI to match EM:ID'
92 +
93 + # thunderbird
94 + insinto "/usr/share/mozilla/extensions/{3550f703-e582-4d05-9a08-453d09bdfdc6}"
95 + doins build/"${emid}.xpi"
96 +
97 + # seamonkey
98 + insinto "/usr/share/mozilla/extensions/{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}"
99 + doins build/"${emid}.xpi"
100 +}
101 +
102 +pkg_postinst() {
103 + local peimpl=$(eselect --brief --colour=no pinentry show)
104 + case "${peimpl}" in
105 + *gtk*|*qt*) ;;
106 + *) ewarn "The pinentry front-end currently selected is not one supported by thunderbird."
107 + ewarn "You may be prompted for your password in an inaccessible shell!!"
108 + ewarn "Please use 'eselect pinentry' to select either the gtk or qt front-end"
109 + ;;
110 + esac
111 + if [[ -n ${REPLACING_VERSIONS} ]]; then
112 + elog
113 + elog "Please restart thunderbird and/or seamonkey in order for them to use"
114 + elog "the newly installed version of enigmail."
115 + fi
116 +}