summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2022-08-09 11:22:23 +0100
committerMarek Szuba <marecki@gentoo.org>2022-08-09 11:31:17 +0100
commit49712224db4cbe563d954ae89e6e3f4bb48d6532 (patch)
tree5996ec9eee179e8e1ea9c061444f6af5c03f683b /mail-mta
parentapp-admin/ansible-lint: drop 5.4.0, 6.2.2 (diff)
downloadgentoo-49712224db4cbe563d954ae89e6e3f4bb48d6532.tar.gz
gentoo-49712224db4cbe563d954ae89e6e3f4bb48d6532.tar.bz2
gentoo-49712224db4cbe563d954ae89e6e3f4bb48d6532.zip
mail-mta/protonmail-bridge: add 2.2.2
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'mail-mta')
-rw-r--r--mail-mta/protonmail-bridge/Manifest2
-rw-r--r--mail-mta/protonmail-bridge/protonmail-bridge-2.2.2.ebuild67
2 files changed, 69 insertions, 0 deletions
diff --git a/mail-mta/protonmail-bridge/Manifest b/mail-mta/protonmail-bridge/Manifest
index 1bb0c8aea557..b133ed99167d 100644
--- a/mail-mta/protonmail-bridge/Manifest
+++ b/mail-mta/protonmail-bridge/Manifest
@@ -2,3 +2,5 @@ DIST protonmail-bridge-2.1.1-vendor.tar.xz 3778060 BLAKE2B 4350201ec1890eb398360
DIST protonmail-bridge-2.1.1.tar.gz 2034768 BLAKE2B 8748650cd90610803bbba4ed503a01be308225367a82da403ed209f0ed593f2202dc3424ba3c2bc09b3fcfa19ff04cb67351e840aac9fc35f17bc6d512962774 SHA512 c280c61d7a8aaf6e7063183431184e2807e8cdb9ba68cb1a14e45529ccac2b2df7e6ee5b71d7e01341a4b625546ea8cf48ade7cbec64abd998cf8227d9b684de
DIST protonmail-bridge-2.2.0-deps.tar.xz 237226036 BLAKE2B bb1eabb4a56c19ff6c79b4543ad39f94fe5821d02cf246110a1a41b64c55271c5cfc0be18e496f8f7a76d02d180567ac8dbaba520b27dd38c08708d885c66c1f SHA512 4a3da64b27732d55aaaff8850b9ce0e6c03deecbc8a051338a3bee4066250f10b99fb5f25d9d2cd5541b8de94ee2c11a2805b4344f28764b494e2b645c60b175
DIST protonmail-bridge-2.2.0.tar.gz 3098013 BLAKE2B 310c84eab7973174a331247bde6f64dad03a3ed05ad241300e5c2c2f7361e5d7c4598201400c6f51a0df49e7ccb57a6230fc1b1c4b749e29d2f2796d3d4c8b81 SHA512 ca0941b37fccbdf8a581426e69ec0c8840ed384bc4fc64592fcf0f228303a3f9f46d41ad56310bc0f99e1bb633ff8c9fcd3c3ab11b5ba34ad6960342111e8fe2
+DIST protonmail-bridge-2.2.2-deps.tar.xz 237555984 BLAKE2B b069b1b9015e0a96cc0f5558216058c23c1488a67abc29363f4111f9175eac9f204f5f14b54a090040e6d340d4aeb69d1e3b1e59685c3dcef9499ae93526f411 SHA512 8ae9bd6bdbc8a16d7cb0e5a3405ef3dca1737f7b3b5e53b9f954618eadfccd94c5ca1a3994a20745f234e81dbace28bc2df0489e28dbf6dc322b508a11acf813
+DIST protonmail-bridge-2.2.2.tar.gz 5057358 BLAKE2B f2b585ec16c1b6864e4a23436f30c36253beed0453a1068f52f19af8b47b7b626ec779795486ce3719716b5785b2a3c60fbe62ed192b724c6d88ceb507abc590 SHA512 c17ce614ab1074ddeeb9842ce98e6c9cbcb57f44a0bc75cdf74b9a7085257768824a549a9ae5870dcb45243655a90f0956600912c69fc1e826c58d36e8ee19fe
diff --git a/mail-mta/protonmail-bridge/protonmail-bridge-2.2.2.ebuild b/mail-mta/protonmail-bridge/protonmail-bridge-2.2.2.ebuild
new file mode 100644
index 000000000000..3eb8df2b3026
--- /dev/null
+++ b/mail-mta/protonmail-bridge/protonmail-bridge-2.2.2.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module systemd xdg-utils
+
+MY_PN="proton-bridge"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Serves ProtonMail to IMAP/SMTP clients"
+HOMEPAGE="https://proton.me/mail/bridge https://github.com/ProtonMail/proton-bridge/"
+SRC_URI="https://github.com/ProtonMail/${MY_PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
+ https://dev.gentoo.org/~marecki/dists/${CATEGORY}/${PN}/${P}-deps.tar.xz"
+
+LICENSE="Apache-2.0 BSD BSD-2 GPL-3+ ISC LGPL-3+ MIT MPL-2.0 Unlicense"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="gui"
+
+# Quite a few tests require Internet access
+PROPERTIES="test_network"
+RESTRICT="test"
+
+RDEPEND="app-crypt/libsecret"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}"/${MY_P}
+
+src_prepare() {
+ xdg_environment_reset
+ default
+}
+
+src_compile() {
+ if use gui; then
+ emake \
+ QT_DOC_DIR="/usr/share/qt5-doc" \
+ QT_PKG_CONFIG=true \
+ build
+ else
+ emake build-nogui
+ fi
+}
+
+src_test() {
+ emake test
+}
+
+src_install() {
+ exeinto /usr/bin
+ newexe ${MY_PN} ${PN}
+
+ systemd_douserunit "${FILESDIR}"/${PN}.service
+
+ # FIXME: USE=gui will probably need more files
+
+ einstalldocs
+}
+
+pkg_postinst() {
+ use gui && xdg_icon_cache_update
+}
+
+pkg_postrm() {
+ use gui && xdg_icon_cache_update
+}