1 |
commit: 28b1a9d0f861a37732bb836b9945f6e2f748c96c |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 12 15:49:42 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 12 15:50:35 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28b1a9d0 |
7 |
|
8 |
x11-plugins/enigmail: Bump to version 2.0_beta1 |
9 |
|
10 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
11 |
|
12 |
x11-plugins/enigmail/Manifest | 1 + |
13 |
x11-plugins/enigmail/enigmail-2.0_beta1.ebuild | 83 ++++++++++++++++++++++++++ |
14 |
2 files changed, 84 insertions(+) |
15 |
|
16 |
diff --git a/x11-plugins/enigmail/Manifest b/x11-plugins/enigmail/Manifest |
17 |
index a4a42409ab8..964d1ed343b 100644 |
18 |
--- a/x11-plugins/enigmail/Manifest |
19 |
+++ b/x11-plugins/enigmail/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST enigmail-1.9.9.tar.gz 1787556 BLAKE2B 729cf7e404b4cc5d964df476e627b476916cd6c834ce5f220a26738bc32eabbd9fd2c4c3cbaccef6e1d8c4b5b7313b54278a4170808f8b722443b338fda87b55 SHA512 39b37305362c88527d897ed95aa9d8457137d5f026359d19b838ab9df531c14099e157afdc8fefae78a6fa2ddded8dbfbeaf84eb91ac6cfbb05ae808731da2cb |
22 |
+DIST enigmail-2.0-beta1.tar.gz 2116808 BLAKE2B a539e7bf97e12327ae2a7e9fafdc2ad4298f9dd602333aa6d414b4c6770b3279cc0c9e100cb3be6be86c49f17b4c76759676efc963fe04e8fe522a8aad345f47 SHA512 ddbf540c0d628c19c7ddbcd01686dcdec53385113367e9f3ef683e3ebc97e17cbdbe62e7623b7b1be41967f47cd430b4f2d2fba1d0a86773c836ffc6ceb8f548 |
23 |
|
24 |
diff --git a/x11-plugins/enigmail/enigmail-2.0_beta1.ebuild b/x11-plugins/enigmail/enigmail-2.0_beta1.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..9e8d0cbb395 |
27 |
--- /dev/null |
28 |
+++ b/x11-plugins/enigmail/enigmail-2.0_beta1.ebuild |
29 |
@@ -0,0 +1,83 @@ |
30 |
+# Copyright 1999-2018 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=6 |
34 |
+PYTHON_COMPAT=( python2_7 ) |
35 |
+ |
36 |
+inherit python-any-r1 |
37 |
+ |
38 |
+DESCRIPTION="Mozilla extension to provide GPG support in mail clients" |
39 |
+HOMEPAGE="http://www.enigmail.net/" |
40 |
+ |
41 |
+SLOT="0" |
42 |
+LICENSE="MPL-2.0 GPL-3" |
43 |
+IUSE="" |
44 |
+if [[ ${PV} == *9999 ]]; then |
45 |
+ inherit git-r3 |
46 |
+ EGIT_REPO_URI="https://git.code.sf.net/p/enigmail/source" |
47 |
+ S="${WORKDIR}/${P}" |
48 |
+else |
49 |
+ if [[ ${PV} = *_beta* ]] ; then |
50 |
+ SRC_URI="http://www.enigmail.net/download/beta/${P/_/-}.tar.gz" |
51 |
+ else |
52 |
+ SRC_URI="http://www.enigmail.net/download/source/${P}.tar.gz" |
53 |
+ KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" |
54 |
+ fi |
55 |
+ S="${WORKDIR}/${PN}" |
56 |
+fi |
57 |
+ |
58 |
+RDEPEND="|| ( |
59 |
+ ( >=app-crypt/gnupg-2.0 |
60 |
+ || ( |
61 |
+ app-crypt/pinentry[gtk(-)] |
62 |
+ app-crypt/pinentry[qt4(-)] |
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 |
+src_compile() { |
78 |
+ emake ipc public ui package lang stdlib |
79 |
+ emake xpi |
80 |
+ |
81 |
+} |
82 |
+ |
83 |
+src_install() { |
84 |
+ local emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' build/dist/install.rdf) |
85 |
+ [[ -n ${emid} ]] || die "Could not scrape EM:ID from install.rdf" |
86 |
+ |
87 |
+ mv build/enigmail*.xpi build/"${emid}.xpi" || die 'Could not rename XPI to match EM:ID' |
88 |
+ |
89 |
+ # thunderbird |
90 |
+ insinto "/usr/share/mozilla/extensions/{3550f703-e582-4d05-9a08-453d09bdfdc6}" |
91 |
+ doins build/"${emid}.xpi" |
92 |
+ |
93 |
+ # seamonkey |
94 |
+ insinto "/usr/share/mozilla/extensions/{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}" |
95 |
+ doins build/"${emid}.xpi" |
96 |
+} |
97 |
+ |
98 |
+pkg_postinst() { |
99 |
+ local peimpl=$(eselect --brief --colour=no pinentry show) |
100 |
+ case "${peimpl}" in |
101 |
+ *gtk*|*qt*) ;; |
102 |
+ *) ewarn "The pinentry front-end currently selected is not one supported by thunderbird." |
103 |
+ ewarn "You may be prompted for your password in an inaccessible shell!!" |
104 |
+ ewarn "Please use 'eselect pinentry' to select either the gtk or qt front-end" |
105 |
+ ;; |
106 |
+ esac |
107 |
+ if [[ -n ${REPLACING_VERSIONS} ]]; then |
108 |
+ elog |
109 |
+ elog "Please restart thunderbird and/or seamonkey in order for them to use" |
110 |
+ elog "the newly installed version of enigmail." |
111 |
+ fi |
112 |
+} |