Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-mta/protonmail-bridge/
Date: Mon, 30 May 2022 10:42:49
Message-Id: 1653907355.54bbebe723023620f731c7e3ce95ffdc8e01c54a.marecki@gentoo
1 commit: 54bbebe723023620f731c7e3ce95ffdc8e01c54a
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 30 10:40:08 2022 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Mon May 30 10:42:35 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54bbebe7
7
8 mail-mta/protonmail-bridge: add 2.2.0
9
10 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
11
12 mail-mta/protonmail-bridge/Manifest | 2 +
13 .../protonmail-bridge-2.2.0.ebuild | 67 ++++++++++++++++++++++
14 2 files changed, 69 insertions(+)
15
16 diff --git a/mail-mta/protonmail-bridge/Manifest b/mail-mta/protonmail-bridge/Manifest
17 index d555c945b30f..1bb0c8aea557 100644
18 --- a/mail-mta/protonmail-bridge/Manifest
19 +++ b/mail-mta/protonmail-bridge/Manifest
20 @@ -1,2 +1,4 @@
21 DIST protonmail-bridge-2.1.1-vendor.tar.xz 3778060 BLAKE2B 4350201ec1890eb398360df82d2b623800399e0d536545030254d4e17bac55729fe5d9d6238250b5599a5d4f59014804f442d9bf804a589ecf3be13b248e9bb3 SHA512 736a4c7e3536d8aff48a3987ef46ba0b1ca1aeb5f0346b78ecde93e989f921affa56dd63e70b66b026bdae8c843c7540a07623a744662958dca243e614421a5c
22 DIST protonmail-bridge-2.1.1.tar.gz 2034768 BLAKE2B 8748650cd90610803bbba4ed503a01be308225367a82da403ed209f0ed593f2202dc3424ba3c2bc09b3fcfa19ff04cb67351e840aac9fc35f17bc6d512962774 SHA512 c280c61d7a8aaf6e7063183431184e2807e8cdb9ba68cb1a14e45529ccac2b2df7e6ee5b71d7e01341a4b625546ea8cf48ade7cbec64abd998cf8227d9b684de
23 +DIST protonmail-bridge-2.2.0-deps.tar.xz 237226036 BLAKE2B bb1eabb4a56c19ff6c79b4543ad39f94fe5821d02cf246110a1a41b64c55271c5cfc0be18e496f8f7a76d02d180567ac8dbaba520b27dd38c08708d885c66c1f SHA512 4a3da64b27732d55aaaff8850b9ce0e6c03deecbc8a051338a3bee4066250f10b99fb5f25d9d2cd5541b8de94ee2c11a2805b4344f28764b494e2b645c60b175
24 +DIST protonmail-bridge-2.2.0.tar.gz 3098013 BLAKE2B 310c84eab7973174a331247bde6f64dad03a3ed05ad241300e5c2c2f7361e5d7c4598201400c6f51a0df49e7ccb57a6230fc1b1c4b749e29d2f2796d3d4c8b81 SHA512 ca0941b37fccbdf8a581426e69ec0c8840ed384bc4fc64592fcf0f228303a3f9f46d41ad56310bc0f99e1bb633ff8c9fcd3c3ab11b5ba34ad6960342111e8fe2
25
26 diff --git a/mail-mta/protonmail-bridge/protonmail-bridge-2.2.0.ebuild b/mail-mta/protonmail-bridge/protonmail-bridge-2.2.0.ebuild
27 new file mode 100644
28 index 000000000000..3eb8df2b3026
29 --- /dev/null
30 +++ b/mail-mta/protonmail-bridge/protonmail-bridge-2.2.0.ebuild
31 @@ -0,0 +1,67 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +inherit go-module systemd xdg-utils
38 +
39 +MY_PN="proton-bridge"
40 +MY_P="${MY_PN}-${PV}"
41 +
42 +DESCRIPTION="Serves ProtonMail to IMAP/SMTP clients"
43 +HOMEPAGE="https://proton.me/mail/bridge https://github.com/ProtonMail/proton-bridge/"
44 +SRC_URI="https://github.com/ProtonMail/${MY_PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
45 + https://dev.gentoo.org/~marecki/dists/${CATEGORY}/${PN}/${P}-deps.tar.xz"
46 +
47 +LICENSE="Apache-2.0 BSD BSD-2 GPL-3+ ISC LGPL-3+ MIT MPL-2.0 Unlicense"
48 +SLOT="0"
49 +KEYWORDS="~amd64"
50 +IUSE="gui"
51 +
52 +# Quite a few tests require Internet access
53 +PROPERTIES="test_network"
54 +RESTRICT="test"
55 +
56 +RDEPEND="app-crypt/libsecret"
57 +DEPEND="${RDEPEND}"
58 +
59 +S="${WORKDIR}"/${MY_P}
60 +
61 +src_prepare() {
62 + xdg_environment_reset
63 + default
64 +}
65 +
66 +src_compile() {
67 + if use gui; then
68 + emake \
69 + QT_DOC_DIR="/usr/share/qt5-doc" \
70 + QT_PKG_CONFIG=true \
71 + build
72 + else
73 + emake build-nogui
74 + fi
75 +}
76 +
77 +src_test() {
78 + emake test
79 +}
80 +
81 +src_install() {
82 + exeinto /usr/bin
83 + newexe ${MY_PN} ${PN}
84 +
85 + systemd_douserunit "${FILESDIR}"/${PN}.service
86 +
87 + # FIXME: USE=gui will probably need more files
88 +
89 + einstalldocs
90 +}
91 +
92 +pkg_postinst() {
93 + use gui && xdg_icon_cache_update
94 +}
95 +
96 +pkg_postrm() {
97 + use gui && xdg_icon_cache_update
98 +}